-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd0c402
commit 31ce172
Showing
1 changed file
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
# Callback Type Telephony Bot API # | ||
# Callback Type Telephony Bot API # | ||
|
||
HOW TO RUN A BOT: | ||
|
||
1) Install the python packages installed : flask, requests and json | ||
|
||
2) Run the python script that starts a flask server on port 80. | ||
Run: python <script-name>.py | ||
|
||
3) You can have a service like ngrok to a web url that create a tunnel and provides a weburl that redirects APIs the locally running server. | ||
Run the ngrok server by the command: ngrok http 80 | ||
|
||
4) You can add the weburl provided by ngrok in the telephony bot, as the Inbound speech callback url. Make sure the connect method is set to callback which is the POST API endpoint. | ||
|
||
5) You can now call the bot and it should work. | ||
|
||
|
||
|
||
NOTE: | ||
|
||
The above steps is an easy way to test the bot script. Ideally you have to create a server and host it, that way the POST which invokes the bot session will be available on web. |