Skip to content

sommes54/cashaam

Repository files navigation

Overview

The user interact with our platform from their phone WhatsApp by sending text messages to the WhatsApp number. When a user start typing a message, the language they are using is determined and used to set a language code for Dialogflow. Dialogflow integrate with Google AppEngine and Amazon AWS API Gateway - Lambda. Architecture

Request - (Dialogflow, AppEngine, Twilio)

The Twilio is connected with API hosted on Google AppEngine. Request from user's WhatsApp is handled by the API using the Dialogflow backend. Response (fulfillment) from the user is obtained for the user with the help of Dialogflow integration with the Amazon AWS Lambda. Request - Intent

Fulfillment - (Dialogflow, Amazon AWS API Gateway, Amazon AWS lambda)

Dialogflow is connected to the API Gateway which responds using AWS lambda. AWS Lambda is also used to provide Authorization in order to secure the API. Additional tasks such image recognition and analysis and so on can be performed by invoking more commands or lambdas. Dialogflow integrate with Amazon AWS API Gateway powered by AWS Lambda. The integration is based on a tutorial by Latt Dialogflow works with API Gateway

Conversational Design

It is important to use the right techniques in designing conversations so as not to sound robotic to the user. Cooperative conversation techniques guides the user through the journey to picking the right options. Good conversations should feel natural to the user even though it places the design burden on the developer. You can learn more here. Conversation Design

Language Detection & Switching

The language used in the message determines what language the agent will respond with. This is a better method rather than translation because it will require shorter time to respond and help train the chat bot in the native language of the user (locale). The agent being multilingual, is able to switch to the appropriate language for the user throughout a session. Session id are maintained using the WhatsApp number of the user i.e. the user with the same WhatsApp number is still in the same session regardless of their device till the session expires. Language detection using Google Cloud Translation API require a reasonable amount of text so it could be an issue for a user. Language Switching using Dialogflow.Translation Issues

Sample Chat

We can switch to multiple languages on WhatsApp - Please the demo is defective because translated text was used to train the algorithm in Indonesian. Sample Chat

Releases

No releases published

Packages

No packages published