Your conversational AI application can sometimes process messages faster than a user can read and absorb them. Delays can be added to the workflow instructing the chatbot to pause between messages.

In this How To, you'll learn how to create an activity that pauses the conversation flow for 3 seconds.

To do this perform the following steps:

  1. In the Design pane, select the + node at the place where you want to pause the flow. Then select Send a Response:

image.png

  1. With the new Send a Response activity selected, click on the Show Code hyperlink ****in the Details pane:

image.png

  1. The editor property will change. Delete any characters in the Bot Responses field and add the following code:
[Activity
    Value = ${3000}
    Type = ${"delay"}
]
  1. The Bot Responses field should now look like this: