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.
First, start the worker:
uv run openai_agents/customer_service/run_worker.pyThen start a customer service conversation:
uv run openai_agents/customer_service/run_customer_service_client.py --conversation-id my-conversation-123You 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.