Skip to content

Money Bot Currency Conversion

Amitha R edited this page Oct 13, 2018 · 1 revision

Money Bot - Currency Conversion.

  • Consumes api.ap services.

Conversion Technique:

  • (Inputs) Facebook messenger, skype, slack --(slot filling)--> api.ap ---> API Call ---> Response --> FB Messenger, skype, slack (Output).

Api.ai

  • NLP as a service provider.
  • SpeakToIt assistance (2011).
  • Acquired by Google (2016) - Dialog Flow.
  • Signup - Dialogflow.
  • Create an Agent - Api.ai application that handles all NLP processing for the chatbot.
  • Directed to Intents Page:
    • Intents - Actions the system needs to perform based on what the user has said.
      • Default fallback intent - executed when agent is unable to compute a suitable intent.
      • Default welcome intent - used when a default welcome message is to be sent.
    • Entities - Pre-trained entries.
    • Training - Helps map user messages to their correct entities.
    • Integration - Can easily integrate with an front-end vendor - FB messenger, skype, slack, etc;
    • Analytics - In-depth usage data, Adoption rate.
    • Fulfilment - Connect bot to a webhook.
    • Prebuilt Agent - These are pre-built, customizable agents that specialize in different areas of knowledge.
    • Small talk - Supports small talk in any field.(Try it out)

Understanding Intents

  • Bot Channel ----> API.ai NLU -----> Trigger an Intent -----> Entity Extraction --->
  • Action -----> Fulfilment(Optional) ------> Response ------> Bot Channel.

Fixer.io

  • Fixer - Current Foreign Exchange Rates.
  • Fetch currency Rates.

Integration with Skype

  • Dialogflow <----> Nodejs App <----> Skype

  • Deploy the App Heroku

  • Reconfigure the fulfilment URL in Dialogflow to point it to Heroku.

  • In DialogFlow - Integration Page.

    • Agent Page - Publish.
    • Skype set-up - follow the steps.
    • Require a Microsoft account - signin.
    • Save and Paste the Secrets.

Integration with Facebook Messenger

  • In DialogFlow - Integration Page.
    • Agent Page - Publish.
    • Facebook - paste the secrets and in the develpers.facebook app as well.

Summary

  • Dialogflow is used to build the bot.
  • Trained NLP System on user expressions.
  • Created custom entities.
  • Built webhook to work with fulfillment feature on Dialogflow.
  • Integrated the bot with Skype, Facebook Messenger.