Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to call webhook function from playbook inside Dialogflow

Hi All,

Requirement:
I have created a playbook with instructions like:
User Input: Enter username
Chatbot: Validate username by calling the user_validate_function and returning the result.

I need the flow to utilize the playbook to validate both the input and the function using a webhook (Cloud Function).

Currently, I’ve added the playbook to the start page of Dialogflow in the Agent Console. During the conversation, when the chatbot prompts for the username and I provide it, the function specified in the playbook should be called, and the results should be returned.

This is just one example; I need to validate many other details similarly.

How can I pass the playbook inputs and call the function mentioned in the playbook within the flow?
Please guide me on this.

0 1 506
1 REPLY 1

If you are playbook you can take params and create a tools create a webhook and call webhook and solved a business problem 

 

if you are use custom flow then enable webhook and create cloud run/cloud functions