Skip to content

t04glovern/fluffy-finder-chatbot

Repository files navigation

Fluffy Finder - Chatbot

GitHub Issues Contributions welcome

What exactly is a chatbot?

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.

Install

Lambda get_pet_info

  1. Generate a petfinder API key from https://www.petfinder.com/developers/api-key (or use my one in secret.py)
  2. Create a secret.py file to replace the secret-example.py file in the lambda/ directory
  3. From the root directory of this repo run build-lambda.sh to build the zip file including pip dependencies.
  4. Upload this zip (placed in the builds folder of the root directory) to the lambda dashboard.
  5. 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

Lex Bot Overview

Bot

Name: FluffyFinder

Intents

Name: GetHelpWithPets

Name: GetMyPetMatch

Name: GetPetInfo

Name: ListPets

Exporting bot-definition

  1. Install virtualenv tool globally pip install virtualenv
  2. 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 modify ACTIVATE_PATH= in export-chatbot.sh.
  3. Run the export-chatbot.sh script to generate the bot-definition-export.json file in the lex/ directory

About

Chatbot for the AWS chatbot challenge 2017.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published