Search code examples
google-apibotschatbotgoogle-hangouts

Can I create a Hangouts Chat bot to (get and) display results from a SQL database?


I want to build a custom chat bot (using Google Hangouts Chat) that will answer requests like "Sales 08-03-2018 in $" -> "$500000". I have the data in AWS Redshift. I can use psycopg2 that connects Redshift using Python. Are there any APIs that will directly connect to Redshift or MySQL and send these aggregation results back to my bot giving an answer to the required question? If not, what are the alternate ways to do this? Also, can anyone tell me where do we run the Flask code? I am new to this, and it will be really helpful if someone could just brief me about where to code and run. I have a G Suite account that has enabled the Hangouts Chat API. Please help.

Thanks.


Solution

  • You pretty much have everything you need to build this solution and don't need any specific APIs to do the work (unless you want to build this one solution to serve other users).