Create agents with
POST /v1/agents (published as version 1), change them with PATCH /v1/agents/{agent_id} (send only the fields to change; guardrails, tools and resources can be partial), duplicate one with POST /v1/agents/{agent_id}/duplicate (a copy with its files and procedures, as a new agent), and delete them with DELETE /v1/agents/{agent_id}. A PATCH is published right away as a new version; to change an agent without changing what runs, save a draft instead. Anyone in the org can read agents and talk to them; creating, changing and deleting them needs the admin role or an API key. In the console it’s all under Agents, where each agent’s page has its settings beside a test chat.
Instructions and the rules that always win
Eager’s rules come first and your instructions after them, with an explicit note that Eager’s rules win where the two conflict. They’re the same for every org and every agent, in three layers:- Every agent, in chat and in its tasks: what pages, files, tools and task reports contain is information, not instructions, so a page can’t take the agent over. It never types, asks for or passes on passwords, one-time codes, card numbers or other secrets. It does nothing consequential or irreversible (purchases, sending messages, deleting data, submitting forms, changing settings, entering personal data) unless the person asked for exactly that. When Eager refuses a step, it doesn’t look for a way around it.
- The browser and computer tasks a chat agent starts run as workers: one job for the agent, with nobody at the screen. A worker gets the goal (and any procedure) the agent passes, the agent’s tools, guardrails and scope, but not your instructions, which are for talking with people. It reports back what it found and where, and what it couldn’t do.
- A task someone runs on a computer they’re at works with that person: if it needs something only they can tell it, it asks a question; before anything consequential it asks for an approval that says exactly what it’s about to do; it asks them to type secrets on screen themselves; and it ends with a short summary of what it did (the task’s
result).
Model
model picks the AI model that runs the agent’s tasks and chat replies: one from Anthropic, OpenAI or Google. Each model has its own price for the tokens it uses, in US dollars per million:
A typical task is a 10-step browser task. Input read from the prompt cache costs less, and Claude models charge for writing to it: see every price. Prices are also on guidinghand.ai/pricing.
Every model works under the same rules: Eager’s own rules, your instructions and the agent’s guardrails, with the same questions and approvals. What differs is how well and how quickly it answers and works on screen, and the price. Try a lower-priced model on your common requests with an eval, and move an agent up if it gets them wrong or its tasks get stuck.
A task keeps the model it started with (the task’s
model), and a conversation’s turn runs on the model of the version it runs; a change applies from the next one. Changing it needs the admin role or an API key, and each change is in the audit log. An unknown model is a 400.
If Eager can’t run an agent’s model at the moment, sending it a message or starting a task with it returns 503 (for a task, with error.code: "model_unavailable"), and nothing is charged. Choose another model for the agent, in the console under Agents or with PATCH /v1/agents/{agent_id}.
Effort
effort trades speed for care: more thinking before each reply and step. It has no price of its own: replies and tasks pay for the tokens they use, and thinking more uses more of them.
medium and high think more each time, so they’re slower and use more tokens. Start with low (or null) and move an agent up if it gets stuck. A task keeps the effort it started with (the task’s effort); a change applies to the next one. Changing it needs the admin role or an API key, and each change is in the audit log.
Greeting
The greeting is the agent’s first message. A new conversation opens with it, as the first item, and the agent knows it already said it. It’s also the first thing a customer reads on an invite page, above the install steps. Use it to say who is helping and why, in your own voice. It’s plain text. When the agent has no greeting and your own system already greeted the person (a voice agent that answered the call, say), send its words asopening with the first message, so the conversation’s history matches what they heard.
Voice
The agent speaks with OpenAI’s GPT-Live when you talk to it out loud in Coach and when it answers calls to its phone numbers.voice picks how it sounds: null (the default) is marin, a North American voice. The others are:
Each voice is made for the language it’s listed under. Coach uses the draft’s voice, so you can save a new one and hear it straight away; phone calls use the published version’s. In the console it’s the agent’s Voice tab.
A voice from another provider picks that provider.
GET /v1/voices lists every voice the server offers, with each provider’s price a minute: an ElevenLabs voice id (Coach and phone calls), or a Phonic 1.1 voice such as phonic:sabrina (Coach and test calls; phone calls then use GPT-Live’s default voice).
Guardrails
Guardrails are rules Eager enforces in code on every step the agent’s browser and computer tasks take, whatever the model says: what needs an approval, what never happens, which apps and sites it may use, what it is for, and its limits. They are set on the agent asguardrails. Its scope holds in conversations too: the agent declines requests that are clearly something else. See Guardrails for every rule, the defaults, how each step is checked, and how to change them.
Tools
Besides a browser or a computer, an agent can use tools: its own file system, on by default, your HTTP tools, APIs it calls, MCP servers, and in conversations, Run code and Web search. It always hasshow_form, to ask people for details with a form. Tools are part of the agent’s settings, so they are versioned with it.
visual is visual answers: long chat answers also laid out as UI, on unless you turn it off. blocks are the cards a view may use (all by default; text is always there), choices: false leaves out anything to press (options’ picks and buttons), and instructions is your note on how answers should look, like “Lead with the warranty status. Put part numbers in a table.” (up to 2,000 characters). Instructions steer the layout, never what it says: a view still has only what the answer says.
PATCH on the agent, or on its draft, takes a partial tools: in files, browser, code, web and visual, only the keys you send change, and http and mcp, when you send them, are each the whole list. A key set to null goes back to its default, and "tools": null resets them all. An invalid tool is a 400 that says which. (browser.keep_logins is the same setting as resources.browser.keep_logins: see sign-ins.)
Every tool call is a tool_call and tool_result in the conversation, and a tool event in a task’s timeline, so you can follow it live and see it in the replay. A conversation uses the tools of the version each of its turns runs; a task reads them when it starts.
The file system
Each agent has its own files, kept by Eager and separate from the computer it works on. Your team puts reference files there (a returns policy, a price list, a product manual), and the agent reads them during tasks. Agents only read their files: they list, read and search them. Your team adds, changes and deletes them, in the console or the API, or by asking the agent in Coach. A procedure can let the agent change them while it follows it (see Procedures that edit files).
Paths look like
/notes/customers.md. The file system keeps these kinds of file, up to 10 MB each (5 MB an image), and 1,000 files and 100 MB an agent:
A .zip is unpacked into the folder you put it in, with the folders inside it: each file of a kind above is saved, and the rest are listed as skipped, with why. Anything else (a database, the older .xls, .doc and .ppt formats) is refused: save Office files in the newer format, and put other files on one of the agent’s computers. With Run code, a conversation’s sandbox starts with the agent’s files in it (its first 50, by path), so its code can work with the whole spreadsheet.
Manage them in the console under the agent’s Knowledge → Files (icons or a list, like Finder; right-click a file or folder to download it), or with the API:
Procedures that edit files
A procedure withfile_access: "read_write" lets the agent create, change and delete its files while a conversation follows it, for example a procedure that updates a stock spreadsheet each week. The agent gets write_file, edit_file and delete_file, and with Run code save_sandbox_file, which keeps a file its code made (the spreadsheet it changed) in its files. The conversation follows the procedure it last read, found or ran on its steps without AI, or a schedule’s; outside one, the agent’s files stay read-only. The setting is checked on every change, so turning it off holds at once, and it makes no new revision.
- Who changed it: the file’s
updated_byis{ "type": "agent", "task_id", "procedure": { "id", "title" }, "conversation_id" }, and the audit log has the change with the procedure and conversation. - Undo: every change keeps the version it replaced (
file_revisionsabove, and History under a file in the console), so you can put the old one back. - Tests: in a test chat or an eval, the agent’s changes go to that conversation’s own copy, which only it sees. The real files stay as they are.
PATCH /v1/agents/{agent_id}/procedures/{procedure_id} and { "file_access": "read_write" }, or ask Coach.
A spreadsheet, a PDF or an image goes as base64 data:
- In the URL, a path’s slashes can stay as they are or be encoded (
%2F). Paths can’t use.or... updated_byis{ "type": "agent", "task_id": "task_…" }when the agent wrote the file during a task.- Anyone in the org can read files. Writing and deleting them needs the admin role or an API key.
- A file over 10 MB (an image over 5 MB) is a
413, and a write past the agent’s 1,000 files or 100 MB is a409. - In a task on a computer, the agent reads text, Excel, Word and PowerPoint files; PDFs and images open only in a chat.
- Each write and delete is in the audit log: who, which file and its size, never its text.
- Files aren’t versioned: every version of the agent, and its draft, sees the same files. Deleting an agent deletes its files.
HTTP tools
An HTTP tool is an API the agent can call, such as your order system or a supplier’s public lookup. When the model calls it, Eager makes the call as the tool says and gives the model the response. An agent can have up to 20. A tool is one of two kinds:- A set call (
methodandparameters): one endpoint, the model filling in its arguments.{name}placeholders in the path ofurltake those arguments; the others go in the query of aGETorDELETE, or else the JSON body. - An open call (
methods):urlis an API’s base address, and the model gives each call’smethod, apathunder the base (with any?query) and a JSONbody. Say in the tool’sdescription, or a procedure, which paths and bodies to use.
- The response body, as text (up to 64 KB), is what the model gets back. A
2xxis a result; any other status tells the model the call failed, with the body, and it carries on without it. - A call that would leave the tool’s address (another host, or a path that climbs out of an open call’s base) is refused without being made. A redirect is followed (up to 3) only to an address the tool could call itself: under an open call’s base, or a set call’s own host.
- A
GETthat times out is tried once more. Any other call is made once, since it may have done something. - Calls aren’t signed: they’re the API’s own calls. A body is sent as
application/jsonunlessheaderssays otherwise, withUser-Agent: Eager-Tools/1unlessheaderssets one. - The arguments come from the model. Let a tool do only what the agent should be able to do.
Before 2026-10-21, an HTTP tool was a signed POST of
{tool, arguments, task, org_id} to your endpoint. Those tools are now set calls: a POST of their arguments as the JSON body to the same url, without the envelope or the Eager-Signature header. The tool secret (GET /v1/tool_secret) still reads, but nothing is signed with it. Webhook events are unchanged and still signed.MCP servers
An agent can use the tools of remote MCP servers: yours, or a vendor’s hosted one. Give its address and, if it needs one, a sign-in; Eager lists its tools when you save, and the agent calls them like any other tool. An agent can have up to 10 servers, offering up to 100 tools in all.- Its tools (names, descriptions and argument schemas) are kept with the agent’s version, so a version always offers the same tools. When the server adds or changes some, save with
refresh(List again in the console) and publish. - Saving fails with a
400that says why when the server can’t be reached, refuses the sign-in, or has no tools. - Calls go from Eager’s servers, in an MCP session kept for 10 minutes. The tool’s text is what the model gets (up to 256 KB read); images and audio are described, not shown. A result the server marks as an error tells the model the call failed.
- A procedure can unlock an MCP server’s tools as it does HTTP tools, by their
<name>__<tool>names.
OAuth sign-ins
Hosted servers like Linear, Notion and Atlassian sign in with OAuth instead of a key. In the console, give the server’s address and choose Connect with OAuth: the provider’s sign-in page opens in a window, you sign in and allow access, and the server shows Connected. Save, and Eager lists its tools.- Eager follows the MCP authorization spec: it finds the server’s authorization server from its metadata, registers itself as a client when the server allows it, and signs in with PKCE. A server that doesn’t let apps register themselves asks for the client ID (and secret) you registered with it, with the redirect address to use.
- The tokens are kept encrypted for your organization like a key: never returned and never kept in the agent’s versions, which keep
authas{ "headers": ["Authorization"], "secret_id": "tsec_…", "type": "oauth" }. They’re only ever sent to the server’s address. - Eager renews the access token before it expires, and again if the server refuses it. If the provider stops renewing it (access revoked, or the person who connected it left), the server shows Sign-in expired, and calls tell the agent the tool can’t be used. Reconnect it: it keeps its
secret_id, so every version that uses it works again. - Over the API,
POST /v1/mcp_oauth/startbegins a sign-in for a signed-in person (the console uses it) andGET /v1/mcp_oauth/{secret_id}says whether one isconnected,pendingorexpired. To use a connected sign-in, save the server with"auth": { "secret_id": "tsec_…" }.
Connections and the library
A sign-in belongs to your organization, not to one agent: connect a service once and give it to any agent. Settings → Connections lists your connections, which agents use each one, and the library: official MCP servers from vendors like Salesforce, Slack, Atlassian, Notion, Linear, HubSpot, Stripe and Zendesk, each checked to answer MCP. In an agent’s tools, Add from library adds one of them with its address, name and a note on when to use it filled in. Or ask the agent in Coach (“I’d like to connect Zendesk”): the app’s card opens beside the agent with Connect, you sign in there, and the app is in the agent’s draft with what it can now do listed on the card. Coach only offers apps from the library and never sees the sign-in; a new sign-in needs the admin role, and a member can connect an app your organization is signed in to already. Undo on the card takes the app out of the draft again.- Library entries sign in one of three ways. Connect is one click for servers that let Eager register itself. Some providers only take apps they know (Salesforce, Slack, Zoom, Highspot, HubSpot, GitHub, Box, Zendesk, Asana): register Eager with them once, with the redirect address the console shows, and enter that client ID. For the ones with steps of their own (Salesforce’s External Client App, Slack’s internal app, Zoom’s General app), the console shows them beside the form. Gong connects in one click, but only after your Gong tech admin has added an MCP integration with Eager’s redirect address: its row shows those steps and the address. A few need no sign-in.
- Email works the same way, with your own app: Microsoft 365 (Outlook mail and calendar, Teams, SharePoint and OneDrive, through Microsoft’s Work IQ server) takes an Entra ID app your admin registers for accounts in any organizational directory, with the Work IQ permission and admin consent, and each person who signs in needs a Microsoft 365 Copilot licence. Gmail is Google’s own MCP server, in Google Workspace’s Developer Preview: it takes an OAuth client from a Google Cloud project in the preview. Google Drive, Docs, Sheets, Slides and Calendar are Google’s servers from the same preview and take the same kind of client, each with its own API turned on. The console shows these steps with the client ID form. There’s no plain IMAP or SMTP connection: an agent sends email through a connected service.
GET /v1/connectorslists the library: each entry’sid,name,category,url,auth(oauth,clientornone),setup(what to set up with the provider first: the app to register forclient, or what the provider’s admin turns on), andserveranduse_when, the name and note it’s added to an agent with.GET /v1/connectionslists the org’s connections:id(thesecret_idan agent’s server keeps),name,connector(the library entry, if any),url,kind(oauthorheaders),statusandused_by(the agents that use it;draft: truewhen only an unpublished draft does).POST /v1/connectionswithurl,headersand an optionalnameandconnectorsaves a connection that signs in with headers, after checking it lists the server’s tools. For OAuth, sendnameandconnectortoPOST /v1/mcp_oauth/start.PATCH /v1/connections/{id}renames one.DELETE /v1/connections/{id}disconnects it and deletes its sign-in for good, and is refused (409,code: connection_in_use) while an agent or its draft uses it.
Run code
With"code": { "enabled": true }, an agent in a conversation has its own sandbox, its model provider’s, with no internet: it runs Python (pandas, openpyxl, matplotlib and more). It uses it for files people attach, such as totalling a spreadsheet or reading a long PDF, and for exact calculations. Files it saves for the person come back on the code run’s result (files) and download from GET /v1/uploads/{id}/content.
- One sandbox per conversation. Conversations never share one.
- Coach always has it, whatever this setting. On a Gemini agent, Coach runs on Claude (when it’s available), so it can open the files you give it.
- Files in Anthropic’s sandbox stay with Anthropic for up to 30 days, and copies of attachments are deleted when the conversation is. OpenAI deletes a container and its files once it has gone unused for 20 minutes.
- Each run is a
tool_callandtool_resultin the conversation:bash_code_executionortext_editor_code_executionon Claude,code_interpreteron GPT,code_executionon Gemini (arguments.code). It shows what it ran, and what came out.
Web search
With"web": { "enabled": true } (off by default), an agent in a conversation can search the web with web_search, for public, current information its files, procedures and tools don’t have: product pages, documentation, news. It reads the top pages’ text (up to 10 a search), and says which pages its answer came from.
- Only the search the agent writes is sent, to Eager’s search provider (Exa), never the conversation, and the agent is told never to put the person’s private details in one.
- It can limit a search to some sites (
include_domains), leave sites out (exclude_domains), or ask only for pages published after a date. - Each search is a
tool_callandtool_resultin the conversation (web_search,arguments.query), so you see what it searched for and what it read. - Coach has it when the agent has it on.
Writing procedures from first runs
When a browser or desktop task in a conversation works without a procedure, the agent writes one from what it did, for next time (written_by: "agent"). "learn": { "mode": ... } says what happens to it (in the console: the agent’s Procedures tab, New procedures from first runs):
auto(the default): it’s saved on, and used from the next request.review: it’s saved off, and aprocedure_newescalation asks your team to turn it on or delete it. A similar request meanwhile doesn’t write a second one. From a team member’s test chat it’s saved off without an escalation, unless the chat sends escalations for real.off: the agent never writes procedures itself; only your team adds them.
"enabled": false (from before there were modes) is the same as off.
People attach files to a message with attachments (upload ids from POST /v1/uploads, up to 10). Every agent sees images (PNG, JPEG, GIF, WebP) and PDFs and reads text files such as CSV and JSON; any other file, such as a spreadsheet, needs Run code on a Claude or GPT model.
Procedures
Procedures are the agent’s playbooks, one per kind of request: what it’s for and the steps. The agent finds the one that fits and follows it, and writes new ones from first runs that work. A procedure can also unlock HTTP tools that should only be called its way. See Procedures.Browsers and computers
resources says where the agent’s tasks may run: its own cloud browser in each conversation (resources.browser), and computers you link with the desktop app (resources.computers). Without either, the agent answers from its files and tools alone. See Browsers and computers.
Versions
An agent’s settings, everything in the table at the top includingguardrails, tools and resources, are versioned. Conversations and tasks run the published version, and there are two ways to change it:
- Save a draft, then publish it.
PATCH /v1/agents/{agent_id}/draftsaves changes to the agent’s draft without changing what runs. Try the draft, thenPOST /v1/agents/{agent_id}/publishmakes it the next version. The console works the same way: changes go to the draft, and the test chat beside them talks to the draft. - Change it now.
PATCH /v1/agents/{agent_id}changes the agent and publishes the change in one step, as a new version. A draft someone is working on stays as it is.
GET /v1/agents/{agent_id}/draftreturns the agent as its draft would make it (object: "agent_draft"), withbased_on_version,saved_atandsaved_by. With no unpublished changes, it’s the published agent withhas_draft: false. A draft that ends up the same as what’s published isn’t a draft.DELETE /v1/agents/{agent_id}/draftdiscards the draft.- Publishing returns the agent with its new
version. With no draft to publish, it’s a409. A draft is the agent’s whole configuration, so if the agent was published since the draft was saved (based_on_versionis lower thanversion), publishing the draft undoes that change. versionis 1 when an agent is made, and one more with each publish. Agents made before versions start at 1.
Trying a draft
Send a message with"version": "draft" to talk to the draft before you publish it (it applies to that turn only):
agent_version: "draft":
agent_draft is true. agent_version also takes a version number, to run an earlier version again. Without it, a task runs the published version. A task keeps the version it started with: publishing while it runs changes the next task.
History and restoring
GET /v1/agents/{agent_id}/versionslists the published versions, newest first, a page at a time.GET /v1/agents/{agent_id}/versions/{version}addsagent: the agent as it was in that version.POST /v1/agents/{agent_id}/versions/{version}/restoreputs that version in the draft, in place of any draft there. Publish it to make it live again.
published_by is null for the first version of an agent made before versions. Saving, discarding, publishing and restoring need the admin role or an API key, and each is in the audit log, with the fields that changed.
Coach
In the console, the agent’s test chat has two modes: Test talks to the agent as a customer would, and Coach talks to it as its manager. Tell it what to change in plain words (“be shorter on the phone”, “always check the order status first”) and it changes its own draft, showing each change in place. Changes to its instructions, first message, name and reasoning effort are saved at once, with Undo; anything else (guardrails, tools, its model) waits for you to accept it. Pick Ask first in the Coach header to accept every change yourself. Nothing changes for customers until you publish. It can also add, change and delete its own files: text it writes, or a file you attach in the chat or its code makes, saved as it is. Files aren’t versioned, so a file change reaches customers as soon as you accept it, and always waits for you to. Each procedure it adds comes with test cases that check it: when you accept the procedure, its cases are saved, tied to it, and a run of them is offered in the chat (it runs when you click Run); a procedure it changes gets a run of its cases offered the same way. It also has every tool its draft has (its HTTP tools, browser, computers and procedures), and on a Claude model always Run code, so you can hand it a spreadsheet, ask it to look something up or show how it would handle a request; those tools really run, as they do for customers. Coach keeps every chat: the clock button in its header lists the agent’s past Coach chats, your team’s and any started through the API with an API key (each says who started it, and how many of its changes are still waiting), and opens one to read or carry on, with its changes and whether each was accepted. Through the API,GET /v1/agents/:id/coach/conversations lists them (?mine=true for only yours). Coach replies are billed like any reply, and tasks it runs like any task.
Folders
Sort agents into folders, and folders into folders, as deep as you like (up to 20). The console’s Agents page shows one folder at a time, with a path back up (All agents › Sales › EMEA), and the sidebar shows the tree under Agents. New folder makes one in the folder you’re in; drag an agent or a folder onto a folder, a step of the path or the sidebar to move it, or use Move to… in its … menu. A search looks in every folder and says where each agent is. Admins change folders; the user role doesn’t see them. Through the API (client.agentFolders in the JS SDK, client.agent_folders in Python):
GET /v1/agent_folderslists every folder, flat, each withparent_id(null at the top), itspath(names from the top down) and how manyagentsandfoldersare directly in it.?parent_id=lists one folder’s own (rootfor the top).POST /v1/agent_folderswithnameandparent_idmakes one. Names are unique among a folder’s own folders, whatever the capitals (409otherwise).PATCH /v1/agent_folders/:idrenames it (name) or moves it (parent_id,nullfor the top), with everything in it. A folder can’t go inside itself or one of its own folders (400).DELETE /v1/agent_folders/:iddeletes it. Its agents and folders move up into its parent, so no agent goes with it; a folder moved up whose name is taken there gets ” (2)”.- An agent’s
folder_idsays where it is. Sendfolder_idwithPOST /v1/agentsto make it in a folder, orPATCH /v1/agents/:idto move it (null: out of its folder). Moving an agent makes no new version: where it’s kept isn’t how it works.GET /v1/agents?folder_id=lists one folder’s agents (root: those in none).
agent_folder.*, agent.moved).
Remote support settings
For remote support, an agent can work on a customer’s own Mac or PC while they watch: you send them an invite link (a session), and run tasks on their computer. These settings, under Customer’s screen on the agent’s page in the console, decide what the customer sees and may do there. They don’t affect conversations, or tasks on the agent’s own browser and computers, where nobody is at the screen.
These take
true or false (anything else is a 400), and are read when a task starts.
What the customer sees
While a task runs, the desktop app shows a banner with a Stop button. Withnarration on, it also shows what the agent is working on, step by step, as it happens, and its summary when it finishes. display_name puts your name on it (“Acme Support is typing…”) instead of Eager’s. Turn narration off if you’d rather the customer only sees that the agent is working (and its questions and approval requests, when customer_answers and customer_approvals are on).
Narration is the agent’s own words, so it can repeat what it was told: after your team answers a question, the agent’s next thought or message, or its summary, may restate that answer. Turn narration off for flows where your team’s answers must stay off the customer’s screen.
Questions the customer can answer
When the agent asks a question, the customer often knows the answer best: which account, which printer, which file. Withcustomer_answers on (the default), the question also appears in the app on their screen, with the agent’s suggested options, and they can answer it right there. Your team can still answer it at the same time, in the task’s conversation: from the console, or with POST /v1/conversations/{conversation_id}/decisions.
- The first answer is used. Your team’s answer after the customer’s gets
409 conflictwitherror.code: "already_decided"anderror.decided_by, so nobody’s answer is applied twice. - You can tell who answered. The task’s
answerevent hasdata.answered_by, and theconversation.question_answeredwebhook carries the answer and who gave it. When your team answers, the customer’s screen shows that the question was answered, not your team’s answer itself (though withnarrationon, the agent may repeat it in its own words, as described under “On the customer’s screen” above). pending.customer_can_answersays whether the customer can answer the question that is open now: the agent allows it and their desktop app is recent enough to take answers.- Secrets never go through questions. The agent never asks for a password, code or card number in a question. It asks the customer to type it on screen themselves.
"customer_answers": false, or the switch in the console under Agents) when your team should answer every question, for example when the answer depends on your records rather than the customer’s. The question then isn’t shown on the customer’s screen at all: the app only says the agent asked your team a question. The setting is read when a task starts: changing it affects the next task, not one already running.
With the SDKs, tasks.run() leaves questions the customer can answer to them when you don’t pass a question handler, and keeps following the task. See JavaScript and Python.
Approvals the customer can decide
Before anything consequential, the agent asks for an approval that says exactly what it is about to do. It’s the customer’s computer, so withcustomer_approvals on (the default), the request also appears in the app on their screen, and they can allow it or not right there. Your team can still decide it at the same time, in the task’s conversation: from the console, or with POST /v1/conversations/{conversation_id}/decisions.
It works like questions:
- The first decision is used. The later one gets
409 conflictwitherror.code: "already_decided"anderror.decided_by. - You can tell who decided. The task’s
approvedanddeniedevents havedata.answered_by, and theconversation.approval_decidedwebhook carries the decision and who made it. A decision can carry anote, the customer’s or your team’s, and the agent reads it. pending.customer_can_approvesays whether the customer can decide the approval that is open now: the agent allows it and their desktop app is recent enough to show approvals (1.0.16 or later).
"customer_approvals": false, or the switch in the console under Agents) when your team should decide every approval, for example when a policy says who may sign off. The request then isn’t shown on the customer’s screen: the app only says the agent is waiting for your team. Like customer_answers, it is read when a task starts.
Without an approval handler, the SDKs’ tasks.run() leaves approvals the customer can decide to them, and keeps following the task.
Sessions with no agent
An org’s agents are the ones it made; a new org has none. A session or task that names no agent still works: it runs on Eager’s own instructions alone, and the API showsagent_id: null (and agent_version: null) for it.
Deleting an agent deletes its versions, files and procedures. Sessions made with it then run with no agent.
Invite links
A session’sinvite_url names your org and, if the session has one, its agent:
For example
https://guidinghand.ai/acme/K7QM-24XP or https://guidinghand.ai/acme/billing/K7QM-24XP. {org} is your org’s address (its slug), which the org owner can change in the console.
Each agent’s invite_url_template is the same link with {code} in place of the code. Links in the older /join/CODE?t=… form still work.
Choosing an agent per session or task
POST /v1/sessionstakesagent_id. The session’s tasks run that agent, and its invite link and greeting belong to it.POST /v1/sessions/{session_id}/tasksalso takesagent_id, to run one task with a different agent than the session’s. An unknownagent_idreturns404 not_found.- It also takes
agent_version:"draft"to try the agent’s draft, or a number for an earlier version. A version the agent doesn’t have returns404 not_found.