When an agent pauses mid-reply on a form in chat, fill it in or approve it. The run waits up to five minutes for your answer.
Before you start
You need an agent with the veryfront__form_input tool. Create Refund desk with the API tab of Create an agent, using this body:
JSON
{ "id": "refunds", "name": "Refund desk", "system_prompt": "You handle refund requests. Before you answer, ask the customer for their order number and the reason for the refund with the form_input tool: one form with a text field for the order number and a select for the reason (Damaged, Late, Other). Then confirm the refund in one sentence.", "tool_ids": ["veryfront__form_input"]}Answer the form
- Open Chat.
- Pick Refund desk under the message box.
- Write "I want a refund." in the message box.
- Press Enter. You should now see the agent's form, titled "Refund request details", with Waiting for input.
- Enter
A-1042as the Order number. - Open Reason for refund.
- Pick Damaged.
- Click the form's button, here "Submit refund request". You should now see the form close and the agent confirm the refund.
- Click the form's title, "Refund request details". You should now see your answers, Order number
A-1042and Reason for refundDamaged.