What Are Actions?
Actions are reusable prompt templates that define sequences of messages with dynamic variable substitution. They allow you to create standardized workflows that can be used across multiple sessions and tasks with different inputs each time. Think of actions as saved conversation starters with fill-in-the-blanks. You define the structure once with variable placeholders like{{location}} or {{customerName}}, then run the action with different values whenever needed.
Why Use Actions?
Actions help you:- Standardize workflows - Define consistent prompts for common tasks
- Reduce repetition - Avoid rewriting the same instructions
- Maintain quality - Use tested, reliable prompts that work
- Scale operations - Run the same workflow with different inputs
Creating an Action
You can create actions through conversation with your default agent, or directly in the UI by clicking “New Action” from the Actions page.Configuration
Name (required) - A descriptive identifier for your action (2-100 characters). Use clear, specific names like “Daily Weather Report” or “Summarize GitHub PR” rather than generic ones like “Action 1”. Messages (required) - The sequence of user and assistant messages that define your workflow. Each message can be:- User message - Instructions or prompts that guide the agent
- Assistant message - Either pre-filled responses or AI-generated (set to null for dynamic generation)
{{variableName}}. Variables are automatically detected as you type them in messages.
Building Messages
Actions consist of a sequence of messages between user and assistant. This allows you to: Guide the conversation flow - Set up context with initial instructions, then have the agent respond, then provide follow-up instructions. Prime the agent’s behavior - Use pre-filled assistant messages to establish tone, format, or examples before the dynamic work begins. Create multi-step workflows - Break complex tasks into discrete conversation turns for better control.Message Types
User Messages: Always contain your instructions or prompts. These guide what the agent should do. They can include variable placeholders that get replaced at runtime. Example:- Establishing output format or tone
- Providing examples or templates
- Creating deterministic multi-turn workflows
Reordering Messages
Use drag-and-drop to reorder messages in the action editor. This lets you adjust the conversation flow without recreating messages.Working with Variables
Variables make actions flexible and reusable. Define them once, use them everywhere in your messages.Variable Syntax
Use double-brace syntax:{{variableName}}
Variables names should be:
- Alphanumeric with hyphens or underscores
- Descriptive (use
customerEmailnote1) - Consistent across messages
Auto-Detection
As you type{{ in a message, the variable is automatically detected and added to the variables section. You don’t need to manually declare variables - just use them.
Example: Type this in a message…
firstName, orderId, city.
Default Values
Set default values for each variable in the variables section. These are used:- As placeholders when testing the action
- In the UI to show users what kind of value to provide
- As fallbacks if no value is provided (though validation will fail in production use)
Validation Rules
All variables must follow these rules: Used in messages - Every variable you declare must appear in at least one message. Unused variables cause validation errors. Non-empty values - Variables cannot be empty strings when running the action. You must provide actual values. All required - When running an action, you must provide values for all declared variables. There are no optional variables.Example: Customer Support Response
Here’s a complete action that handles customer support inquiries: Name:Customer Support Response
Variables:
customerName- The customer’s nameissueType- Type of issue (billing, technical, shipping)orderNumber- The order number if applicable
- User Message:
- Assistant Message (AI-Generated): Content is null - the AI will generate the actual support response based on what it finds.
customerName: “Sarah Johnson”issueType: “shipping delay”orderNumber: “ORD-12345”
Managing Actions
Viewing Actions
The Actions page shows all actions in your organization with:- Action name
- Message count (how many messages in the sequence)
- Last updated date
Editing Actions
Click an action to open the editor. You can:- Update the name
- Add, remove, or reorder messages
- Modify message content
- Toggle assistant messages between pre-filled and AI-generated
- Adjust variable default values
Deleting Actions
Delete actions from the context menu. This removes the action and removes it from any tasks that reference it. Use caution when deleting actions that are actively used in tasks.Duplicating Actions
Create variations of existing actions by duplicating them from the context menu. This copies all messages and variables into a new action with a copy suffix in the name.Action Access
Actions are scoped to your organization. All members can:- View all actions
- Use actions in tasks they create
- Create new actions
- Edit existing actions
- Delete actions
Next Steps
- Tasks - Set up autonomous agentic workflows