Create a workflow agent using natural language
Natural-language creation is an entry point into workflow mode, not a separate mode. You describe the workflow in plain language, agent builder generates the initial steps, and you refine them with more instructions or manual edits. The result is a standard workflow mode agent.
When you click Create agent, Glean opens auto mode by default. Use natural-language creation when you want a workflow mode agent but prefer to start from a description instead of a blank canvas. For the recommended starting experience, see Create your first auto mode agent.
Prerequisites
Confirm that:
- Agents are enabled for your organization.
- You have permission to create agents.
- You can open the Agent library from the left navigation in Glean.
If you do not see Agents in the left navigation, or Create agent is unavailable, agents may not be enabled for your account. Contact your administrator or Glean Support.
Create your workflow agent
- Open the Agent library in Glean.
- Enter workflow mode in one of two ways:
- Click the arrow next to Create agent, then select the option to create a workflow agent.
- Click Create agent, then select Build a workflow agent from the auto mode starting screen.
- Enter your instructions in the description box:
- Describe the steps the agent must follow and the format of the final output.
- To use a specific document that Glean indexes, enter its URL or tag it with
@. - Define input fields by enclosing them in double brackets, such as
Summarize the [[Zendesk ticket]].
- Agent builder generates the steps of your agent from your instructions.
Example instructions
Create a task-based agent that asks for a Jira ticket and suggests how to resolve it using relevant playbooks:
Suggest how to resolve the eng oncall issue in [[Jira ticket]]
* Search for playbooks that are related to the content of the ticket
* Think about which playbook is most relevant to the ticket
* Read the full content of that playbook and summarize how to resolve the ticket
Create a conversational agent that answers questions using past user research studies:
Create a chatbot that answers questions about user research studies
using these documents:
<URL of user research report 1>
<URL of user research report 2>
<URL of user research report 3>
Refine your agent
After agent builder generates the initial draft, refine it in any of these ways:
- Continue with natural language — click Open panel to open the natural-language panel and provide more instructions to change the steps.
- Edit manually — switch to manual editing to make precise changes to individual steps, models, triggers, or configurations. To build or control every step yourself on the canvas, see Create your first workflow mode agent.
- Enhance prompts — use the Enhance prompt feature on individual steps to apply best practices and improve instruction quality.
Switch between these approaches at any point and use whichever method is most efficient for the change you want to make.
Test and save
Before you share the agent, test it in Preview.
- Click Preview.
- Run the agent with a realistic input.
- Review the result and confirm the agent follows the steps and returns the output you expect.
When the behavior looks right, click Save. Saving makes the latest version available based on the sharing settings you choose.
See also
- Create your first workflow mode agent — build a workflow agent step by step on the canvas
- Create your first auto mode agent — build your first agent in auto mode
- Agent builder — reference for the builder surface and its controls