- Your agent talks to the caller and decides what they need.
- Your Eager agent gets the request in plain words, and decides how: which procedure, which tool, whether to open a browser. Your agent never sees screens or clicks; it gets back an answer it can say.
The tool
Give your voice agent one tool. Its description tells the model when to use it:gh() is the small fetch helper from the quickstart. With a voice agent the reply is what your agent says next, so keep your Eager agent’s answers short: “Two sentences at most; the caller is on the phone” in its instructions works well.
Tool timeouts
A request that needs a browser task can take a minute or more, and some voice platforms give a tool call less than that. Two ways to handle it:- Stream, and speak while it works. Send
"stream": trueand relay progress as it comes:task.startedmeans it’s opened the portal (“I’m checking the carrier’s site now”), andoutput_text.deltais the answer as it’s written. See streaming. - Split it in two tools.
ask_guidinghandsends the message with"stream": true, reads the first event (response.created, with the response’sidand theconversation_id), and waits a few seconds for the reply; if it hasn’t finished, it closes the stream and returns “still working” with theid. A second tool,check_guidinghand(response_id), waits up to 25 seconds more withGET /v1/responses/{response_id}?wait_ms=25000. Your agent fills the pause (“Still on it, one moment”) and checks again. (Withoutstream, the call holds for up to 55 seconds before it answers.)
What the Eager agent may ask
The Eager agent may need something only the caller knows, such as a serial number or which of two orders. It asks in its reply, and your agent relays the question and sends the caller’s answer back as the nextrequest, in the same conversation.
When it wants several details at once, it shows a form. Your voice agent can’t show a form: just read out what it asks for and send the caller’s answers back in words. The agent understands them like any message.
Approvals
With the agent’s guardrails insupervised mode (the default), a step that changes something, such as submitting a change in a portal, needs an approval first. The reply pauses: it comes back with status: "requires_action" and an approval item in output, saying what will happen, and your webhook gets conversation.approval_required. Your team decides it in the console’s Conversations, or your code does with POST /v1/conversations/{conversation_id}/decisions. Then the same reply carries on: check it again with GET /v1/responses/{response_id}. Until then, your voice agent can tell the caller the change is waiting for approval. If nobody should have to approve during a call, set the agent’s guardrails to auto mode: steps are approved automatically and recorded, and the agent’s block list still holds. See Approvals and Guardrails.
Don’t let your voice agent approve on the caller’s behalf for anything they haven’t agreed to: tell them what’s about to happen, and decide from what they say.
Instructions for your voice agent
For example, in its system prompt:Keep the history together
- Send your voice agent’s greeting as
openingwith the first message (when your Eager agent has nogreetingof its own), so the conversation’s history matches what the caller heard. - Put your call id in
metadataon the first message. Each browser task the agent runs carries theconversation_id, so a task in your webhook leads back to the call. - The console’s Conversations page shows each call’s requests, what the agent did, and the replay of every task, to check what happened on a call.
Hands on the customer’s computer
The pattern above runs on your systems. For remote support, where the work happens on the customer’s own Mac or PC, your agent can drive a task there instead: your code makes a session, your agent sends the customer the invite link, and once they’ve connected it starts a task and follows it, relaying the task’s questions and approvals.- Your code (not the model) creates the session with your org API key, gives the model the
invite_urlto send, and waits forstatus: connectedor thesession.connectedwebhook. Keep the session’ssession_tokenfor this conversation. - The model calls
start_computer_taskwith a plain-languageprompt, and gets a taskidand acursor. - The model calls
wait_for_computer_taskwith theidand the lastcursor. Each call waits up to 25 seconds (timeout_ms, at most 55,000) for new events and returns them. - If the result has a
question(the task ispaused), the model answers it from what it knows, or asks the customer, and sendsquestion_idandanswerin its nextwait_for_computer_taskcall. Whenquestion.customer_can_answeristrue, the customer sees the question on their screen and may answer it there first; the model can also just keep waiting. - If it has an
approval, the model decides (usually by asking the customer) and sendsapproval_idanddecision(approveordeny). Whenapproval.customer_can_approveistrue, the customer sees the request on their screen and may allow it or not there first; the model can also just keep waiting. - When
doneistrue,statussays how it ended andresultorerrorsays what happened. The model tells the customer.
conversation_id) as the customer’s, with the same rules as the desktop app: one the agent keeps for your team (customer_can_answer or customer_can_approve is false) gets 403 with code: "customer_answers_off" or "customer_approvals_off", and your team decides it in the console or with POST /v1/conversations/{conversation_id}/decisions.
Tool definitions: /tools.json
GET https://guidinghand.ai/tools.json (no authentication) returns ready-made tool definitions for this loop. They describe the session-token task API (/start, /wait, /stop), where the credential is the session_token of one session. That is a good fit for a model: the token can only act on that one computer, never on your org’s other sessions, agents or settings.
Each entry has
name, method, path, description and, for the first three, an input_schema in JSON Schema. Most LLM APIs take tools in that shape; some call the schema input_schema, others parameters.
start_computer_task and wait_for_computer_task return the task in the older API’s shape:
events are the events after after; update is the latest one. question or approval is present while the task waits on it, and conversation_id is where it’s decided; result or error once it ends. Errors are { "error": "message" }, sometimes with more fields such as active_task_id. An answer or decision that comes after the customer already gave one on their screen gets 409 with "code": "already_answered" and "answered_by": "customer": the task has it, so the model just keeps waiting.
Tell your model how to use the tools, for example:
/v1 endpoints with your org API key: POST /v1/sessions/{session_id}/tasks to start, GET /v1/tasks/{task_id}/events to follow, POST /v1/conversations/{conversation_id}/decisions to answer (the task’s conversation_id), and POST /v1/tasks/{task_id}/stop to stop. Keep the API key in your code and give the model only the arguments it needs (the prompt, the answer), with the session fixed by your code. The walkthrough is in Run a task on a computer.
Tips
- One conversation per call. The agent remembers what was asked and found earlier in the call, and keeps the same browser, already signed in and on the right page.
- Plain words in, plain words out. Pass what the caller said, not instructions about screens; the Eager agent has the procedures for that.
- Test it before callers do. Turn real calls into chat evals with a simulated caller, and check how often the agent gets them right.
- Link the replay. Put a task’s
replay_url(fromGET /v1/tasks/{task_id}) in the ticket so a person can review what happened on the call.