Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
dialogflow-fulfillment
Readme
dialogflow-fulfillment is a package for Python that helps developers to create webhook services for Dialogflow.
The package provides an API for creating and manipulating response messages, output contexts and follow-up events in conversations.
from dialogflow_fulfillment import QuickReplies, WebhookClient
# Define a custom handler function
def handler(agent: WebhookClient) -> None:
"""
This handler sends a text message along with a quick replies message
back to Dialogflow, which uses the messages to build the final response
to the user.
"""
agent.add('How are you feeling today?')
agent.add(QuickReplies(quick_replies=['Happy :)', 'Sad :(']))
# Create an instance of the WebhookClient
agent = WebhookClient(request)
# Handle the request using the handler function
agent.handle_request(handler)
# Get the response
response = agent.response
The preferred way to install dialogflow-fulfillment is from PyPI with pip:
pip install dialogflow-fulfillment
dialogflow-fulfillment's key features are:
For more information about the package, guides and examples of usage, see the documentation.
All kinds of contributions are welcome!
For an overview about how to contribute to dialogflow-fulfillment, see the contributing guide.
This project is licensed under the Apache 2.0 license.
For more details about the license, see the LICENSE file.
Thanks to the Dialogflow development team!
FAQs
Create webhook services for Dialogflow using Python
We found that dialogflow-fulfillment demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.