This code pattern demonstrates how to build a dynamic, real-time avatar-based chatbot, which is an Android mobile application with AI and AR capabilities. This mobile app dynamically fetches the information using APIs in Watson Assistant by using webhooks (in IBM Cloud Functions).
Customers are quickly becoming used to communicating with chatbots while at a store or while on the company’s website. Adding AI and AR capabilities to chatbots create a range of possibilities that have not been used before. By taking advantage of the mobile, AI, and AR capabilities that are readily available in the IBM Cloud catalog — IBM Cloud Functions, IBM Mobile Foundation, Watson Assistant, and Watson Text to Speech and Speech to Text services — you can quickly build an avatar-based chatbot that runs on your Android mobile device.
- User asks a query to the AR Avatar (mobile app).
- Mobile application converts the speech to text using the Watson Speech to Text service and sends the query to IBM Mobile Foundation.
- IBM Mobile Foundation securely passes the query to Watson Assistant.
- Watson Assistant triggers appropriate IBM Cloud Functions, based on the query received.
- Based on the query, IBM Cloud Functions triggers the appropriate service or services, in the back-end server application.
- The back-end server application returns the response for the query.
- IBM Cloud Functions sends the response to Watson Assistant.
- Watson Assistant frames a response to reply to the user and sends it to IBM Mobile Foundation.
- IBM Mobile Foundation securely sends the response to the mobile application.
- Mobile application converts the text into speech using the Watson Text to Speech service.
- Mobile application replies to the user using the AR Avatar.
Ready to get started? Check out the README for detailed instructions how to:
- Create Watson services with IBM Cloud.
- Update the details in the back-end application.
- Deploy the back-end application.
- Set up IBM Cloud Functions.
- Set up Watson Assistant.
- Set up IBM Mobile Foundation Server and CLI.
- Set up Google Cloud Anchors.
- Configure the Android mobile app.
- Build and run the Android mobile app.