Docs / Slack routing

Send to an agent

Hand a member, an activity or an organization to a Claude routine or your own ChatGPT agent, with a note.

Overview

Send to… can hand something to an agent instead of Slack. You can send three things:

  • A member, from the member’s page.
  • A member and one of their activities, from Route… on the Activity screen. Use this when one question or pull request needs work.
  • An organization, from the organization’s page.

The agent receives IDs and your note. It reads the rest from Datum. Then it does the work that you asked for, for example a draft reply or a summary of the questions from a company.

Use it when you decide that something needs attention now. Use Send a card when a colleague must read about it in Slack. Use a routing rule or an event trigger when the same work must happen every time something matches.

You can send to a Claude routine, which starts one run at once. You can also send to your own agent subscription, such as ChatGPT subscribed to member.sent or organisation.sent.

Configure

Only a workspace owner can send to an agent. Agents and API keys need admin scope.

A Claude routine

Follow Start a Claude routine to set up the routine and add it to Datum as a destination.

A hand-sent notice has a member_id or an organisation_id and no event ID. Add lines such as these to the routine’s prompt:

If the payload has a member_id instead of an event id, fetch that member with get_member and follow the teammate's note.
If it has an organisation_id, fetch that organization with get_organisation and follow the teammate's note.

An agent subscription

  1. Connect ChatGPT to Datum.
  2. Ask it one time to subscribe to the trigger for the things that you will send.

The triggers are:

  • member.sent for members, with or without an activity.
  • organisation.sent for organizations.

Follow MCP events for member.sent. Follow the organization trigger for organisation.sent. Neither trigger starts automatically. Each one starts only when a person sends something.

On a self-hosted instance, subscriptions need the events profile.

Basics

Send a member

  1. Open the member

    Open the person’s page from Members or search.

  2. Choose Agent

    1. Choose Send to… at the top of the page.
    2. Choose Agent.
  3. Pick the agent

    Select the agent in the Agent list.

    Claude routines shows each enabled routine, with the first line of its instructions as its name. Your agent subscriptions shows only your own live subscriptions to the correct trigger.

  4. Say what to do

    Enter a note in What should it do? (optional), for example “draft a reply to their last issue”.

  5. Send

    For a routine, press Start the run. For a subscription, press Send it.

    Datum confirms the send. For a routine, Claude can return a link. Then choose Open run to see the Claude session.

Send an activity

  1. On the Activity screen, choose Route… on a conversation.
  2. Choose Agent.
  3. Continue as for a member.

If the person started the conversation, Datum sends the person with the first message. Otherwise, Datum sends the person with their earliest message in the conversation. The agent gets the kind, title and link of the activity. It never gets what the person wrote. Datum always sends the title, without email addresses, whatever your personal-data setting is. The title is the published title of the thread, not a message.

Send an organization

  1. Open the organization from Organizations.
  2. Choose Send to….
  3. Choose Agent.
  4. Continue as for a member.

Datum refuses an organization that only your own team belongs to, and one an owner marked Not an organization.

What the agent receives

A routine receives one notice with these lines:

  • The Instructions of the destination, if it has instructions.
  • A fixed line that says that a teammate sent this member, activity or organization.
  • Your note.
  • For a member: the member_id, and the name only when Include personal data in events is on.
  • For an activity: also its activity_id, kind, title and link.
  • For an organization: its organisation_id, name and domain. See the note below the list.
  • A pointer to the Datum tools that read the rest.

A company name is usually not personal data. The name of a one-person organization can be personal data, for example a personal domain. Thus, Datum sends the name and domain of such an organization only when Include personal data in events is on.

An agent subscription receives one event. Neither event contains the note or a name.

  • A member.sent event has the member_id, a link to the member page, the sender, and whether there is a note. If you sent an activity, it also has the activity_id.
  • An organisation.sent event has the organisation_id, a link to the organization page, the sender, and whether there is a note.

The agent reads the note with get_event_context. Then it gets the details with get_member or get_organisation.

No agent ever receives email addresses or message text.

Where your note goes

Claude routine Agent subscription
How it travels Inside the notice Datum sends to Claude Kept in Datum; the event only says a note exists
Stored in Datum Never. Datum sends it one time. For 7 days
Who can read it in Datum Nobody The person who connected the agent, and admin-scope callers
After a member’s erasure Nothing to delete Datum deletes notes about that member
Addresses Removed Removed
Length Up to 500 characters Up to 500 characters

A note about an organization is not about a person. Thus, member erasure does not remove it, even if the note names the member. Datum removes addresses from the note and deletes it after 7 days. Datum replaces all text that looks like an email address with [address omitted]. Do not put other private details in notes.

Limits and refusals

You can send the same member, or the same organization, to the same agent one time each minute. An activity counts against the minute of its member. The limit counts all senders together.

Datum refuses a send, and sends nothing, in these cases:

  • The member is erased.
  • The activity does not belong to the member.
  • Only your own team belongs to the organization, or an owner marked it Not an organization.
  • The routine is off or archived, or it has no valid trigger URL.
  • The subscription is for a different trigger, it expired, or it lost its access.
  • The subscription belongs to a different person.

A routine send that Claude refuses for a reason you can fix, such as a revoked token, does not use up the minute. A rate limit, a server error or a lost connection does. A subscription send that the delivery service refuses does not use up the minute.

Each routine send uses the routine owner’s Claude plan.

The delivery log

For a routine, open the destination under Settings → Destinations. Deliveries marks each manual send Sent by hand. Each row has a View member or View organization link. When Claude returned a session, the row also has Open run ↗.

These rows have no Retry, because Datum did not keep the note. To send again, use the member page or the organization page.

For a subscription, Settings → Access → Agent subscriptions shows the last delivery.

From your terminal or agent

The CLI, MCP and REST can send the same things. Find routine IDs (cr_…) with ocmgr events destinations or list_destinations. Find subscription IDs (sub_…) with list_event_subscriptions. REST and MCP callers can send only to a subscription that shows mine and active. A terminal can send to any subscription. Name an organization by its ID or its key, such as domain:acme.io.

ocmgr members send-agent <memberId> --destination cr_… \
  --note "draft a reply to their last issue" --json
ocmgr members send-agent <memberId> --activity <activityId> --destination sub_… --json
ocmgr organisations send-agent domain:acme.io --destination cr_… \
  --note "summarise what they asked about this quarter" --dry-run --json

--dry-run runs every check and sends nothing. A send that did not go returns sent: false with a reason. A repeat within the minute returns CONFLICT, or 429 with Retry-After over REST.

An agent that acts on an event can pass that event’s data.event_id as event_id. A repeat returns the first result instead of sending twice. A send that did not go releases the key for a later retry. See Pass the event id to Datum’s actions, send_member_to_agent and send_organisation_to_agent.

FAQ

Why don't I see the Agent choice?

Only owners see it, because only owners can send to an agent.

Why is my ChatGPT subscription missing from the list?

The list shows only your own live subscriptions to the trigger for what you are sending: member.sent on a member or activity, organisation.sent on an organization. Ask ChatGPT to subscribe again if it expired, or if you reconnected the agent.

Does the agent message the member, or the company?

Not unless its own instructions tell it to. Datum only hands over IDs and your note. Review the routine’s prompt before you let it contact people.