Skip to content

Delegating from One Bot to Another

In the chat, the Bot that receives your request (the main Bot) can hand part of the request over to another Bot. There are two ways to do this: naming the Bot and @.

Method How to write the request Where it runs Where the result appears
Naming Mention the Bot name in the request (without @) In a tab with the delegated Bot’s name, inside the chat where you made the request In the chat where you made the request (the main Bot checks the result and answers)
@ Write @<Bot name> in your message In the delegated Bot’s dedicated chat Arrives in the chat where you made the request after the delegated Bot finishes
  • Naming: The main Bot calls that Bot as a subagent and hands the work over to it. A tab with the delegated Bot’s name appears to the right of the chat tab.
  • @: The main Bot sends the request to the other Bot’s dedicated chat. By default, the main Bot’s answer ends once the request is sent, and when the other Bot finishes, the result arrives in the chat where you made the request.

Use delegation when you want to hand part of a request over to another Bot that is good at that kind of work (both naming and @ work for this). When you want several Bots to work on separate tasks at the same time, use @.

To use delegation, Bot Delegation under Agent in Settings must be set to “Allow”. The default is “Allow”.

  • If you choose “Deny”, the main Agent does not delegate to other Bots. Typing @ in the input box does not show Bot suggestions.
  • When you save the setting, “Saved. Restart the app to apply the changes” appears. The setting takes effect after you restart the app.
  1. Mention the name of the Bot you want to hand the work to in your request. Do not add @.

    Example request:

    Ask Policy Advisor to check the deadline for travel expense requests

  2. When the main Bot delegates, a tab with the delegated Bot’s name appears to the right of the chat tab. Select the tab to see the request passed to the delegated Bot and its response.

  3. When the delegated Bot finishes, the main Bot checks the result and answers.

The following image shows the state after naming Policy Advisor in a request in Expense Reviewer’s dedicated chat and selecting the Policy Advisor tab.

Expense Reviewer’s dedicated chat open in the Bots view, with a Policy Advisor tab opened to the right of the chat tab and showing the request passed to Policy Advisor and part of its response

  • Delegation by naming happens one at a time, and the main Bot waits until the delegated Bot finishes. When you name several Bots, the work is delegated to them one at a time, in order.
  • For how to read subagent tabs, see Using Subagents.
  1. Write @<Bot name> in the input box and send the request.

    Example request:

    @Policy Advisor Tell me the deadline for travel expense requests and cite the relevant rule.

  2. The main Bot sends the request to the other Bot’s dedicated chat. By default, it briefly tells you which requests were sent and which could not be sent, and its answer ends.

  3. When the other Bot finishes, the result arrives in the chat where you made the request, and the main Bot reports its content.

For how to choose from the @ suggestions, see Composer and Commands.

The @ method behaves as follows (this does not apply to naming).

  • Delegations to different Bots run in parallel.
  • If the other Bot is running, the request waits its turn and runs when its turn comes.
  • If you want the Bots to run in order, for example to pass one Bot’s result to the next Bot, say so in the request, such as “one after another”. In this case, the main Bot waits for each Bot’s answer before sending to the next Bot, and reports everything together at the end.
  • If you restart the app, delegations that are running are not resumed.

By default, the main Bot handles a request that does not specify a Bot to delegate to by itself.

However, if the beginning of another Bot’s prompt clearly states that it specializes in the subject of the request (the name of a product, technology, business area, or similar), and the main Bot does not specialize in that subject, the main Bot delegates to that Bot as a subagent. If only part of the request matches, only that part is delegated. Bots whose prompt only says at the beginning that they cover a wide range of fields are not delegated to.

For this reason, a tab for another Bot may appear even if you did not name a Bot.