An AI employee does what reaches its queue, and decides what to do from what it is told. So a standing job always has two halves: what it is told (words it reads before every job) and how the work reaches it (assignment, a channel, a check-in). This skill sets both for one job. It assumes the employee exists (Set up an AI employee for a role).
Ask first
- Which employee? By name. Take its handle:
GET /ai-employeeslists them (data[].name). - What is the job? In the person's words: what starts it, what it should do, what it must not do, and when to hand to a person.
- What starts it? A new lead, a new ticket, an inbound email or text, a form, an order, a customer waiting in chat, a time of day, or something else that changes.
- Which records? For leads: which pipeline, which leads (all, or only some sources). For tickets: all new ones, or only those assigned to it.
- Who hears about it? Its supervisor gets its approvals; name anyone else who should get its reports.
How work reaches an AI employee
| Way | What makes it | The job it becomes (source) |
|---|---|---|
| A task, ticket or lead assigned to its user email | the record's assignee (task/ticket assignTo, lead assignedTo) | assigned, one per record |
A channel it listens to (listensTo) | a new inbound message or record of that kind | message |
| Mail to its own mailbox | email to an account assigned to it | message, to it alone |
| Someone writes to it | a Workspace message (direct, or an @mention), a Chat message | message |
| Give work | a person, or POST /ai-employees/<name>/work | direct |
| The regular check-in | the ai-employee-ping job, every 5 minutes by default, while it is on and inside its hours | ping |
| A call it took or made ends | the transcript | call |
The channels (listensTo):
| Value | It is woken when |
|---|---|
ticket | a new support ticket is created |
form | a CRM form is submitted |
order | a new order arrives |
email | an inbound email arrives on any of the business's accounts (unless it is addressed to another AI employee's own mailbox) |
sms | an inbound text arrives on any number |
whatsapp | an inbound WhatsApp message arrives |
social | a DM, comment or mention arrives on a connected page |
chat_queue | a website visitor is waiting for a person |
There is no lead channel. New leads reach it by assignment (step 3).
Steps
1. AI Employees: what it is told
Two places, read fresh before every job:
- Its job description (
jobDescription): what this one employee is responsible for.PUT /ai-employees/<name>with{ "jobDescription": "…" }. Other fields are kept. Read the current text first (GET /ai-employees/<name>,record.data.jobDescription) and add to it; don't replace the person's words. - An instruction for one or more employees:
{ title, content, enabled, who: "all" | "only" | "except", employees: ["<handle>"] }. Read the list withGET /ai-employees/instructions(data). Save withPUT /ai-employees/instructionsand{ "instructions": [ …every instruction… ] }.
PUT /ai-employees/instructions replaces the whole list. Send back every existing instruction, unchanged, with yours added. An instruction with who: "only" and no employees is refused.
Write the job the way you'd tell a person, with what starts it, what to do, the limits and when to ask:
New leads on Website sales: within the hour, email them from your mailbox using the lead-welcome wording, then note on the lead what you sent. If they ask for a price or a discount, don't answer: ask your supervisor first. If they don't reply in 3 days, follow up once.
For times of day ("every weekday at 9", "a report at 5 pm"), write them in the instruction. The employee acts on them at a check-in, inside its working hours and timezone, so the time is approximate, not a clock.
To see everything it is told, in order: GET /ai-employees/<name>/instructions (the organization's instructions meant for it, then its job description). Each change is also sent to it as a Your setup changed job.
Hands on: the wording, saved.
Check: its Instructions tab (/ai-employees?open=<name>) shows it. AI Employees › Instructions (/ai-employees?tab=instructions) shows who each instruction is for.
2. AI Employees: the channels it listens to (if the job starts from inbound)
Add the channel to listensTo: PUT /ai-employees/<name> with the full list, e.g. { "listensTo": ["ticket", "form"] }. A value outside the list above is refused and the answer names the valid ones.
How a channel alert behaves:
- Every switched-on employee listening to the channel is woken. The first to take the record has it; the others drop it.
- If a person already has that conversation, no AI employee is woken. It stays theirs.
- If nobody takes it within 30 minutes (the platform's default), it is raised in the AI team workspace. If an AI employee takes it and doesn't finish within 2 hours, it opens again for anyone.
Don't give one channel to an AI employee and an AI assistant. An assistant with a message.received or sms.received trigger answers at once, and the employee answers too.
Hands on: its listensTo.
Check: its Profile tab lists Listens to: direct messages, mentions and assigned work, then each channel.
3. Leads or Automation: the records it gets
Pick the way that matches "what starts it".
New leads on a pipeline. Give it the pipeline's new leads through the assignment rules, with its user email as the person: { "type": "user", "value": "<handle>@<org>.ai-employee.local" }. Put a rule with criteria (e.g. source: ["website"]) before the catch-all, or make it the catch-all. Every lead the rule gives it becomes an assigned job. The rule format is step 3 of Set up lead acquisition.
Tickets. Either listen to ticket (step 2) for every new ticket, or assign tickets to it (assignTo = its user email) for only some.
Anything else that changes. Build a draft automation whose action is create_task with assignedTo: "<its user email>", a title that says what to do and a description with the record's details ({{data.<field>}}). The task lands in its queue as assigned work. Use list_automation_capabilities and create_automation with status: "draft". For the trigger and conditions, see Automation when a record changes.
Stop. From the moment this is live, real customers get its emails, texts and replies, with no person in between unless its approval rules say so. Show the person:
- what it is told (step 1), word for word;
- what starts it, and how many records that is likely to be a day;
- what it will do and whom it will contact;
- what it must ask about first (its Approvals tab).
Save the assignment rule or turn the automation on (set_automation_status → active) only after a clear yes. If the employee is still a draft, nothing happens until it is switched on.
Hands on: the pipeline's rule, or the automation's sk.
Check: on the board (/leads?pipeline=<pipeline sk>), Assignment lists the rule with the employee. An automation opens at /automation?openId=<automation sk>.
4. AI Employees: try it once
Put one sample job in its queue instead of waiting for a real one: POST /ai-employees/<name>/work with
{ "title": "Try: follow up ticket 1042", "instructions": "<what it should do, as the standing job says>", "priority": "low", "attachments": [{ "kind": "record", "datatype": "ticket", "id": "<ticket sk>", "comment": "the ticket to follow up" }] }Use a record the person picked, and a @test.local customer if anything would be sent. On a draft employee the job only waits in the queue. On a switched-on one it is worked, for real.
Hands on: the job's sk. Check: its Work tab shows the job. Read it as in Review what an AI employee did.
When it's done
Tell the person:
- the job, in the words it is told, and where they live (job description or instruction);
- what starts it: the channel, the assignment rule or the automation;
- whether it is live, or waiting on the employee being switched on or the automation's yes;
- what it asks about first.
Open its Instructions tab.
What it can't do yet
- No exact schedules. "At 9:00" is read at a check-in, every 5 minutes or so while it is on and inside its hours. There is no per-employee cron.
- No lead channel. New leads come by assignment only.
- The
emailchannel is every inbox. It is woken for mail to any of the business's accounts. To give it one inbox only, assign that mailbox to it and leaveemailoff. - Its notes are its own. A note you add to its memory is not read by it. Tell it things through its instructions, Workspace or Chat.
Don'ts
- Don't replace the instruction list with only yours.
- Don't promise prices, discounts or dates in its instructions that the person didn't give.
- Don't give it a channel an AI assistant already answers.
- Don't save an assignment rule or turn on an automation that feeds it without a yes.