On this page
Build an agent and schedule it to run
Create a chat agent in Generate, give it instructions, knowledge, connectors and skills, schedule jobs, call it over the API, and share or export it.
This page shows you how to build an agent in Generate, chat with it, run it on a schedule, call it from another system and share it.
An agent is a saved assistant with its own instructions, files, tools and settings. You and the people you share it with can chat with it, run it on a schedule, or call it from another system. Build one when you find yourself giving Generate the same instructions in chat after chat, such as how to write the weekly report or which knowledge to search for a support question.
Generate has two kinds of agent:
| Kind | Set up on | Use it for |
|---|---|---|
| Chat agent | One form | An assistant with instructions, knowledge and tools that answers in a chat |
| Workflow agent | The workflow builder canvas | A task of several steps, with decisions, loops or approvals, steps run once per item of a list or at the same time, retries, files it reads, such as a PDF sent as base64, and files the run hands back |
Find your agents
Section titled “Find your agents”Open the agents you built, were given, or that anyone in the workspace owns.
-
Open Agents
Select Agents in the sidebar.
Open full sizeShown in the enterprise edition. -
Pick a tab
Your agents, Shared with you, or All in workspace, which lists every agent in the workspace whoever owns it.
-
Search and sort
Type in Search agents… to find one by name, and use Sort by to order the cards. Each card says whether it is a chat agent or a workflow agent.
Create an agent
Section titled “Create an agent”Start a chat agent, a workflow agent, or an import of one someone exported.
-
Select New agent
Select Agents in the sidebar, then New agent.
-
Choose how to start
In Create your agent, choose Quick start (Basic, chat agent) and select Create agent to open the agent form. Workflow builder (Advanced, workflow agent) opens the canvas instead; see Design a multi-step workflow agent. Import from JSON takes an agent file someone exported; upload it and select Import agent.
Open full sizeShown in the enterprise edition. -
Fill in the form
For Quick start, fill in the form as in Set up a chat agent and select Create agent at the top right.
Start from a template
Section titled “Start from a template”Copy a ready-made agent or workflow and change it to suit you.
-
Select Browse
On the Agents page, select Browse.
-
Find a template
In Browse templates, search or pick a category. Templates include both chat agents and workflows.
Open full sizeShown in the enterprise edition. -
Open it
Open a template to see its Instructions, Tools, Skills it adds, Starter prompts and Settings such as web search and live browser.
-
Select Use template
Generate makes your own copy.
On the healthcare edition, the same template view also opens from a link in the Payer changes this week, Payer scorecard and Denials by category widgets on Home, where your edition offers that template; Use template there makes the same copy. The Start a task widget on Home opens its templates in the agent builder. See Home.
Set up a chat agent
Section titled “Set up a chat agent”Give the agent its instructions, knowledge and tools on one form.
-
Name and describe it
In the Agent builder form, enter a Name and a Description; both are required.
Open full sizeShown in the enterprise edition. -
Write its instructions
Under Instructions, say in plain English what the agent should do and how, then add Starter prompts, an Input placeholder and the Effort.
-
Give it knowledge and tools
Add Knowledge, Connectors and Skills, and turn on Web search, Live Browser or API Access as it needs. The agent form fields table says what each one does.
-
Select Create agent
Or Update agent when you edit it later. Cancel asks before it discards unsaved changes. To turn a chat agent into a workflow, select Convert to workflow.
If automatic web search is on in your Settings, then Preferences, your own chats with the agent always search the web; the agent’s Web search setting applies to everyone else.
Chat with an agent
Section titled “Chat with an agent”Ask the agent questions on its own page.
-
Open the agent
Open it from the Agents page. Its page shows its description, a message box with the agent’s skills and connectors, and three tabs: Your chats, Starter prompts and Your jobs.
Open full sizeShown in the enterprise edition. -
Connect what it needs
If the agent uses a connector you have not connected, the page says This agent needs one of your accounts and offers a button to connect it.
-
Send your message
Use Choose project in the message box to run the chat inside a project. Chats you have with the agent stay under Your chats.
The effort control in the message box starts at the agent’s Effort, marked as the agent’s setting. Pick Low, Medium or High to change it for this chat; later messages in the chat keep your pick.
Schedule a job
Section titled “Schedule a job”A job runs the agent for you at set times, with nobody at the screen.
-
Select Schedule job
On the agent’s page, open Your jobs and select Schedule job.
-
Say what to do
Enter a Name, an optional Description and, under What should the agent do?, the task.
-
Set when it runs
Choose One-time with a date and time, or Recurring with a Frequency, the Days, At hour and At minute, and a Timezone.
-
Set advanced options
Select Show advanced options for a Cron expression, Max runs, Max retries, Retry delay (s), an End date, and a Done when condition each run is checked against.
-
Pick a project, memory and web search
Optionally pick a Project for the runs, and set Remember from these runs and Use my memory in these runs under Memory, and Web search.
-
Select Schedule job
Before the first run, Generate may show Before it runs: questions the agent would otherwise guess at on every run. Answer them and select Save answers, or Not now.
Each job’s row shows when it runs next, its last run and its status. Its menu offers Edit, Pause, Resume, Trigger now and Delete. Select View run history to see every run, and View result to open the chat a run produced. A run waiting for an approval says so; open it to approve or reject.
A job pauses itself when it can no longer run as set up, and its row says why: an administrator paused it, you lost access to the agent, the agent was suspended, or its owner was deactivated. Fix the cause and select Resume. A completed job cannot be edited or triggered, and a one-time job cannot be triggered by hand.
Call an agent from another system
Section titled “Call an agent from another system”Let another system send the agent a message over HTTPS.
-
Turn on API Access
In the agent form, turn on API Access. The section shows the agent’s Public URL (POST) and cURL examples: a JSON call, a call with files, a call inside a project and a follow-up in the same chat.
-
Copy the token
Generate creates an API key the first time. Copy the token while it is shown, because you will not see it again.
-
Download the guide
Select the download button under the examples to give the developer who calls the agent a Markdown guide.
Until the agent is saved, the examples use a placeholder ID. Manage keys later in Settings, then API Keys.
Share, copy or export an agent
Section titled “Share, copy or export an agent”Act on an agent from its options menu.
-
Open the agent’s options
Select the three dots on its card. The agent options table says what each does.
Open full sizeShown in the enterprise edition. -
Select Share
Whose account each connector acts as shows, per connector, whether the agent uses its owner’s account or each person’s own (Personal connection).
Open full sizeShown in the enterprise edition. -
Pick people and a role
A viewer can run the agent and see its setup; an editor can also change it and share it. See Sharing and access requests for roles and requests.
Agent form fields
Section titled “Agent form fields”The Agent builder form has these fields, top to bottom:
| Field | What to enter |
|---|---|
| Name | What the agent is called. Required. |
| Description | What the agent does, in up to 1,000 characters. Required. |
| Instructions | In plain English, what the agent should do and how. The more detail, the better it follows them. |
| Starter prompts | Suggested first questions, shown when someone opens the agent. Select + to add another. |
| Input placeholder | The hint shown in the agent’s message box, How can I help you today? unless you change it |
| Effort | Low, Medium or High; higher thinks longer before answering |
| Knowledge | Files and databases the agent searches. See Knowledge base and files. |
| Connectors | The apps it may use. Select Manage connectors to add accounts. Only one account per connector can be selected. |
| Skills | Reusable instructions it follows. See Skills. A skill someone shared with you cannot be added while the agent is shared. |
| Web search | Allows the agent to search the web |
| Live Browser | Allows the agent to drive a live web browser |
| API Access | Allows other systems to call the agent over HTTPS |
Agent options
Section titled “Agent options”| Option | What it does |
|---|---|
| Edit | Opens the agent to change its setup |
| Add to favorites | Pins the agent to your favorites on the Home screen |
| Add to project | Makes it available in a project; needs edit access to the agent |
| Share | Gives people or teams Viewer or Editor access |
| Make copy | Duplicates it as a new agent you own |
| Export | Downloads its configuration as JSON for Import from JSON elsewhere. You choose which of your skills travel with it; a skill shared with you cannot be exported. |
| Delete | Deletes an agent you own |
| Exit from agent | Removes an agent someone shared with you |
When something goes wrong
Section titled “When something goes wrong”| What you see | What to do |
|---|---|
| Create agent stays greyed out | Fill in Name and Description. |
| This agent needs one of your accounts | Connect the connector it names; the agent runs on its owner’s connections and you have not connected that app. |
| A skill on the agent shows as switched off | Its owner removed the access of the person who added it, or the skill was disabled or deleted. Hover over it for the reason, then remove it or ask for access. |
| Suspended by an administrator | Nobody can chat with it, call it or run its jobs until an administrator lifts the suspension. You can still open and edit it. |
| Edit is not available for your user or team | You have view access. Ask the owner for edit access. |
How editions differ
Section titled “How editions differ”| Edition | What changes |
|---|---|
| Enterprise, consumer, storage | Everything on this page. |
| Healthcare | The agent form can also attach healthcare datasets. |
| Airgapped | No Web search, Live Browser or Connectors in the agent form. |
Last updated on