Wait for the user to approve
wait_for_approvalWait for the user to decide, so they do not have to come back to the chat and tell you. Right after you give the user an approval link (approval_id), a plan link (plan_id), the link to open changes on a server (server) or a setup link while nothing is connected yet (setup), write that link in your reply and then call this in the same turn: it returns as soon as they approve, deny or open changes, and says what to do next. It waits about 50 seconds at a time; if it answers that they have not decided yet, call it again, and after about 10 minutes of waiting stop and ask the user to tell you when they have.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| setup | No | While nothing is connected yet (overview says so): after giving the user the setup link, wait until they have connected Google, a server or a site. | |
| server | No | Wait for changes to be opened on this server (the /app/window link). | |
| plan_id | No | The id from a plan link (/app/approvals/plan/<id>). | |
| approval_id | No | The id from an approval link (/app/approvals/<id>). |