A line chat bot based on a finite state machine, and can recommend cocktail.
- The initial state is
user
. - The next state would be
base
,flavor
orrandom
.
- If enter "base", will enter
base
state:- The next state would be
base0
,base1
,base2
,base3
,base4
,base5
.
- The next state would be
- If enter "flavor", will enter
flavor
state:- The next state would be
flavor00
,flavor01
,flavor02
,flavor03
,flavor04
,flavor05
,flavor06
,flavor07
,flavor08
,flavor09
,flavor10
,flavor11
,flavor12
- The next state would be
- If enter "random", will enter
random
state:- This state would recommend random three cocktails.
- In
base
state, you can choose one from six bases - In
flavor
state, you can choose one from thirteen flavor
- According choice from above stages, line bot will recommend cocktails.