Skip to content
  • There are no suggestions because the search field is empty.

How to dynamically switch Config (Persona) or Dataset in a Scenario

This guide explains how to use card settings to change your bot's behavior (Config/Persona) or knowledge source (Dataset) instantly within a Scenario.

🚀 Let's get started

In the Bot Builder, you can trigger a change in the bot's behavior or knowledge base by updating specific system attributes. This is ideal for switching between different "Personas" or data sources during a conversation.

1. Retrieve the IDs

First, you need the unique ID from the URL of the Config or Dataset you want to switch to.

  • For Configs (Personas): Go to EbbotGPT > Configurations. Open your Config and look at the URL. Example URL: .../configs/17610449652366fcbc6f4/ The ID is: 17610449652366fcbc6f4

  • For Datasets: Go to EbbotGPT > Knowledge > Data sets. Open your Dataset and look at the URL. Example URL: .../data_sets/d3c71ed2-b42b-4cdd-b75f-07271ac8c90f/ The ID is: d3c71ed2-b42b-4cdd-b75f-07271ac8c90f

2. Configure the switch in the Bot Builder

You can trigger the switch on any card (e.g., a Button) or use an Intermediate card to do it silently in the background.

  1. Open the Bot Builder and select your Scenario.
  2. Click on the card where you want the switch to happen.
  3. Click the Gear icon (settings) in the top right corner of the card.
  4. In the side panel, scroll down to the Database section.
  5. Click Add row and enter the following:
    • Attribute (Left column): Type egpt_config_id (to change Persona) or gpt_data_set_id (to change Dataset).
    • Value (Right column): Paste the ID you retrieved in Step 1.
  6. Click Save scenario.

The change is live! As soon as a user interacts with this card or scenario, the bot will automatically swap its Config or Dataset for the remainder of the session.

💡 Pro-Tip Use an Intermediate card for background switches. If you want a user's button click to trigger the switch, just add the attribute to the Database settings of that specific Button card.