Skip to main content
Your voice agent (on Retell, Vapi, ElevenLabs, LiveKit or your own stack) is good at the conversation: it greets the caller, understands what they want, and keeps them company. Eager is good at the work behind it: checking the order portal, changing an address in a back office with no API, following your procedures, and saying what it found. So the two stay separate:
  • 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:
Your server handles the call: it sends the request to your Eager agent, using one conversation per phone call, and returns the reply. Keep the API key on your server; the model only passes the request.
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": true and relay progress as it comes: task.started means it’s opened the portal (“I’m checking the carrier’s site now”), and output_text.delta is the answer as it’s written. See streaming.
  • Split it in two tools. ask_guidinghand sends the message with "stream": true, reads the first event (response.created, with the response’s id and the conversation_id), and waits a few seconds for the reply; if it hasn’t finished, it closes the stream and returns “still working” with the id. A second tool, check_guidinghand(response_id), waits up to 25 seconds more with GET /v1/responses/{response_id}?wait_ms=25000. Your agent fills the pause (“Still on it, one moment”) and checks again. (Without stream, the call holds for up to 55 seconds before it answers.)
The turn keeps running on Eager’s side either way: a dropped tool call doesn’t stop it.

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 next request, 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 in supervised 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 opening with the first message (when your Eager agent has no greeting of its own), so the conversation’s history matches what the caller heard.
  • Put your call id in metadata on the first message. Each browser task the agent runs carries the conversation_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.
  1. Your code (not the model) creates the session with your org API key, gives the model the invite_url to send, and waits for status: connected or the session.connected webhook. Keep the session’s session_token for this conversation.
  2. The model calls start_computer_task with a plain-language prompt, and gets a task id and a cursor.
  3. The model calls wait_for_computer_task with the id and the last cursor. Each call waits up to 25 seconds (timeout_ms, at most 55,000) for new events and returns them.
  4. If the result has a question (the task is paused), the model answers it from what it knows, or asks the customer, and sends question_id and answer in its next wait_for_computer_task call. When question.customer_can_answer is true, the customer sees the question on their screen and may answer it there first; the model can also just keep waiting.
  5. If it has an approval, the model decides (usually by asking the customer) and sends approval_id and decision (approve or deny). When approval.customer_can_approve is true, the customer sees the request on their screen and may allow it or not there first; the model can also just keep waiting.
  6. When done is true, status says how it ended and result or error says what happened. The model tells the customer.
The session’s token speaks for the customer, so an answer or decision sent this way is recorded in the task’s conversation (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:
If you’d rather define these tools yourself, wrap the /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 (from GET /v1/tasks/{task_id}) in the ticket so a person can review what happened on the call.