Commands
The Commands section in Flow Details lets you define technical utterances as exact-match commands instead of using them as NLP training phrases. This helps you manage structured or system-level inputs — such as __update_db_parameters__ or #CreateNewFlowFromBot — without affecting the language model’s performance.
Commands are matched exactly as typed, and they bypass natural language processing (NLP). By separating these phrases from NLP training data, you reduce noise and improve language understanding, especially when using LLM-supported models.
When to use the Commands
Use the Commands section when you need to:
- Handle developer or system-facing phrases
- Avoid NLP interpretation of precise inputs
- Improve model clarity by reducing irrelevant training data
- Avoid using the Commands section for natural user language or open-ended intents.
Add a Command
To define a technical utterance as a command:
- Open the bot and go to your solution Flows.
- Select the desired flow and click Flow Details.
- Scroll to the Commands section.
- Click Add Command.
- Enter the exact phrase or command (e.g., __restart_task__ or #RunReportNow).
- Click Save.
Note: Commands are case-sensitive and must match user input exactly.
Hint: In Druid 8.19 and higher, you can also add a command when creating a new flow.
Update Existing Flows
If your current flows include technical phrases in the Training Phrases section:
- Remove those phrases from the NLP training list.
- Add them to the Commands section as described above.
- Save and test your flow to ensure the commands trigger correctly.