File: index.rst

package info (click to toggle)
errbot 6.2.0%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,856 kB
  • sloc: python: 11,572; makefile: 163; sh: 97
file content (46 lines) | stat: -rw-r--r-- 1,044 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Flow development
================

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

For example, imagine interacting with a 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 newoption Greek

  Bot: Option added, current options:
       - Greek

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

  User: !poll newoption 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.
Prerequisite: you need to be familiar with the normal errbot plugin development.


.. toctree::
  :maxdepth: 2
  :numbered:

  concepts
  basics
  advanced