Flow developmentΒΆ

Flows are a feature in Errbot to enable plugin designers to chain several plugin commands together in a "conversation".

For example, imagine interacting with the bot that needs more that one command, like setting up a poll in a chatroom:

User: !poll new Where do we go for lunch ?

Bot: Flow poll_setup started, you can continue with:
     !poll newoption <your option>

User: !poll addoption Greek

Bot: Option added, current options:
     - Greek

Bot: You can continue with:
     !poll newoption <your option>
     !poll start

User: !poll addoption French

Bot: Option added, current options:
     - Greek
     - French

Bot: You can continue with:
     !poll newoption <your option>
     !poll start

User: !poll start
[...]

In this guide we will explain the underlying concepts and basics of writing flows. Prerequesite: you need to be familiar with the normal errbot plugin development.