This is a lambda backend for a flight booking lex bot deployed on Slack.
This function needs an API key of QPX Express API to work
- Setup the lambda function *Create a lambda function with latest node.js runtime. *Change the handler name to "travelagent.handler". *Set the timeout of the function to 30 sec. *Zip the entire folder and upload as function package.
- Follow steps from Integrating an Amazon Lex Bot with Slack to create a Slack integration.
- Create an incoming message webhook on Slack
- Setup the QPX_API_KEY and SLACK_WEBHOOK_URL form step 3 Environment variables of lambda function
- Save and test your lambda function.
- Distribute your customized Slack app to Slack chat.
Start chatting with the bot on Slack.
- e.g., I would like to book a flight.
- e.g., I would like to book a flight from AKL to LAX.
- e.g., I would like to book a flight from SFO to LAX departs on next Sunday.
- e.g., I would like to book a flight from AKL to PVG departs on next Sunday returns on 12 Sep Economy.