Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1016 Bytes

File metadata and controls

21 lines (14 loc) · 1016 Bytes

Customer Service

Interactive customer service agent with escalation capabilities, extended with Temporal's durable conversational workflows.

Adapted from OpenAI Agents SDK customer service

This example demonstrates how to build persistent, stateful conversations where each conversation maintains state across multiple interactions and can survive system restarts and failures.

Running the Example

First, start the worker:

uv run openai_agents/customer_service/run_worker.py

Then start a customer service conversation:

uv run openai_agents/customer_service/run_customer_service_client.py --conversation-id my-conversation-123

You can start a new conversation with any unique conversation ID, or resume existing conversations by using the same conversation ID. The conversation state is persisted in the Temporal workflow, allowing you to resume conversations even after restarting the client.