Skip to main content
SiGMA World Rome · booth H7-7129 →
§ Guide · AI assistants

Wake a Claude session with triggers

A Claude session can answer your customers' messages the moment they arrive. Pick the session once on a Claude agent, and the agent's triggers send their messages to it: one trigger for each chat or rule, all of them into the same session. A trigger can also name a different session. This guide shows how to start the session with the channel on, pick it, add a trigger and check the first call in the Activity tab.

Updated 2026-10-28
§ Before you start
  • The DialogBrain plugin installed in Claude and signed in: type /mcp inside Claude and sign in when the browser opens. The set-up guide shows the two install commands.
  • An API key from DialogBrain: Settings → Developer → API Keys. Enter it when you install the plugin, or put it in the plugin's .env file (step 1). Without a key the session never appears in the list.
  • A channel name for the session, entered at the same place as the key. The session is addressed by this name.
  • A connected channel with the chats you want to hand to Claude, for example a WhatsApp number or a Telegram account.
  • Claude started in the terminal with the channel switched on (step 1). A session started without it keeps its DialogBrain tools, but nothing is pushed into it, so a trigger has nothing to wake.
  1. Step 1

    Start Claude with the channel switched on

    Enter the API key and the channel name once, in the plugin's settings file. The name is the session's address for the DialogBrain tools, and it is the label the session shows when it has no first prompt yet:

    # ~/.claude/channels/dialogbrain/.env
    DIALOGBRAIN_TOKEN=<your API key>
    DIALOGBRAIN_CHANNEL_NAME=sales

    Then start Claude with the flag that names the channel. Claude lets messages into a session only when it was started with it:

    claude --channels plugin:dialogbrain@dialogbrain

    The flag works only on a machine that allows the channel. The administrator of the machine sets that once, in the managed settings file:

    # /etc/claude-code/managed-settings.json  (set once, by whoever administers the machine)
    {
      "channelsEnabled": true,
      "allowedChannelPlugins": [{ "plugin": "dialogbrain", "marketplace": "dialogbrain" }]
    }

    For a quick try on a machine without that file, the development flag does the same job. The word "dangerously" is Claude's warning that the channel is outside its managed list:

    claude --dangerously-load-development-channels plugin:dialogbrain@dialogbrain

    To carry on with an old session, resume it with the same flag. The id does not change, so nothing has to be set up again:

    claude --resume <session id> --channels plugin:dialogbrain@dialogbrain

    Waking a session is an experimental Claude feature and is not switched on for every account. On a Team or Enterprise plan an owner first turns Channels on in the admin settings of claude.ai.

  2. Step 2

    Give the agent that session

    Open AI Agents. Once the workspace has an agent, the filter row shows a "Sessions" button. Press it to see the sessions running now: each is listed with its folder, its git branch and how long it has been connected. A session's title is its first prompt, or folder · name when there is none yet.

    Press "Create agent for this session" on the session you want. The new agent is a Session agent bound to it, and its Session card shows "Connected".

    If the agent already exists, open it with the kind filter set to "Session", and open the picker on the Session card at the top of Overview. The picker marks the running sessions with a green dot. "used by" next to a session means another agent already forwards to it: pick a different one. Two agents on one session would mix their calls.

    In a workspace with no agent yet, the button is not there. Use New Agent → Session, then pick the session on the new agent's Session card.

    There is nothing to save. The choice takes effect when you pick it.

  3. Step 3

    Add a trigger for the chats you want

    On the agent's page open the Triggers tab and press "Add Trigger". Choose "Incoming Message", which is the usual choice.

    Expand the trigger and set what should wake the session: the channel, the account, the chat type (direct chats, groups or both), specific chats, and keywords if only messages with certain words should count. Then switch the trigger on.

    A trigger normally sends to the agent's session, so one agent can have as many triggers as you need. A trigger never names a session of its own. To send some chats to another session, put their trigger on that session's agent.

    Or ask the session itself, in plain words, for example: "wake this session when a customer writes on WhatsApp". The plugin's react-to-events skill creates the trigger on its agent.

  4. Step 4

    Check the first call

    Write a message from another phone into one of the chats you chose, or ask the agent in the AI panel.

    The message reaches the session and Claude answers it. If you have not told Claude to skip permission prompts, it asks you before a reply is sent.

    Open the agent's Activity tab. Every call is a row that shows what was asked, what the session answered and the status. A finished call reads "Answered"; one that has not been answered yet reads "Waiting".

    A call that stays "Waiting" for more than 10 minutes gets an amber notice. Usually the session is busy with something else, or it was started without the channel flag: check step 1.

One session, one agent

A session belongs to one agent at a time, and two agents sharing a session would mix their calls. If two sets of chats need two different agents, give each agent its own session. Triggers stay with their agent, so moving a session never means rebuilding them.

When a session is closed

While the agent's session is closed, messages do not reach it. They stay in the inbox. To carry on, resume the same session with --resume and its id, or pick a connected session on the Session card.

What wakes a session

An incoming-message trigger fires only on a message from the other side. What you write from the connected account is outgoing and wakes nothing. Schedule and task triggers also wake a session.

§ Q & A
Can two agents share one session?

No. Each session is bound to one agent. If two agents were bound to the same session, their calls would be mixed together.

Does every trigger need its own session?

No. Triggers send to the session of the agent they belong to. To send chats to another session, put the trigger on the agent of that session.

What happens if the session is closed?

The agent shows "Not connected". While it is closed, messages do not reach the session; they stay in the inbox. Resume the session with --resume, or pick a connected session on the Session card.

Do the agent's draft or auto send mode apply?

No. A Claude agent's send mode does not apply: the session sends with its own tools. If you want approval first, say so in the agent's instructions or the session prompt: prepare a draft and ask before sending.

Does the agent's model matter?

No. The session writes the answer, so the model that matters is the one Claude runs.

Where are the answers recorded?

In the agent's Activity tab, with one row per call: what was asked, what the session answered and the status.

Why did a call stay Waiting?

The session was busy with a previous request, or it was started without the channel flag, so Claude dropped the message. Start it again with the flag, or pick another connected session.