Create and Configure Workflows for Use in Agentic Applications

To build agentic apps with workflows, first configure the workflows for optimal results. To use a workflow in agentic apps, make sure to publish the workflow at least once. After publishing, you can edit the workflow, and use the draft version of your workflow for your agentic app.

Best Practices

  • Make sure that the description of your workflow clearly defines the workflow's capabilities and specialization. When multiple workflows are engaged, this description is used to help identify which workflow is best suited to handle a given query.
  • Design smaller, topic-focused workflows. You can combine multiple workflows as needed within the agentic app.
  • Keep workflows lean to reduce latency. Limit the number of LLM and agent nodes where possible to reduce perceived delay when resources are requested from the workflow.
  • Pass user input and history explicitly. In workflows, conversation history and user input aren’t automatically passed to internal LLM, agent, or workflow nodes. Use a code node or variable assignment to pass what you need (for example, using $context.$system.$inputMessage), and then reference those variables in subsequent LLM or agent calls.
  • When possible, end your workflow with an agent or LLM node to help prevent output streaming.