You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples-v2/openai_agents/order_returns/README.md
+50-35Lines changed: 50 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,23 @@
1
-
# Order Return Processing System
1
+
# Order Return Processing Sample
2
2
3
-
An order return processing system built with Azure Functions and OpenAI Agents, demonstrating advanced orchestration patterns and multi-agent workflows.
3
+
This sample demonstrates an order return processing system built with Azure Durable Functions and OpenAI Agents. The system automatically processes customer return requests using AI agents to validate return reasons, process refunds, and route edge cases to human review.
4
4
5
-
## Overview
5
+
## Running the Sample
6
6
7
-
This system automatically processes customer return requests using AI agents to validate return reasons, process refunds, and route edge cases to human review. It showcases real-world business logic implementation with Azure Durable Functions.
7
+
**For complete setup instructions, configuration details, and troubleshooting, see the [Getting Started Guide](/docs/openai_agents/getting-started.md).**
8
8
9
-
## Quick Start
9
+
### Step 1: Start the Azure Functions App
10
+
11
+
From the OpenAI Agents samples root directory (`/samples-v2/openai_agents`), start the Azure Functions host:
12
+
13
+
```bash
14
+
func start
15
+
```
16
+
17
+
The function app will start and listen on `http://localhost:7071` by default.
18
+
19
+
### Step 2: Submit a Return Request
10
20
11
-
### Submit a Return Request
12
21
```bash
13
22
curl -X POST http://localhost:7071/api/order_return_processor \
14
23
-H "Content-Type: application/json" \
@@ -21,12 +30,39 @@ curl -X POST http://localhost:7071/api/order_return_processor \
21
30
}'
22
31
```
23
32
24
-
### Check Processing Status
33
+
### Step 3: Check Processing Status
34
+
25
35
```bash
26
36
# Use the statusQueryGetUri from the submission response
0 commit comments