A chatbot is an artificial intelligence (AI) software that can simulate a conversation (or a chat) with a user in natural language through messaging applications, websites, mobile apps or through the telephone.
Chatbot for the AWS chatbot challenge 2017.
It aims to help people find animals that need love using Amazon LEX, Lambda and Slack chat integration.
- Generate a
petfinder
API key fromhttps://www.petfinder.com/developers/api-key
(or use my one in secret.py) - Create a
secret.py
file to replace thesecret-example.py
file in thelambda/
directory - From the root directory of this repo run
build-lambda.sh
to build the zip file including pip dependencies. - Upload this zip (placed in the
builds
folder of the root directory) to the lambda dashboard. - Use the following settings when defining the lambda function:
Runtime: Python 3.6
Handler: get_pet_info.lambda_handler
Role: Choose an existing role (this bit is up to you though)
Existing Role: lambda_basic_execution
Description: Functions used to get pet info
You can run aws lambda update-function-code --function-name "get_pet_info" --zip-file fileb://builds/lambda-build.zip
from the root directory to update the code
Name: FluffyFinder
Name: GetHelpWithPets
Name: GetMyPetMatch
Name: GetPetInfo
Name: ListPets
- Install virtualenv tool globally
pip install virtualenv
- Create virtual environment in the project root by running the following command:
virtualenv venv
.
Note: If you want to create virtual environment with different name, you have to modifyACTIVATE_PATH=
inexport-chatbot.sh
. - Run the
export-chatbot.sh
script to generate thebot-definition-export.json
file in thelex/
directory