1

I am having trouble understanding how to connect a DialogFlow Agent with an Angular SPA using v2 of the DialogFlow API. I want to create a custom component for my chatbot so I don't want to use iframe.

With version 1 of the API, one could recreate this architecture with a SPA. There's a good example developed here.

Architecture 1

But per this question, you can't use dialogflow-nodejs-client to communicate with your agent from your app. So does that mean we need a server to act as an intermediary like in this 2nd architecture?

Architecture 2

And then, is there anyway that we can have the Fulfillment functions & the Node server be the same like in this 3rd architecture?

enter image description here

It would be ideal if anyone could give resources or concrete steps as to how to connect an Angular App with a DF Agent

3mrsh
  • 83
  • 1
  • 7

0 Answers0