---
title: Switch configuration or data set inside a scenario
description: Let a scenario switch EbbotGPT configuration or data set with egpt_config_id or gpt_data_set_id on a card, and why data sets can't be prioritised.
---

[Skip to content](https://customer.ebbot.ai/knowledge/switch-configuration-or-data-set-inside-a-scenario#main-content)

[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)

- [Status](https://status.ebbot.ai/)
- [Developer docs](https://docs.ebbot.ai/)

Open main navigation

Close main navigation

- [Status](https://status.ebbot.ai/)
- [Developer docs](https://docs.ebbot.ai/)
- [Customer portal](https://customer.ebbot.ai/support)
- [Ask our support](https://customer.ebbot.ai/knowledge#ask-our-support)

[Ask our support](https://customer.ebbot.ai/knowledge?hsLang=en#ask-our-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. [EbbotGPT: knowledge and AI answers](https://customer.ebbot.ai/knowledge/ebbotgpt-knowledge-and-ai-answers?hsLang=en)
3. [Persona and configurations](https://customer.ebbot.ai/knowledge/ebbotgpt-knowledge-and-ai-answers?hsLang=en#persona-and-configurations)

# Switch configuration or data set inside a scenario

## Let a scenario change which configuration or data set the bot uses for the rest of the chat.

## Know when to switch

Sometimes one bot needs different instructions or different knowledge depending on what the user chooses. For example, a user who clicks a button for business customers should get answers from the business data set. You do this in a scenario, by setting an attribute on a card. From that card, the bot uses the new configuration or data set for the rest of the chat.

## Find the ID

🧭 Find your way:

1. For a configuration: go to **EbbotGPT → Configurations** and open the configuration. The ID is the last part of the address in your browser, for example 17610449652366fcbc6f4 in .../configs/17610449652366fcbc6f4/.
2. For a data set: go to **EbbotGPT → Knowledge**, open the **Data sets** tab and open the data set. The ID is the long code in the address, for example d3c71ed2-b42b-4cdd-b75f-07271ac8c90f in .../data\_sets/d3c71ed2-b42b-4cdd-b75f-07271ac8c90f/.
3. Copy the ID.

## Set the switch on a card

1. Go to **Scenarios → Builder** and open the scenario.
2. Click the card where the switch should happen. Use an **Intermediate** card to switch in the background, or the card the user clicks, for example a button card.
3. Click the gear icon at the top right of the card to open the card settings.
4. Scroll down to **Database** and click **Add row**.
5. In the left column, enter the attribute:
     - `egpt_config_id` to switch configuration.
     - `gpt_data_set_id` to switch data set.
6. In the right column, paste the ID.
7. Click **Save scenario**.

Click **Open widget** at the bottom of the scenario to test it in a new chat: go through the card, then ask a question that only the new configuration or data set can answer.

## Know that data sets can't be prioritised

There is no setting that makes the bot prefer one data set over another. A rule in the persona such as "always search data set X first" doesn't create one either. When the bot searches several data sets, it ranks the results on how well the content matches the question, not on instructions.

If the bot gives different answers to the same question, more than one data set is probably searched and the question matches content in both. To fix it:

- **Switch data set in the scenario**, as described above, so the right data set is used for that kind of question.
- **Search fewer data sets.** A configuration has one data set in **Data set** under **Knowledge**. More data sets are searched only if you add them in **Searchable datasets** on the **Search Dataset** tool in **Tools**. If the bot needs only one data set, remove the others there.
- **Move the topic to its own data set** if it needs to be searched separately.
- **Rewrite overlapping content** so it is clearly different.

### 💡 Pro-Tip

Give your configurations and data sets clear names, such as "Business customers", before you set up switches. When you troubleshoot a wrong answer later, you need to know which one the bot used. See "Find out why your bot gave a wrong answer".

- [Getting started](https://customer.ebbot.ai/knowledge/getting-started#main-content)
- [EbbotGPT: knowledge and AI answers](https://customer.ebbot.ai/knowledge/ebbotgpt-knowledge-and-ai-answers#main-content)

    - [Knowledge and sources](https://customer.ebbot.ai/knowledge/ebbotgpt-knowledge-and-ai-answers#knowledge-and-sources)
    - [Persona and configurations](https://customer.ebbot.ai/knowledge/ebbotgpt-knowledge-and-ai-answers#persona-and-configurations)
    - [Troubleshoot answers](https://customer.ebbot.ai/knowledge/ebbotgpt-knowledge-and-ai-answers#troubleshoot-answers)
- [Live chat](https://customer.ebbot.ai/knowledge/live-chat#main-content)
- [Chat widget](https://customer.ebbot.ai/knowledge/chat-widget#main-content)
- [TOPdesk](https://customer.ebbot.ai/knowledge/topdesk#main-content)
- [Account, login and security](https://customer.ebbot.ai/knowledge/account-login-and-security#main-content)
- [Ebbot Automations](https://customer.ebbot.ai/knowledge/ebbot-automations#main-content)
- [Scenarios and bot builder](https://customer.ebbot.ai/knowledge/scenarios-and-bot-builder#main-content)
- [Dashboards and chat history](https://customer.ebbot.ai/knowledge/dashboards-and-chat-history#main-content)
- [Channels and integrations](https://customer.ebbot.ai/knowledge/channels-and-integrations#main-content)

    - [Channels](https://customer.ebbot.ai/knowledge/channels-and-integrations#channels)
    - [Developer resources](https://customer.ebbot.ai/knowledge/channels-and-integrations#developer-resources)

- [ebbot.com](https://www.ebbot.com/)
- [Status](https://status.ebbot.ai/)
- [Developer docs](https://docs.ebbot.ai/)
- [Trust center](https://trust.ebbot.com/)
- [LinkedIn](https://www.linkedin.com/company/ebbot/)

[![](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)

© 2026 Hello Ebbot AB