---
# System prepended metadata

title: Global Model and Selective publish

---

# Global Model and Selective publish

* **globalModel:** This is a context handler that is used to branch the flow based on the identified context. For example, if the user enters "Why is this process getting delayed?", the globalModel identifies the context as "why" and diverts the flow to the attached node (Execute flow-> followup and reply "We are processing your application, please stay with us.")

![](https://i.imgur.com/oFadY2l.png)

**Context Handler** is also available on our Beta release Input Node. [Add an input node](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/prompt-nodes/#29-input) to your flow to access it.

![](https://i.imgur.com/HZNqOAi.png)

To know more about handling contextual responses, click [here](https://docs.yellow.ai/docs/platform_concepts/studio/train/add-contextual-response).

----

## 2.3 Selective Publish

Selective publish lets you publish certain flows of your bot instead of your entire bot. 

### Benefits

* You can release a part of your bot and start seeing results while working on the other flows.
* You can make quick bug fixes or copy changes after your first release without disturbing the ongoing work.
* Proactively plan your work based on the feedback received for the currently published flows.

To access this feature,

1. Click **Publish changes** button on the top and select **Publish selected flows**.

![](https://i.imgur.com/feRhJWR.png)

2. Choose the flows to be published, select the approvers, and post a comment on what the publish does. Click **Publish** to publish the bot.

![](https://i.imgur.com/9wX1vRD.png)

:::info
For bots with **Sandbox**, **Staging** and **Production** modes, **Selective Publish** will be available only if the bot is published from **Staging** to **Production** 
:::

## 2.4 Revert 

Published bots can be reverted as well. This feature comes handy if the published bot has bugs.

1. Click **Revert** on the top.

![](https://i.imgur.com/q37ebzW.png)

2. Select the bot to be reverted and click **Revert** in the following dialog box.

![](https://i.imgur.com/T1Ixoqp.png)


:::info
1. **Revert** action is possible only in **Live** environments.
2. Only admins can use the **Revert** option.
:::






