42. Architecture Overview
Subscribe to
topic event
Talks to Google
Action App
“Soda Mixer”
Process intent
in API.AI
Fire webhook
with intent
details
Update intent details
to Assistant
Talks to
Google
Assistant
Process
event data,
send serial
command
Turn on
relay 2
Turn on
relay 1
Process and
send topic
event
Change this section to
any IOT functionality
45. Google Actions
• Create app to interact with Google Assistant
• Create interactions via api.ai
• Trigger word to start the application “Soda Mixer”
• Simulator to test conversations
46. DialogFlow
• Design intents, entities, conversation responses
• Send webhooks once intent is fulfilled
• Integrates with Google Assistant, and others like Skype, Slack etc.
47. Webhook: Google Cloud Function
• GFC Webhook to receive responses from DialogFlow
• Process data, send SodaMixerMessages topic event
• Change intent result if needed
• Do anything you want
48. Subscribe to Event
• Python script to receive SodaMixerMessages event
• Process event payload
• Send commands via Serial Interface to Arduino
49. Arduino
• Read serial commands
• Turn on relay pins
• Relay turns on motor to pump soda