Nodejs-dialogflow: How to configure the Webhook with this library? (v2)

Created on 4 May 2020  Â·  4Comments  Â·  Source: googleapis/nodejs-dialogflow

Maybe I am just blind, but I fail to see how to configure the webhook (url, headers, etc) using this client library. Probably it is missing?
(I managed to create agents, add intents, entityTypes, etc, that all works well)

Is your feature request related to a problem? Please describe.
Well, if I add a webhook fulfillment on an intent, it obviously fails on a new agent, as the webhook URL is missing.
Describe the solution you'd like
Maybe a parameter on the IAgent would do the trick.
Describe alternatives you've considered
...
Additional context
In the UI:
image

Thanks for the great library, by the way!
Having Typescript support makes life so much easier!

question dialogflow

All 4 comments

I must be totally blind also because the WebhookRequest, WebhookResponse interfaces exist in the package code but I can't access it from my code despite wasting a few hours.

I need the same feature. It looks like the GRPC API supports this: https://cloud.google.com/dialogflow/es/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.UpdateFulfillmentRequest
I would have thought the node API is automatically generated from the GRPC API? So why do they not offer the same features?

Hi @chroth7 — Here's a resource that may be helpful.

This issue has remained inactive for a while so I am closing it, but please feel free to reopen if needed.

hi @b-loved-dreamer - sadly, I wasn't working much with Dialogflow recently, so fine for me to close for now. I assume the other commenters agree :-)

Also, thanks for the link, will have a look!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patrick-zimmermann picture patrick-zimmermann  Â·  6Comments

yanniks picture yanniks  Â·  8Comments

ahmad3m3 picture ahmad3m3  Â·  6Comments

BenjaminHoegh picture BenjaminHoegh  Â·  7Comments

yusufkhan07 picture yusufkhan07  Â·  5Comments