Skip to content

pranavsdev/fff

Repository files navigation

Hands on APIs

Documentation for APIs

About

This kit give you and idea about:

  • how can you enable a chatbot through sms
  • how can you get the context of the conversation

Setup

  • Install git
    • Clone this repository
  • Install Postman
  • Install Anaconda
  • Create (ana)conda environment from the file provided
    • conda env create -f environment.yml
  • install visual studio code or any other text editor

Important Files

  • sample-intents.csv : You can save the intents for your chatbot. The first value should be the answer statement followed by words that can be matched against the user's chat value. For example if the input sentence is - 'weather' / 'what is the weather today' then the answer should be 'it is cold'
  • chatbot-app.py : You should execute this file to run the sms-chatbot functionality.
  • speech-sample.json : This file contains the output from Speech-to-text contexta API from /transcripts
  • contexta-vocab.csv : Like the intents file for chatbot this file also contains output context for the matching vocabulary separated with commas(,)
  • context.py : You should execute this file to get the context from speech-sample.json file

Execution

  • Activate the environment you created

conda activate myenv

  • For chatbot python chatbot.py You can either host your application on a server that can be availbale on internet. The second option is to expose your local host via ngrok on the port your localhost is running. https://dashboard.ngrok.com/get-started

    • For contexta python contexta.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published