---
title: How to dynamically switch Config (Persona) or Dataset in a Scenario
description: Learn how to identify Config and Dataset IDs from your URL and apply them in the Bot Builder's Database settings for dynamic AI Agent switching.
---

[Skip to content](https://customer.ebbot.ai/knowledge/how-to-dynamically-switch-config-persona-or-dataset-in-a-scenario#main-content)

[Submit a ticket](https://customer.ebbot.ai/knowledge/kb-tickets/new?hsLang=en) [Customer portal](https://customer.ebbot.ai/support?hsLang=en)

[![](https://customer.ebbot.ai/hs-fs/hubfs/logo-ebbot-darker-green-rgb-Sep-30-2025-07-46-45-0435-AM-2.png?width=1032&height=309&name=logo-ebbot-darker-green-rgb-Sep-30-2025-07-46-45-0435-AM-2.png)](https://customer.ebbot.ai/?hsLang=en)

Open main navigation

Close main navigation

- [Submit a ticket](https://customer.ebbot.ai/knowledge/kb-tickets/new)
- [Customer portal](https://customer.ebbot.ai/support)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Ebbot Knowledge Base](https://customer.ebbot.ai/knowledge?hsLang=en)
2. [Ebbot GPT](https://customer.ebbot.ai/knowledge/ebbot-gpt?hsLang=en)

# 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**.

- [General](https://customer.ebbot.ai/knowledge/general?hsLang=en)
- [Live chat](https://customer.ebbot.ai/knowledge/live-chat?hsLang=en)
- [Integrations](https://customer.ebbot.ai/knowledge/integrations?hsLang=en)
- [Settings](https://customer.ebbot.ai/knowledge/settings?hsLang=en)
- [Ebbot GPT](https://customer.ebbot.ai/knowledge/ebbot-gpt?hsLang=en)
- [Dashboards](https://customer.ebbot.ai/knowledge/dashboards?hsLang=en)
- [Administration](https://customer.ebbot.ai/knowledge/administration?hsLang=en)
- [Scenarios](https://customer.ebbot.ai/knowledge/scenarios?hsLang=en#main-content)

    - [Builder](https://customer.ebbot.ai/knowledge/scenarios?hsLang=en#builder)
    - [Training center](https://customer.ebbot.ai/knowledge/scenarios?hsLang=en#training-center)
- [Chat history](https://customer.ebbot.ai/knowledge/chat-history?hsLang=en)
- [TOPdesk](https://customer.ebbot.ai/knowledge/topdesk?hsLang=en)
- [Chat widget](https://customer.ebbot.ai/knowledge/chat-widget?hsLang=en#main-content)

    - [Styling](https://customer.ebbot.ai/knowledge/chat-widget?hsLang=en#styling)

[![](https://customer.ebbot.ai/hs-fs/hubfs/logo-ebbot-darker-green-rgb-Sep-30-2025-07-46-45-0435-AM-2.png?width=1032&height=309&name=logo-ebbot-darker-green-rgb-Sep-30-2025-07-46-45-0435-AM-2.png)](http://ebbot.com)

Copyright © 2025, Hello Ebbot AB