Skip to main content

Test flows

You need to test the flow to ensure that the bot functions as expected and delivers a seamless user experience. Testing process helps to identify any bugs, errors, or unexpected behavior in the bot's responses or interactions. It also validates that the designed conversation flows work as intended and ensures that the bot guides users through the conversation.

You can test flows by using the following options based on your requirements:

  1. Test current flow
  2. Test flow via URL
  3. Test flow via bot script

Test current flow

When there are multiple flows, there is no need to test the entire bot. When there is a change in a specific flow, you can only test the flow that you are modifying/modified.

To test the current flow, follow these steps:

  1. Go to Studio > Build.

  2. Click the Preview button next to the desired flow.

  • The flow will be triggered in the Preview section, where you can preview and test its functionality and interactions.
  1. You can also go to the respective flow, click on the below-highlighted option, and select Preview Current flow.

Test bot flow via URL

To test a flow via URL, you can use the flow slug, which is a combination of the flow name and auto-generated characters. The format for a flow slug is /flow-name_{auto-generated characters}.

To trigger a specific flow when there are multiple flows in the bot, append the flow slug at the end of the flow path URL. This method allows you to directly access and test the desired flow within the bot's environment.

To test the bot via URL, follow the given steps:

  1. Go to Studio > Build > Flows.

  2. Choose your preferred flow from the Flows drop-down.

  3. Copy the flow path from the URL after flow/.

  4. Click Preview and then click on the below highlighted icon.

  • The bot will open in a new tab.
  1. In the address bar, append ?ym.triggerJourney=flow path. Example:

  • Use ? to append right after the base URL of the bot. Example:
  • Use & if you want to append it after a variable. Example:
  • Ensure that you clear the browser cache before you preview the bot. It is recommended to use Incognito mode or Private window to preview flows.

Test bot flow via botscript

You can trigger a specific flow by using the flow slug in the bot script. This allows you to trigger a specific flow when users access the chatbot from a particular page on the website.

To test bot flow using botscript, follow these steps:

  1. Copy the flow slug of the desired flow, as explained in the Test bot flow via URL section.
  2. Copy the botscript. For more information on how to copy the botscript, click here.
  3. In window.ymConfig, pass the triggerJourney parameter and specify the path of the copied flow.
<script type="text/javascript">
window.ymConfig = {"bot":"x1657623696077","host":"",
triggerJourney: 'your journey slug',
"payload": {
// Add your payload
(function() {
var w = window,
ic = w.YellowMessenger;
if ("function" === typeof ic) ic("reattach_activator"), ic("update", ymConfig);
else {
var d = document,
i = function() {

function l() {
var e = d.createElement("script");
e.type = "text/javascript", e.async = !0, e.src = "";
var t = d.getElementsByTagName("script")[0];
t.parentNode.insertBefore(e, t)
i.q = [], i.c = function(e) {
}, w.YellowMessenger = i, w.attachEvent ? w.attachEvent("onload", l) : w.addEventListener("load", l, !1)
  1. Paste the code in the body of your website to preview the flow accordingly.