docs
/
AI skills

Shared inbox — incoming email to the right person

Get a shared address like support@ into the Inbox, make sure each email gets a person or AI employee, and know how taking a conversation works. Built from a mailbox the platform reads and one automation, saved as a draft.

What the platform does and doesn't do. The Inbox is shared: everyone with the Inbox sees every conversation. There are no inbox rules and no "assign to" for a conversation. Each conversation instead has a handling state. Anyone can Take it, and while one person has it, nobody else can take it. To make sure a named person hears about each email, this skill adds an automation that gives them a task. Say this plainly. Don't promise per-person inboxes or rules that move mail.

Ask first

  • The address, e.g. [email protected]. Is it a hosted mailbox on Email Accounts, or an IMAP or Microsoft 365 mailbox connected under Integration Config?
  • Who handles it? A named person, a team, or an AI employee.
  • Should every email get a task, or is the shared Inbox enough?

Steps

1. Email Accounts: the mailbox the platform reads

Mail reaches the Inbox only from a mailbox the platform reads:

  • a hosted mailbox (email_account, hostedBy: "spinforge") with syncIncoming: true. It is off by default. Set it with update_record_partial ("data.syncIncoming": true). It also needs its saved password (accounts made on Email Accounts have one);
  • an IMAP or Microsoft 365 integration. Those are read unless their config has syncIncoming: false.

The platform checks about every 5 minutes. Each email becomes a message with direction: "inbound", deliveryType: "email", from, to, subject, text, html. An email with no subject is skipped. One that names a ticket (# and its number in the subject) goes onto that ticket and reopens it.

If the address doesn't exist yet, do Business email and the sending address first. A sending domain on its own receives nothing.

Hands on: the mailbox address, exactly as stored (lowercase it for step 3). Check: after the next email arrives, it shows in the Inbox (/inbox) under its sender.

2. Email Accounts: an AI employee for it (optional)

Give the mailbox to the AI employee: add its user email to the account's data.assignedUsers (update_record_partial, the whole list). With syncIncoming on, mail addressed (To or Cc) to that mailbox goes to that AI employee only, as work in its queue. Mail to an address no AI employee owns goes to every active AI employee that listens to email.

How it is shared out:

  • The AI employee takes the conversation, which stops other employees taking it.
  • If a person already has that conversation, new mail in it goes to the person, and no AI employee is woken.
  • Nobody takes it in 30 minutes: an "unclaimed" alert. An AI employee that takes it and doesn't finish in 120 minutes loses it, and it is offered again.

Hands on: the AI employee on the mailbox. Check: the Assigned to column on Email Accounts, and the AI employee's contact card lists the mailbox.

3. Automation: a task for a person (optional)

Call list_automation_capabilities and list_automations first, so you use names that run and don't build a second copy. Then create_automation with status: "draft":

  • trigger: database_change, { datatype: "message", operation: "created", whereField: "data.direction", whereValue: "inbound" }. It fires for inbound texts too, so the steps check the channel and address.
idtype / nameconfig
is_emailcondition if_thencondition: { field: "record.data.deliveryType", operator: "equals", value: "email" }, thenStepId: "to_support", elseStepId: "done"
to_supportcondition if_thencondition: { field: "record.data.to", operator: "contains", value: "[email protected]" }, thenStepId: "task", elseStepId: "done"
taskaction create_tasktitle: "Email from {{data.from}}: {{data.subject}}", description: "Answer it in the Inbox and press Done.", priority: "medium", assignedTo: "<person's email>"
doneend end_flownone
  • contains compares text exactly, capitals included. Use the address as the mailbox stores it.
  • assignedTo takes a person's email, a list of emails, or support_team / sales_team (everyone whose role or group name has "support" / "sales"). Empty means the person who started the run, which for synced mail is nobody useful. Always name someone.
  • The task belongs to the email and its assignee gets a notice.

Don't use the message_received trigger for this. Its channel filters don't stop a run, so it fires for every message saved, outbound ones included. sms_received never fires. And assign_to_user writes an assignedTo on the message that the Inbox doesn't show.

Stop: turning this on makes a task, and a notice, for every email to that address. Show the person the address, who gets the tasks, and the task's wording. Turn it on (set_automation_status → active) only after a clear yes.

Hands on: the automation's sk. Check: open it in the builder (/automation?openId=<automation sk>). Once on, the next email's run shows on its monitor (/automation?monitor=<automation sk>).

How taking works, for the person

In the Inbox, open a conversation. The panel on its latest email offers Take it, Done (with a line of what was done), Nothing needed, Give back and Open again. Each row in the list shows Open, the first name of whoever has it, Done or Closed. A conversation can be taken only while it is open. Nobody can hand it to someone else: give it back, and they take it.

When it's done

Tell the person:

  • the address, and that its mail now lands in the Inbox about every 5 minutes;
  • who handles it: the AI employee, the person who gets the tasks, or "whoever takes it";
  • whether the task automation is on or waiting as a draft;
  • that everyone with the Inbox sees every conversation.

What it can't do yet

  • No per-person inbox. The Inbox shows every message in the business to everyone who can open it. There is no Mine, Open or Unassigned filter.
  • No assigning a conversation to someone. Only taking it yourself. A task is the way to tell one person.
  • Texts aren't routed to people. Inbound texts land in the Inbox and wake AI employees that listen to SMS. Who the number is assigned to only affects calls.
  • The Inbox shows the latest 3,000 messages. Older conversations don't appear in it.

Don'ts

  • Don't promise rules that move or assign mail. There are none.
  • Don't turn on syncIncoming for a personal mailbox.
  • Don't create the automation active. Always pass status: "draft".