This repository has been archived by the owner on Dec 17, 2023. It is now read-only.
Enable webhook for a intent #64
Labels
api: dialogflow
Issues related to the googleapis/python-dialogflow API.
🚨
This issue needs some love.
triage me
I really want to be triaged.
can anyone please tell how to enable webhook of a intent as defined here:
https://cloud.google.com/dialogflow-enterprise/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.Intent.WebhookState
I am not able to access how to use webhookstate enum.
I am doing
intent = dialogflow.types.Intent(
display_name=display_name,
training_phrases=training_phrases,
messages=[message],
output_contexts=[
dialogflow.types.Context(
name=contexts_client.context_path("fir-chatbot-ccc2d", "-", "next-output"),lifespan_count=1)],
input_context_names=["projects/project_id/agent/sessions/-/contexts/name"],
webhook_state=webhookstate.WEBHOOK_STATE_ENABLED
)
it is showing following error NameError: name 'webhookstate' is not defined.
please help!
Thanks
The text was updated successfully, but these errors were encountered: