Write Run AI Agent instructions that give you useful, reviewable results every time the automation runs.
How an automated agent runs
When the automation triggers, Tern starts a new AI Chat, attaches the trip or contact the automation belongs to, and sends your instructions as the first message. The agent works the same way AI Chat does when you type the request yourself. It can look things up in Tern and propose changes.
The agent never saves a change or sends an email on its own. Every write, like updating a booking, creating a task, or sending an email, appears as a card in the chat. You click Accept (or Send) to apply it, or Reject to discard it. Chats with a card waiting on you appear under Waiting for input in AI Chat.
Write instructions the agent can act on
Say what to look up, what to do, and what to propose. "Review this trip" works. "Review this trip for missing confirmation numbers and unpaid balances. Create a task for each problem you find" works better.
Refer to "this trip" or "this contact." The record is already attached to the chat, so you don't need to name it.
Ask for the action you want at the end. If you want an email drafted, say so ("Draft an email to the travelers"). The email card waits for you to click Send.
Keep one job per automation. An automation can have one Run AI Agent action. If you need two different jobs, create two automations.
Keep instructions under 10,000 characters.
Pick the right model
Each Run AI Agent action has a Model setting.
Premium is for complex, multi-step instructions. It uses more of your monthly AI usage. New Run AI Agent actions start on Premium.
Standard works for most instructions and uses less of your monthly AI usage.
If your instructions are a single check or a short draft, choose Standard.
Reuse instructions with chat prompts
Save instructions you use often as a chat prompt in Library, under Chat prompts. When you add the action, click Run AI Agent, then From Template, and pick the prompt.
Tern copies the prompt into the automation. If you edit the saved prompt later, automations that already use it don't change. Update each automation's instructions too.
Know whose chat it is
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. The chat, and any cards waiting for approval, appear in the trip owner's AI Chat, not yours.
Watch your AI usage
Automation-triggered agents count toward your monthly AI usage and show as Automation-triggered agents in your usage breakdown. An automation on a workflow can run on every trip that uses the workflow, so usage adds up quickly.
If you've reached your monthly AI limit, the Run AI Agent action doesn't run and no chat is created. The Last trigger date column on the trip's or contact's Automations tab shows Error, with a tooltip saying you've hit your AI limit. The automation's other actions, like tasks and emails, still run. See AI usage limits.
Common issues
The chat ran but didn't change anything. Open the chat. If the agent proposed a change, it's waiting as a card under Waiting for input. Click Accept to apply it.
I'm a collaborator and can't find the chat. The chat belongs to the trip owner. Ask the trip owner to open it in their AI Chat.
The results are too vague. Add detail to the instructions: what to check, what counts as a problem, and what to do about each problem.
If an automation triggered but no chat appeared and you haven't reached your AI limit, contact Tern support.