| 1 |
Flow development |
| 2 |
================ |
| 3 |
|
| 4 |
Flows are a feature in Errbot to enable plugin designers to chain several plugin commands together into a "conversation". |
| 5 |
|
| 6 |
For example, imagine interacting with a bot that needs more that one command, like setting up a poll in a |
| 7 |
chatroom:: |
| 8 |
|
| 9 |
User: !poll new Where do we go for lunch ? |
| 10 |
|
| 11 |
Bot: Flow poll_setup started, you can continue with: |
| 12 |
!poll newoption <your option> |
| 13 |
|
| 14 |
User: !poll newoption Greek |
| 15 |
|
| 16 |
Bot: Option added, current options: |
| 17 |
- Greek |
| 18 |
|
| 19 |
Bot: You can continue with: |
| 20 |
!poll newoption <your option> |
| 21 |
!poll start |
| 22 |
|
| 23 |
User: !poll newoption French |
| 24 |
|
| 25 |
Bot: Option added, current options: |
| 26 |
- Greek |
| 27 |
- French |
| 28 |
|
| 29 |
Bot: You can continue with: |
| 30 |
!poll newoption <your option> |
| 31 |
!poll start |
| 32 |
|
| 33 |
User: !poll start |
| 34 |
[...] |
| 35 |
|
| 36 |
In this guide we will explain the underlying concepts and basics of writing flows. |
| 37 |
Prerequisite: you need to be familiar with the normal errbot plugin development. |
| 38 |
|
| 39 |
|
| 40 |
.. toctree:: |
| 41 |
:maxdepth: 2 |
| 42 |
:numbered: |
| 43 |
|
| 44 |
concepts |
| 45 |
basics |
| 46 |
advanced |