It helps you to collect leads with mssenger conversation.
steps
npm install.cp sample/dot.env.sample .env, modify app id and app secret inside to be yours, leaveHEROKU_LOCAL_URLvariable as is, no need to worry.cp sample/data/question_flow_default.json var/data/if you do not have any questions from your own.- Enable API access in your app settings: In app dashboard, go to Settings → Advanced, scroll down and find the “Allow API Access to App Settings”, toggle to enable.
heroku localto start the server- pay attenton to the log, and go to tunnel URL in the log output for the setup UI, connect your page.
- go to your bot for testing.
install redis first
brew install redis
steps
npm install.cp sample/dot.env.sample .env, modify app id and app secret inside to be yours, leaveHEROKU_LOCAL_URLvariable as is, no need to worry.cp sample/dot.redis.env.sample .redis.env, do not modify anything- Enable API access in your app settings: In app dashboard, go to Settings → Advanced, scroll down and find the “Allow API Access to App Settings”, toggle to enable.
heroku localto start the server- pay attenton to the log, and go to tunnel URL in the log output for the setup UI, connect your page.
- go to your bot for testing.
With redis how to check the data
cat .redis.envto find out redis PORTredis-cli -p $PORTto connect your redis to check data
With redis how to import sample question
- go to UI, connect your page, then go to tab 'Manage Questions'
- open
sample/data/question_flow_default.json, copy everything into clipboard - back to UI, click on any place of the default question card, paste, you will see popup dialog helping you import questions