Detect Intent
Detects the intent of a user's text input using Google Dialogflow.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Text - The user's text input to analyze for intent.
Options
- Credentials - Google Dialogflow credentials used to authenticate with the service.
- Language - The language of the user's text input. Default is English (en). Supported languages include:
- Chinese - Cantonese (zh-HK)
- Chinese - Simplified (zh-CN)
- Chinese Traditional (zh-TW)
- Danish (da)
- Dutch (nl)
- English (en)
- English - Australian locale (en-AU)
- English - Canadian locale (en-CA)
- English - Great Britain locale (en-GB)
- English - Indian locale (en-IN)
- English - US locale (en-US)
- French (fr)
- French - Canadian locale (fr-CA)
- French France locale (fr-FR)
- German (de)
- Hindi (hi)
- Indonesian (id)
- Italian (it)
- Japanese (ja)
- Korean (ko)
- Norwegian (no)
- Portuguese (pt)
- Portuguese Brazilian (pt-BR)
- Russian (ru)
- Spanish (es)
- Spanish - Latin America locale (es-419)
- Spanish - Spain locale (es-ES)
- Swedish (sv)
- Thai (th)
- Turkish (tr)
- Ukrainian (uk)
- Dialog Flow Project ID - The Google Cloud project ID associated with your Dialogflow agent.
- Session ID - The session ID to use for this interaction. If not provided, a unique ID will be generated.
Output
- intent - The query result from Dialogflow, including detected intent, confidence score, and fulfillment text.
How It Works
The Detect Intent node integrates with Google Dialogflow to analyze user text input and detect the underlying intent. When executed, the node:
- Validates the provided inputs (Text, Credentials, Language, Project ID)
- Authenticates with Google Dialogflow using the provided credentials
- Sends the user's text input to Dialogflow for intent detection
- Receives and processes the query result from Dialogflow
- Returns the complete query result as the output
Requirements
- A valid Google Cloud account with Dialogflow API enabled
- Valid Google Dialogflow credentials (service account key)
- A configured Dialogflow agent
- Valid Dialog Flow Project ID
- User text input to analyze
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid Text input
- Empty or invalid Language selection
- Empty or invalid Dialog Flow Project ID
- Empty or invalid Google Dialogflow credentials
- Google Dialogflow service errors
Usage Notes
- The Text input should be a natural language query from the user
- The Language option should match the language of the Text input for best results
- If no Session ID is provided, a unique ID will be generated automatically
- The output contains the complete Dialogflow query result, including:
- Detected intent name and confidence score
- Fulfillment text
- Parameters extracted from the query
- Other metadata from the Dialogflow response
- This node is typically used in chatbot or conversational AI applications