> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plura.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Workflows in Plura AI

## What Are Workflows?

A **Workflow** in Plura AI is a structured conversational system designed to create a natural conversation while ensuring the AI stays on track. It achieves this by breaking interactions into goal-oriented components, each represented by a **node** with a distinct purpose.

Nodes are linked through **decision triggers**, which control the conversation flow based on predefined conditions. This structured approach helps the AI maintain consistency, ensuring a logical sequence while preserving a natural and fluid dialogue experience.

<img src="https://mintcdn.com/plura/4qUhr4ggxXTG-bNE/images/workflow.jpeg?fit=max&auto=format&n=4qUhr4ggxXTG-bNE&q=85&s=02dc891807a1d36e52e42d0d8aa4b8f8" alt="images/workflow.jpeg" width="2482" height="1440" data-path="images/workflow.jpeg" />

## Navigating the Workflow

Understanding the workflow interface is essential for building and managing AI-driven conversations effectively. Below is an overview of key navigation components:

* **Nodes Section:** You can browse the available node types and create them either by clicking on the node you want to add or by dragging and dropping it into the workflow.

  <img width="400" src="https://mintcdn.com/plura/4qUhr4ggxXTG-bNE/images/node-section.png?fit=max&auto=format&n=4qUhr4ggxXTG-bNE&q=85&s=f9949a5b88f41539c076d51ad3b76ba9" data-path="images/node-section.png" />
* **Universal Prompt:** A prompt that is always available to the AI, regardless of which node it is on. It helps guide the call and sets the overall tone of the conversation.

  <img width="200" src="https://mintcdn.com/plura/4qUhr4ggxXTG-bNE/images/universal-prompt.png?fit=max&auto=format&n=4qUhr4ggxXTG-bNE&q=85&s=27461634f538d58a7cbd94844d48de2b" data-path="images/universal-prompt.png" />
* **Workflow Control Bar:** The Workflow Control Bar contains essential tools for managing different versions, monitoring performance, and testing workflows.

  <img width="600" src="https://mintcdn.com/plura/4qUhr4ggxXTG-bNE/images/top-bar.png?fit=max&auto=format&n=4qUhr4ggxXTG-bNE&q=85&s=8b5550f0ff6eeee9bddedf7ff64f7a5f" data-path="images/top-bar.png" />

  * **Version History:** View and select different versions of your workflow to track changes and roll back if necessary.
  * **Create Version:** Allows you to create a new version of the workflow, maintaining previous iterations.
  * **Show Analytics:** Provides insights into the performance of each node, helping you optimize conversation workflow.
  * **Test:** Opens the test bench, enabling you to chat or call the workflow and observe its real-time behavior.
  * **Save & Publish:** The save button saves the workflow changes, while the publish button deploys the workflow into either development or production.
* **Navigation Bar:** Contains essential tools for managing your workspace, including undo and redo buttons for easy revisions.

  <img width="400" src="https://mintcdn.com/plura/4qUhr4ggxXTG-bNE/images/navigation-bar.png?fit=max&auto=format&n=4qUhr4ggxXTG-bNE&q=85&s=5fc2ae17555dddf326940487992f024d" data-path="images/navigation-bar.png" />
* **Node Management:** Each node contains three main buttons to help manage and configure its functionality.

  <img width="400" src="https://mintcdn.com/plura/4qUhr4ggxXTG-bNE/images/node-management.png?fit=max&auto=format&n=4qUhr4ggxXTG-bNE&q=85&s=3566ea9d70755301aa42eaa47aca69d8" data-path="images/node-management.png" />

  * **Node Wizard:** A feature that simplifies node creation by automatically generating prompts, conditions, and other necessary configurations based on minimal instructions.
  * **Edit Button:** Opens the node settings where you can configure its behavior manually.
  * **Delete Button:** Removes the node from the workflow.

## Components of a Workflow

A Workflow consists of the following key elements:

<Steps>
  <Step title="Nodes">
    Nodes are the building blocks of a Workflow. Each node serves a unique purpose and helps structure the conversation logically.

    <img width="500" src="https://mintcdn.com/plura/4qUhr4ggxXTG-bNE/images/nodes.png?fit=max&auto=format&n=4qUhr4ggxXTG-bNE&q=85&s=d05aaf5aa9f23499d452f2ec7bebafbc" data-path="images/nodes.png" />

    Some of the primary node types include:

    * <Icon icon="message" color="#60a5fa" />  **AI Conversation Node**: The core node where you provide specific instructions to the AI for handling a segment of the conversation.
    * <Icon icon="book-blank" color="#c084fc" />  **Knowledge Base Node**: Enables the AI to retrieve relevant information from a predefined knowledge source.
    * <Icon icon="phone-slash" color="#f87171" />  **End Call Node**: Terminates the conversation when a specific outcome is reached.
    * <Icon icon="phone-volume" color="#4ade80" />  **Transfer Call Node**: Redirects the conversation to a human agent or another department.
    * <Icon icon="arrow-up-right-from-square" color="#22d3ee" />  **API Call Node**: Allows integration with external systems by making API requests to fetch or send data.
  </Step>

  <Step title="Decision Triggers">
    Decision Triggers connect nodes and dictate the flow of a conversation. Each trigger has conditions that must be satisfied before progressing to the next node. The AI cannot move forward unless the specific condition set within the trigger is met.

    <img width="500" src="https://mintcdn.com/plura/4qUhr4ggxXTG-bNE/images/decision-trigger.png?fit=max&auto=format&n=4qUhr4ggxXTG-bNE&q=85&s=25726387e33b0192027dfc73f2f30436" data-path="images/decision-trigger.png" />

    Decision Triggers create dynamic conversations by allowing different outcomes based on user responses. A single node can have multiple Decision Triggers, each activating under specific circumstances, ensuring that the conversation adapts fluidly to the user’s input.
  </Step>

  <Step title="Universal Prompt">
    The **Universal Prompt** is a predefined prompt that remains active throughout the entire workflow, regardless of which node the AI is currently on.

    <img src="https://mintcdn.com/plura/4qUhr4ggxXTG-bNE/images/universal-prompt.png?fit=max&auto=format&n=4qUhr4ggxXTG-bNE&q=85&s=27461634f538d58a7cbd94844d48de2b" alt="images/universal-prompt.png" width="253" height="115" data-path="images/universal-prompt.png" />

    It plays a crucial role in guiding the call, maintaining context, and ensuring a consistent tone throughout the interaction.
  </Step>
</Steps>

## Why Use Workflows?

* **Consistency**: Ensures that AI follows a structured and logical conversation flow.
* **Modularity**: Allows different parts of the conversation to be broken into manageable segments.
* **Flexibility**: Enables dynamic routing based on real-time inputs and conditions.
* **Scalability**: Facilitates building complex conversational systems without overwhelming the AI with excessive instructions at once.

By organizing AI conversations into Workflows, Plura AI enhances interaction quality, making AI-driven conversations more effective and user-friendly.
