Package selection guidance compiled from public package information, community data, and project usage.
A Flutter package that simplifies integration with Dialogflow, supporting Dialogflow v2. It enables developers to build conversational interfaces by connecting Flutter apps to Dialogflow agents for natural language understanding and intent recognition. The package handles communication with Dialogflow's API, allowing real-time interaction with chatbots powered by Dialogflow. It is designed for seamless use in Flutter applications across platforms, offering a straightforward way to implement AI-driven conversations without deep backend setup. Ideal for chatbot features in mobile apps.
Use cases
Integrating chatbots into mobile apps
Real-time user intent detection
Building customer support bots
Enabling voice or text-based interactions
Creating AI-powered virtual assistants
Key features
Supports Dialogflow v2
Simple API for Flutter
Real-time conversation handling
Cross-platform compatibility
Easy integration with Dialogflow agents
Suitable for
Developers building chatbot features
Apps requiring natural language processing
Mobile apps with AI-driven interactions
Teams using Dialogflow for NLP
Projects needing quick bot integration
Considerations
Requires Dialogflow agent setup
Depends on internet connectivity
Limited to Dialogflow v2
No built-in translation support
Authentication via service account keys
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Dialogflow v1 & v2 for Flutter apps.
:heart: Star :heart: the repo to support the project. Thanks!
Call function response.getListMessage()
response List<dynamic>
example
newCardDialogflow(response.getListMessage()[0]).title
Convert first item inCardDialogflowfor worked easy
CardDialogflow have
- title
- subtitle
- imageUri
- List buttonss
- each button have text and postback
Or Setup custom authentication (session)
Get a session id from your backend server after authentication.(Eg: OAuthToken)
Pass the session id a named parameter 'sessionId' to AuthGoogle function.
On the dialogflow fulfillment, access it inside `agent.session` (WebhookClient.session)
and apply your session logic
Example:
AuthGoogle authGoogle = awaitAuthGoogle(fileJson: "assets/your_file_downloaded_google_cloud.json", sessionId: "YOUR_CUSTOM_SESSION_ID").build();
Dialogflow dialogflow = Dialogflow(authGoogle: authGoogle,language: Language.ENGLISH);
AIResponse response = await dialogflow.detectIntent("Hi!!!");
print(response.getMessage())