Skip to main content

Run AI Agent - Automation Action

How to use the Run AI Agent automation action in Tern to start an AI chat automatically based on existing triggers

J
Written by Jack Bradmiller-Feld

The Run AI Agent action lets an automation start a Tern chat for you, with instructions you set in advance. When the automation fires, Tern opens an AI Chat, attaches the trip or contact the automation belongs to, and runs your instructions.

Note: Automation-triggered agents use AI and count toward your monthly AI usage.

What it does

Run AI Agent is an automation action that lets you create an AI chat based on existing automation triggers. Instead of opening a chat and asking the agent to do something every time, you write the instructions once inside an automation. When the trigger conditions are met, Tern starts the chat for you and runs those instructions against the trip or contact the automation belongs to.

This is useful for any repeatable task you'd otherwise ask the agent to do by hand, such as reviewing a trip, checking for missing details, or drafting a follow-up.

How it works

You add Run AI Agent as an action on an automation. You give the agent a set of instructions (for example, "Review this trip"). When the automation triggers, Tern creates a new chat, attaches the trip or contact, and runs your instructions. The chat belongs to the automation's owner and counts toward that person's AI usage. If you're a collaborator on someone else's trip, the agent runs as the trip owner, and the chat appears in their AI Chat, not yours. The result appears under Recents or Waiting for input.

If the agent's response requires you to act on something, the chat moves to the Waiting for input section of your chats.

Choose a Model

Each Run AI Agent action has a Model setting, so you can pick the AI model for that automation.

  • Premium is for complex, multi-step instructions. It uses more of your monthly AI usage. Premium is the default, and existing Run AI Agent actions stay on Premium until you change them.

  • Standard works for most instructions and uses less of your monthly AI usage.

The chat the automation starts runs on the model you pick. Both models count toward your monthly AI usage. See AI Chat for Notes and CRM for more on the two models.

Key terms

Run AI Agent: The action that starts a chat and runs your instructions automatically.

Agent instructions: The text you write in the action telling the agent what to do when the chat starts.

How to set up a Run AI Agent automation

Steps

  1. Go to your Library and open Automations.

  2. Create a new automation. Give it a clear name so you can find it later.

  3. Set the trigger.

  4. Add the Run AI Agent action. Click Run AI Agent, then choose New Agent to write instructions, or From Template to start from one of your saved chat prompts. A template is copied into the automation. Later edits to the saved prompt don't change the automation. An automation can have one Run AI Agent action.

  5. Write your agent instructions. Type what you want the agent to do, for example "Review this trip." You can add more detail about how you want it reviewed.

    • Choose a model. Under Model, keep Premium for complex, multi-step instructions, or pick Standard for simpler ones to use less of your AI usage.

  6. Add more actions if you want, then save. You can add other actions to the same automation.

  7. Connect the automation to a workflow (optional but recommended).

You'll know it worked when

A new chat appears under Recents with the trip or contact attached and a label showing an automation started it. Tern's AI writes a short title for the chat based on your instructions. Open the chat to see the agent's response.

Examples

Review trip when a trip moves to booked status

Send a personalized email when a trip is ready for client review

Common questions

The chat didn't appear after the trigger. Check that the automation's trigger is set to the correct status and timing, and that the automation is added to the trip directly or to a workflow that applies to that trip. Confirm it ran in the trip's Audit → Automations tab.

The automation shows "Error" and no chat was created. If the automation's owner has reached their monthly AI limit, the Run AI Agent action doesn't run. The Last trigger date column on the trip's or contact's Automations tab shows Error, and hovering the info icon explains that you've hit your AI limit. The automation's other actions, like tasks and emails, still run. See AI usage limits.

The agent's response needs my input. If the agent's response includes an action for you to take, the chat moves to the Waiting for input section of your chats. Open it there to continue.

Related

Did this answer your question?