What needs to be done so that the bot sends out multiple messages in sequence over REST API?

I have a conversation where the bot send out multiple replies.
For example:
User: “Hi”
Bot: “Hello”
Bot: “How can I help you?”

Here the bot sends out multiple messages. In interactive mode this is working fine. However, after I setup the REST API (following this How to serve chatbot from server?), the bot does not send out multiple messages for obvious reasons. How can I get this working?

This should actually work out of the box. Which endpoint are you using and how does your story look like? Your are using the Rest channel, aren’t you (Your Own Website)?

Hi @KnightCoder,

Whatever I have understood based on that I think you can use dispatcher.utter() function multiple times.