Classifies an utterance against registered intents; adds one or more intents (actions) to interaction.
The Intent Interact Action is an advanced interact action designed for classifying natural language utterances against registered intents, subsequently enriching the interaction process by adding corresponding intents (actions) dynamically. It serves as an essential component within the core action group, enabling accurate intent detection and interaction enhancement within conversational flows.
jivas/intent_interact_actionIntentInteractAction0.0.1true-10all^2.0.0jivas/langchain_model_action: ^0.0.1This guide details how you can properly configure the intent_interact_action for optimal and targeted functionality within your deployment.
The intent_interact_action is highly configurable to fit your interaction requirements. The key configuration parameters are explained below:
strict (bool, default=true):
If enabled, only actions associated with explicitly matched intents from the provided anchors will be executed. Disable strict mode (strict=False) to execute other available actions by default, even if their intents are not directly matched.
exceptions (list, default=['FunctionInteractAction']):
When in strict mode, this list specifies action node names to always include, regardless of intent matching outcomes.
Users can add additional node names to ensure certain actions consistently execute despite strict intent classification, e.g.:
exceptions:
- FunctionInteractAction
- CustomAlwaysRunAction
The Intent Interact Action leverages a chosen language model to provide context-aware inferencing and classify intents from conversational history. The following parameters ensure you optimize performance and accuracy of intent inference:
history_size: 5 # Recent exchanges considered in analysis
max_statement_length: 500 # Maximum input statement length (tokens/chars)
model_action: LangChainModelAction # Node that supplies the LLM inference capability
model_name: gpt-4o # LLM model utilized for intent detection
model_temperature: 0.2 # Controls inference determinism (low value = more deterministic)
model_max_tokens: 2048 # Maximum tokens allowed in LLM response
Alter the values above to align with your platform resources, conversational context requirements, response speed, and accuracy precision requirements.
The IntentInteractAction can interface and trigger any interact action within the pipeline by means of anchors declared in respective actions. An anchor signals the intent under which an action is executed. Below is an example of anchor definitions:
anchors:
- "MESSAGE is a query requesting the traffic report"
- "MESSAGE is a query relating to the bridge retraction schedule"
Anchors must succinctly describe intents for reliable inferencing and should clearly specify the conditions for triggering the associated action.
Here's a comprehensive example demonstrating standard configuration usage:
intent_interact_action:
strict: true
exceptions:
- FunctionInteractAction
- WeatherInteractAction
history_size: 5
max_statement_length: 500
model_action: LangChainModelAction
model_name: gpt-4o
model_temperature: 0.2
model_max_tokens: 2048
intent_interact_action project.git clone https://github.com/jivas/intent_interact_action
git checkout -b feature-intent-classifier
git commit -m 'Enhanced intent classification accuracy'
git push origin feature-intent-classifier
This project is licensed under the terms of the Apache License 2.0. Refer to the LICENSE for details.
jvcli download action jivas/intent_interact_actionLast published
9 months ago
Version
0.0.2
Downloads
0
Author
jivasType
interact_action
Visibility
Public
Tags