Don't worry if you don't have RaspberryPi, It will work in your System (If it has any one of the OS - Linux, Windows, Mac)
We are in the age of Edge Computing where we can get data for every second. But to monitor/view the data we have to open an application(Web/Mobile) every time navigate to different pages, scroll the sliders, filter the dates to view a piece of information. But what if we can get information in no time through a single message or by asking a single straight question.
Yes with the help of DialogflowCX and InfluxDB we can get the piece of information in no time no need to open the application, no navigation, and even no authentication.
- We will collect the system metrics such as (CPU usage, Network usage, Disk usage, System uptime, and Memory usage) from your Raspberry Pi or from your System.
- The collected metrics are stored in the Timeseries Database (InfluxDB)
- We will create the Virtual agent in DialogflowCX to handle user conversation
- After that we will create CloudFunction to handle the request from Twilio and send it to DialogflowCX using DialogflowCX API
- Then we would create another CloudFunction which will collect the response from DialogflowCX and pass it to InfluxDB to collect metrics
- The collected metrics from InfluxDB will be sent to the user Via Twilio using CloudFunction
- User starts a conversation from Whatsapp which is sent to Twilio
- Twilio will send the user message received from Whatsapp to CloudFunction
- CloudFunction will destructure the request received from Twilio and sent the message to DialogflowCX API to match the intent
- DialogflowCX API matches the intent based on user request(message) and calls the Webhook which is added with the page
- CloudFunction will make a call to the InfluxDB to fetch the data based on the query
- InfluxDB returns the result to CloudFunction
- CloudFunction process that information by adding messages and sent back to Twilio
- Twilio sents that message to the user Whatsapp
- Telegraf - Agent which will collect metrics from RaspberryPi
- InfluxDB - Timeseries Database which stores the information collected by Telegraf
- DialogflowCX - Virtual agent that handles conversations
- CloudFunction - Logics to connect Twilio and InfluxDB with DialogflowCXAPI
- Twilio - Cloud communication platform to send and receive Whatsapp messages
Follow the below steps to complete all the installation process
RaspberryPi - UbuntuOS installation (Optional) - Click here to view the setup
- InfluxDB Cloud setup - Click here to view the setup
- Telegraf setup - Click here to view the setup
- Twilio setup - Click here to view the setup
- CloudFunction(Connecting Twilio and DialogflowCX) setup - Click here to view the setup
- CloudFunction(Collecting Metrics from InfluxDB) setup - Click here to view the setup
- Importing DialogflowCX - Click here to view the setup
dialogflowcx.mp4
For Apache-2.0 exceptions, see LICENSING.md.