Skip to content

Commit b45f171

Browse files
committed
Add README.md for customer service sample with setup and usage instructions
1 parent d36cd1c commit b45f171

File tree

1 file changed

+46
-0
lines changed
  • samples-v2/openai_agents/customer_service

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Customer Service Sample
2+
3+
This sample demonstrates a customer service agent built with Azure Durable Functions and OpenAI Agents. The agent can handle airline-related queries including FAQ lookups and seat booking.
4+
5+
## Running the Sample
6+
7+
**For complete setup instructions, configuration details, and troubleshooting, see the [Getting Started Guide](/docs/openai_agents/getting-started.md).**
8+
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: Start the Interactive Client
20+
21+
In a separate terminal, navigate to the `customer_service` directory and run the client:
22+
23+
```bash
24+
cd customer_service
25+
python customer_service_client.py
26+
```
27+
28+
If your function app is running on a different host or port, you can specify a custom URL:
29+
30+
```bash
31+
python customer_service_client.py --start-url http://<app host URL>/api/orchestrators/customer_service
32+
```
33+
34+
The client will:
35+
36+
1. Start a new orchestration instance
37+
2. Wait for prompts from the agent
38+
3. Allow you to interact with the customer service agent interactively
39+
40+
## Usage
41+
42+
Once the client is running, you can:
43+
44+
- Ask FAQ questions (e.g., "What's the baggage policy?", "Is there wifi?")
45+
- Request seat changes (the agent will guide you through the process)
46+
- Type `exit`, `quit`, or `bye` to end the conversation

0 commit comments

Comments
 (0)