Reputation: 816
I was following this tutorial that demonstrated how to create and deploy a chatbot using the v1 version of the Dialogflow API.
I am trying to follow along using Dialogflow V2, but I am struggling with even the most basic of tasks, such as sending messages.
So, how do I send a message from the Python client for Dialogflow V2?
Upvotes: 1
Views: 1212
Reputation: 3005
You should probably not try to learn Dialogflow with the old ApiAi libraries and v1 of the webhook, as they are very outdated and most materials, including most of the Dialogflow docs, apply only to the v2/v2beta1 versions.
That said, all you are really going to do is to answer this JSON POST body with a JSON like this. Dialogflow does not have a Python fulfillment library, but you may get a long way with Flask or a third party library like Flask-Assistant.
Upvotes: 3