Replace AI Agent action

Tiledesk Design Studio offers a unique feature known as the “Replace AI Agent” action.

This action allows you to recall different AI agents as needed, significantly enhancing your conversation flow design.

Imagine having an AI agent specialized for sales and another for support. This approach allows you to deal with smaller, more understandable, customizable and maintainable agents instead of a single large and complicated agent. Enhancing them is easier, and their behavior is more predictable.

Implementing the Replace AI Agent action

To implement this feature, you first need to create different agents for different purposes. When you want to call another agent, you need to drag the “Replace AI Agent” action, which is located under Flow features on the left side.

By clicking on the “Replace AI Agent” action, a menu will appear on the right side, allowing you to choose the correct AI agent to take over the conversation in the same chat widget.

For this example, I chose the Sales AI agent. We can also define which block should be triggered when the new AI agent is recalled — in this case, I selected the Start block.

Then you can use an AI Condition to check whether the customer’s inquiry is sales‑oriented or support‑oriented, and trigger the appropriate AI agent.

Alternatively, you can simply use buttons, as shown in the image below:

That’s all. You’ve created an AI agent that can recall the appropriate agent when needed, whether the inquiry is support‑ or sales‑oriented, based on our example. You can create as many agents as you need for different purposes — there’s no limit.

Replace the AI Agent using the bot slug

Using the slug ensures that an AI agent refers to another agent in a project‑invariant way. This allows you to export the same group of agents from one project to another while keeping their orchestration working without issues. If you don’t use the slug, the chatbot ID is used to reference another chatbot — but remember that a chatbot ID is globally unique in Tiledesk. The slug, instead, is only required to be unique within a single project. So, if you carefully choose your AI agent slugs, you can coordinate your agents to work correctly in any project where you import them.

Set the slug in the Settings section:

Then mark the “Use slug” property from the action when you decide to refer to that agent for the replacement:

In our Community, you can find an AI agent template using the slug feature

We hope you find this tutorial helpful.

If you need to know more about chatbot design, please visit our website at www.tiledesk.com.

If you require further assistance, do not hesitate to contact us at [email protected]

Last updated