Blocks & Variables

As explained in article Agents, Workflows & Triggers, workflows are conversational paths that define how the chatbot responds to specific questions and manages various scenarios. They are used to validate user responses, determine how to reply, and define conditions that trigger different responses based on user input, among other things.

Workflows are structured processes that guide how the virtual assistant interacts with users. Before an agent responds or the assistant takes action, the workflow ensures all necessary steps are followed. These steps are designed to react to both direct (explicit) and indirect (implicit) user inputs.

Some examples of workflows include:

  • Product Recommendation Workflow: User requests the best product → bot retrieves and filters options from the catalog → best-fit product is passed to the agent → agent shares the recommendation.

  • Customer Support Workflow: User asks to connect with a human → workflow gathers conversation history and user details → bot connects with the CRM → support ticket is created and confirmed to the user.

Workflows are the backbone of complex virtual assistants, yet building them is simple and intuitive.

In your workspace, you can easily drag and drop workflow components from the available blocks, making workflow creation both intuitive and flexible.

🎯 Workflow Trigger

The workflow trigger functions similarly to an agent trigger, determining when the workflow should begin (entry point). This ensures smooth integration with other parts of your bot.

As mentioned in Agents, Workflows & Triggers, a trigger should only be configured if the workflow is a primary process that the mother agent should delegate user requests to. For secondary workflows or those supporting other processes, triggers are unnecessary; these workflows can be activated in an alternative way, using a reroute block.

For detailed guidance on creating workflows and building your virtual assistant, refer to this article: Build Your AI Agents.

What You Can Specify in the Trigger:

  • Trigger Details – Define when the workflow should activate.

  • Example Questions – List common user queries that should trigger this workflow, helping refine its activation conditions.

Additionally, there is a toggle switch that allows you to enable or disable the trigger. This is particularly useful during testing. If a trigger is configured, make sure it is enabled to prevent unexpected behavior.

create an example of a trigger for a workflow that guides the user to find the closes store available to an indicated location.

Workflow Example

Store Finder Workflow

  • Trigger Details: When a user asks for the nearest store to a specific location.

  • Example User Questions:

    • "Where is the closest store?"

    • "Can you find a store near me?"

    • "Find the nearest Lumine Jewels store."

    • "Show me the closest store to Milan."

Trigger configuration

Top Section & Settings

The settings in the top right corner of the workflow area are identical to those found in the agent area. This section provides key information and settings to define and optimize your virtual assistant's behavior, helping you configure and fine-tune its performance.

Top Section of the Worfklow Area

Workflow Name

The workflow name should be clear and descriptive, making its purpose immediately obvious.

Example:

  • ✅ “Store Locator Workflow” (clearly indicates that the workflow helps users find nearby stores)

  • ❌ "Search Workflow" (too vague)

Last Modified Information

This section automatically displays details about who last modified the workflow and when the modification occurred for version tracking.

Settings (Top Right Button)

The Settings menu includes essential toggles that define how users interact with the assistant.

Settings

User Feedback Toggle

The User Feedback Toggle allows users to rate the agent’s responses with a thumbs-up or thumbs-down option. When enabled, a feedback request appears at the end of each response.

Based on user reactions, the agent can connect to different workflows: a positive rating can trigger another agent or workflow, such as offering follow-up suggestions, while a negative rating can prompt a response, ask clarifying questions, or redirect the user to a human agent.

As a best practice, it is recommended to disable feedback requests for intermediate workflows and secondary agents, ensuring that feedback is collected only on final responses rather than on clarification steps or data collection prompts.

📊 Want to learn more about collecting and analyzing feedback? Check out our Analytics guide: Analytics.

Typebar Settings

The Typebar toggle lets you control how users interact with the agent:

  • Disabled: Users can only choose from pre-set buttons (useful for structured flows).

  • Enabled: Users can freely type their queries. If the typebar is enabled, you can add multiple placeholder texts (separated by commas), which will be displayed randomly to guide user input.

Workflow Blocks

Our platform offers 4 types of workflow blocks:

  1. Message blocks allow you to deliver static content, such as text, images, videos, or cards, to the user at specific points in the conversation flow, providing engaging, structured content that follows a predefined format.

  2. Action blocks allow both users and the virtual assistant to perform specific actions within the conversation flow, such as sending emails, selecting from multiple predefined options, uploading documents, or speaking with a human operator.

  3. Logic blocks allow you to control and shape the flow of the conversation based on conditions, user inputs, or data from external systems. They enable your virtual assistant to make decisions, collect and process information, assign values, and connect with APIs—ensuring dynamic, responsive, and intelligent conversational experiences.

  4. Utility blocks support behind-the-scenes functionality by enhancing how your assistant processes information and how your team collaborates. They include tools for generating structured outputs with AI (like prompts) and for adding internal documentation within workflows (like notes), helping you build more organized and intelligent assistants.

Variables

Variables are the foundation of most workflow blocks. They allow your assistant to store, recall, and act on data—enabling everything from dynamic conversations to API-based responses. Whether you're capturing user input, setting conditions, or generating structured outputs, variables power the logic behind your assistant’s behavior.

Learn more about how variables work in the next section: 🧩 Variables.

Blocks Overview

Below is an overview of the available blocks, along with links to dedicated articles that provide detailed descriptions of their functionalities:

Block Type
Block Title
Description

Message

Sending predefined messages

Message

Displaying visual content

Message

Presenting structured, interactive content

Message

Embedding multimedia content

Action

Sending emails as part of the conversation flow

Action

Providing predefined options for users to quickly select from

Action

Allowing users to upload files directly in the conversation

Action

Seamlessly transferring the conversation to a human operator

Logic

Redirects the conversation to a different agent or workflow

Logic

Branches the flow based on conditional logic and variable values

Logic

Collects user input and stores it in a variable

Logic

Assigns or resets the value of a variable

Logic

Sends or receives real-time data from external systems via API

Utility

Uses AI to generate structured data or intelligent responses from user input

Utility

Adds internal comments to keep workflows organized

Last updated

Was this helpful?