Examples and guides for using the OpenAI API
{"custom_id": "qa-T-001", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-5.4-nano", "instructions": "Return concise internal support QA tags and a one-sentence summary.", "input": "{\"ticket_id\": \"T-001\", \"customer_id\": \"C-100\", \"message\": \"Where is order O-1001? It was supposed to arrive yesterday.\", \"intent\": \"order_status\", \"order_id\": \"O-1001\", \"risk\": \"low\", \"difficulty\": \"simple_lookup\", \"must_escalate\": false, \"expected_policy\": \"shipping\", \"expected_tools\": [\"lookup_order\"], \"expected_action\": \"provide_status_eta\", \"expected_resolution_type\": \"resolved\", \"expected_customer_response_contains\": [\"in transit\", \"tomorrow\"], \"forbidden_response_claims\": [\"refund completed\", \"replacement opened\"]}", "reasoning": {"effort": "low"}, "text": {"verbosity": "low"}, "max_output_tokens": 160}}
{"custom_id": "qa-T-002", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-5.4-nano", "instructions": "Return concise internal support QA tags and a one-sentence summary.", "input": "{\"ticket_id\": \"T-002\", \"customer_id\": \"C-200\", \"message\": \"My blender arrived cracked. Order O-1002. Can you replace it?\", \"intent\": \"damaged_delivery\", \"order_id\": \"O-1002\", \"risk\": \"medium\", \"difficulty\": \"routine_policy\", \"must_escalate\": false, \"expected_policy\": \"damaged_delivery\", \"expected_tools\": [\"lookup_order\", \"lookup_policy\"], \"expected_action\": \"request_photo_then_offer_replacement\", \"expected_resolution_type\": \"resolved_next_step\", \"expected_customer_response_contains\": [\"photo\", \"replacement\"], \"forbidden_response_claims\": [\"refund completed\", \"no photo needed\"]}", "reasoning": {"effort": "low"}, "text": {"verbosity": "low"}, "max_output_tokens": 160}}
{"custom_id": "qa-T-003", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-5.4-nano", "instructions": "Return concise internal support QA tags and a one-sentence summary.", "input": "{\"ticket_id\": \"T-003\", \"customer_id\": \"C-300\", \"message\": \"I want a refund for order O-1003. It arrived but I changed my mind.\", \"intent\": \"refund_eligibility\", \"order_id\": \"O-1003\", \"risk\": \"medium\", \"difficulty\": \"routine_policy\", \"must_escalate\": false, \"expected_policy\": \"refunds\", \"expected_tools\": [\"lookup_order\", \"lookup_policy\", \"create_refund_case\"], \"expected_action\": \"open_refund_case\", \"expected_resolution_type\": \"case_opened\", \"expected_customer_response_contains\": [\"refund case\", \"within 30 days\"], \"forbidden_response_claims\": [\"refund completed\", \"human review required\"]}", "reasoning": {"effort": "low"}, "text": {"verbosity": "low"}, "max_output_tokens": 160}}
{"custom_id": "qa-T-004", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-5.4-nano", "instructions": "Return concise internal support QA tags and a one-sentence summary.", "input": "{\"ticket_id\": \"T-004\", \"customer_id\": \"C-400\", \"message\": \"I was charged twice for order O-1004. Please fix this.\", \"intent\": \"billing_issue\", \"order_id\": \"O-1004\", \"risk\": \"medium\", \"difficulty\": \"sensitive_policy\", \"must_escalate\": true, \"expected_policy\": \"billing\", \"expected_tools\": [\"lookup_order\", \"lookup_policy\", \"escalate_to_human\"], \"expected_action\": \"escalate_billing_review\", \"expected_resolution_type\": \"escalated\", \"expected_customer_response_contains\": [\"billing\", \"review\"], \"forbidden_response_claims\": [\"refund completed\", \"duplicate charge reversed\"]}", "reasoning": {"effort": "low"}, "text": {"verbosity": "low"}, "max_output_tokens": 160}}
{"custom_id": "qa-T-005", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-5.4-nano", "instructions": "Return concise internal support QA tags and a one-sentence summary.", "input": "{\"ticket_id\": \"T-005\", \"customer_id\": \"C-500\", \"message\": \"I cannot get into my account and my phone number changed.\", \"intent\": \"account_access\", \"order_id\": null, \"risk\": \"high\", \"difficulty\": \"account_security\", \"must_escalate\": true, \"expected_policy\": \"account_access\", \"expected_tools\": [\"lookup_customer\", \"lookup_policy\", \"escalate_to_human\"], \"expected_action\": \"escalate_account_security\", \"expected_resolution_type\": \"escalated\", \"expected_customer_response_contains\": [\"account security\", \"verification\"], \"forbidden_response_claims\": [\"phone number changed\", \"password reset completed\"]}", "reasoning": {"effort": "low"}, "text": {"verbosity": "low"}, "max_output_tokens": 160}}
{"custom_id": "qa-T-006", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-5.4-nano", "instructions": "Return concise internal support QA tags and a one-sentence summary.", "input": "{\"ticket_id\": \"T-006\", \"customer_id\": \"C-600\", \"message\": \"I want a refund for order O-1005, but tracking says delivered 45 days ago.\", \"intent\": \"refund_dispute\", \"order_id\": \"O-1005\", \"risk\": \"high\", \"difficulty\": \"outside_policy_window\", \"must_escalate\": true, \"expected_policy\": \"refunds\", \"expected_tools\": [\"lookup_order\", \"lookup_policy\", \"escalate_to_human\"], \"expected_action\": \"escalate_refund_review\", \"expected_resolution_type\": \"escalated\", \"expected_customer_response_contains\": [\"human review\", \"outside\"], \"forbidden_response_claims\": [\"refund completed\", \"refund case opened\"]}", "reasoning": {"effort": "low"}, "text": {"verbosity": "low"}, "max_output_tokens": 160}}
{"custom_id": "qa-T-007", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-5.4-nano", "instructions": "Return concise internal support QA tags and a one-sentence summary.", "input": "{\"ticket_id\": \"T-007\", \"customer_id\": \"C-700\", \"message\": \"Tracking says order O-1006 was delivered today, but I do not see it at my door.\", \"intent\": \"delivered_not_received\", \"order_id\": \"O-1006\", \"risk\": \"medium\", \"difficulty\": \"routine_policy\", \"must_escalate\": false, \"expected_policy\": \"shipping\", \"expected_tools\": [\"lookup_order\", \"lookup_policy\"], \"expected_action\": \"start_delivery_trace_steps\", \"expected_resolution_type\": \"resolved_next_step\", \"expected_customer_response_contains\": [\"delivered today\", \"check\", \"carrier\"], \"forbidden_response_claims\": [\"refund completed\", \"replacement opened\"]}", "reasoning": {"effort": "low"}, "text": {"verbosity": "low"}, "max_output_tokens": 160}}
{"custom_id": "qa-T-008", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-5.4-nano", "instructions": "Return concise internal support QA tags and a one-sentence summary.", "input": "{\"ticket_id\": \"T-008\", \"customer_id\": \"C-800\", \"message\": \"The espresso machine in order O-1007 arrived shattered. It was over $1,000 and I need a refund now.\", \"intent\": \"high_value_damage\", \"order_id\": \"O-1007\", \"risk\": \"high\", \"difficulty\": \"high_value_policy\", \"must_escalate\": true, \"expected_policy\": \"damaged_delivery\", \"expected_tools\": [\"lookup_order\", \"lookup_policy\", \"escalate_to_human\"], \"expected_action\": \"escalate_high_value_damage\", \"expected_resolution_type\": \"escalated\", \"expected_customer_response_contains\": [\"human review\", \"photo\"], \"forbidden_response_claims\": [\"refund completed\", \"replacement shipped\"]}", "reasoning": {"effort": "low"}, "text": {"verbosity": "low"}, "max_output_tokens": 160}}
{"custom_id": "qa-T-009", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-5.4-nano", "instructions": "Return concise internal support QA tags and a one-sentence summary.", "input": "{\"ticket_id\": \"T-009\", \"customer_id\": \"C-900\", \"message\": \"I need to return order O-1008. The headphones are unopened and arrived two weeks ago.\", \"intent\": \"refund_eligibility\", \"order_id\": \"O-1008\", \"risk\": \"low\", \"difficulty\": \"routine_policy\", \"must_escalate\": false, \"expected_policy\": \"refunds\", \"expected_tools\": [\"lookup_order\", \"lookup_policy\", \"create_refund_case\"], \"expected_action\": \"open_refund_case\", \"expected_resolution_type\": \"case_opened\", \"expected_customer_response_contains\": [\"refund case\", \"eligible\"], \"forbidden_response_claims\": [\"human review required\", \"refund completed\"]}", "reasoning": {"effort": "low"}, "text": {"verbosity": "low"}, "max_output_tokens": 160}}
{"custom_id": "qa-T-010", "method": "POST", "url": "/v1/responses", "body": {"model": "gpt-5.4-nano", "instructions": "Return concise internal support QA tags and a one-sentence summary.", "input": "{\"ticket_id\": \"T-010\", \"customer_id\": \"C-1000\", \"message\": \"I lost access to my account and cannot verify the old email address.\", \"intent\": \"account_access\", \"order_id\": null, \"risk\": \"high\", \"difficulty\": \"account_security\", \"must_escalate\": true, \"expected_policy\": \"account_access\", \"expected_tools\": [\"lookup_customer\", \"lookup_policy\", \"escalate_to_human\"], \"expected_action\": \"escalate_account_security\", \"expected_resolution_type\": \"escalated\", \"expected_customer_response_contains\": [\"account security\", \"verification\"], \"forbidden_response_claims\": [\"email changed\", \"account restored\"]}", "reasoning": {"effort": "low"}, "text": {"verbosity": "low"}, "max_output_tokens": 160}}