I am building a chatbot using Dialogflow and i am completely new to this concept as far as the reference website and they had pointed the out the Dialogue flow V1 that has been deprecated right now?
Can you please share some example code on how to interact with the dialogflow API for V2 using Swift?
I tried some code with simple Rest api post request which didn't work.
Theoretically, you can call the Dialogflow Detect Intent API directly from your application using the REST interface. Also, where you need to build your own UI and take care of the authentication process
Whereas the easy process would be to use any third-party tool like Kommunicate where it provides a ready-to-use Swift SDK that already uses pre-configured Dialogflow integration and a dashboard that makes it easy to integrate and build a chatbot. Please check this link for more information
PS: I work for Kommunicate