Create an agent
This page covers creating a team agent, choosing its permissions preset and testing it.
A team agent is an agent shared by a team for one kind of job, such as “Juniper Research Desk”. It works the same way for everyone, and people can reach it in Context, by email, in Slack or in Microsoft Teams.
Prerequisites
- Permission to create agents (the New agent button is visible in the Agents panel). On most organizations Members need an admin to allow agent creation for their role. Organizations on the newer permissions system differ; see Agents.
Create the agent
- Go to Agents > Starting points, find one close to your job, and click Use. To start blank, click New agent instead.
- The Create agent dialog opens. Type a name people will recognize under Name your agent, pick its face and colour if you like, and click Create.
- The agent’s page opens. Everything else is set there:
- Identity tab: Instructions (what the agent does and how; type @ to link a skill, file, connector, agent or person, see Instructions), Knows how to (your team’s skills and reference files it should always have), Connectors (the apps it can use), and Model.
- Access tab: Sharing (which workspaces it works in and who it is shared with; see Share an agent), Agent permissions (its permissions preset; see Choose a permissions preset) and Where it answers (email, Slack and Teams; see Platforms).
Create an agent from a workspace
You can also start in the workspace the agent is for. When a workspace has no agent, its home shows “No agent in this workspace yet” with Create an agent. If you already have an agent that could work there, Add your agents brings it in instead. Create an agent appears only if you’re allowed to create agents. An agent created this way starts in that workspace.
Only the name is required. Then, on the agent’s page, write its job under Instructions in plain words, for example “Write a one-page account brief for each client company: what they do, recent news, and three questions for the next meeting.” Skills are the procedures it loads when a task calls for one, and files are what it reads before every task. A file you upload there is saved to your Drive first.
Choose a permissions preset
On the agent’s Access tab, open Manage permissions under Agent permissions and use the Preset menu. New agents start on Full access, which never asks for approval. For a team agent, pick Ask for changes: the agent asks before it changes your Drive or workspace, or uses a connected app.
Agent permissions lists every preset, what each row allows and how to change single rows. Ask first sends an approval, and Don’t allow is final; see Answer approvals.
After you create it
When you click Create, the dialog closes and the new agent’s page opens. If the agent isn’t in any workspace yet, the @ picker won’t show it. To add it to one, see Add an agent to workspaces.
Back in the workspace, the agent is listed under Direct messages while that list is still empty, on organizations where channels and direct messages are turned on. People with Operator access can message it there. In the composer, the agent is already picked for you because it’s your newest agent. Teammates pick it once in the composer, and after that it’s their default in this workspace.
Instructions
State actions and conditions: what to do in which situation, and what not to do. Generic qualities such as “Be helpful, accurate and fast” don’t change the agent’s behavior. For example:
You are the Juniper Research Desk. You answer questions from the sales team about our products. Always use the files in @Product Docs first, and say which file you used. If the answer is not in our docs, say so; don’t guess. Keep answers under 150 words unless asked for more. Use the @Juniper tone skill.
Test an agent
Send the agent several real tasks from a workspace, and fix the instructions after each one. Do this before the team starts using it.
The Activity tab shows what the agent has done recently. Usage and action log on that tab lists every request in detail.
Best practices
- Define the job in one sentence, for example “Answers product questions from the sales team using our product docs”. A one-sentence job gives you something to test against.
- Limit each agent to one job. Single-purpose agents are easier to test.
- Leave the model on the default unless you have a reason to change it.
- Add only the connectors the agent needs. Each one is somewhere it could take action.
- Keep house style and repeatable steps in skills, not in the instructions. Skills can be shared with other agents and improved over time.
- Check the Access tab first when people can’t find the agent. It sets which workspaces the agent works in and who can use it.
- Review the Activity tab regularly after launch. It shows what people are asking the agent.
Next steps
- Share an agent: add the agent to workspaces and give the team a role on it.
- Agent permissions: adjust single permission rows and answer approvals.
- Platforms: reach the agent by email, in Slack or in Microsoft Teams.