# Code Block Source: https://docs.odella.ai/block-reference/advanced/code Run Python code securely during your flow's execution The Code Block allows you to run Python code securely during your flow's execution using Azure Code Interpreter. This block provides a safe and isolated environment for executing custom Python code. Common use cases include: * Performing complex calculations * Implementing custom data processing logic * Using Python libraries and functions * Data transformation and analysis > [!NOTE] > > The Code Block only supports Python code execution. ![Code Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/code_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=bfabc6ff33df334aee562132bae18b9c) ## Inputs **input1** `any` Default input port. Input names are configurable and each creates a corresponding port. Values are accessible in your Python code via the `inputs` dictionary with typed values (e.g., `inputs["input1"]["type"]`, `inputs["input1"]["value"]`). ## Outputs **output1** `any` Default output port. Output names are configurable and each creates a corresponding port. The code must return a dictionary with typed values matching the configured output names (e.g., `{"output1": {"type": "string", "value": "result"}}`). ## Editor Settings **Inputs** `stringList` List of input names. Each name creates an input port on the block. Names are sanitized to be valid Python identifiers (only alphanumeric and underscore characters). **Outputs** `stringList` List of output names. Each name creates an output port on the block. The code must return values for all configured outputs. **AI Assist** `custom` An AI assistant to help write and modify your code. **Code** `code` The Python code to execute. Must include a `main(inputs)` function that processes the inputs and returns a dictionary of outputs. Default template: ```python theme={"system"} def main(inputs): return { "output1": { "type": inputs["input1"]["type"], "value": inputs["input1"]["value"] } } ``` ## Code Structure Your code must: * Define a `main(inputs)` function * Access inputs through the `inputs` dictionary where each input has `type` and `value` properties * Return a dictionary with output names matching those configured in settings * Each output must have `type` and `value` properties # Comment Block Source: https://docs.odella.ai/block-reference/advanced/comment Add notes or comments to your flow for better organization and understanding ## Overview The Comment Block is a special type of block that doesn't perform any operations but serves as a way to add notes or comments to a flow. It can be used to provide additional context or explanation for a group of blocks, making the flow easier to understand. The Comment Block is always rendered behind other blocks and has a distinct appearance with customizable colors. ![Comment Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/comment_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=899aa5105f01c701cc4e91c913bbc053) ## Inputs The Comment Block does not have any inputs. ## Outputs The Comment Block does not produce any outputs. ## Editor Settings **Color** `string` (default: rgba(255,255,255,1)) The color of the text in the comment block. **Background Color** `string` (default: rgba(0,0,0,0.05)) The background color of the comment block. **Text** `string` The text content of the comment block. Supports Markdown syntax, allowing for rich text formatting including headings, lists, etc. ## Example Usage The Comment Block can be used to add notes or comments to a flow. For example, if you have a group of blocks performing a specific operation, you can add a Comment Block behind them to provide a brief explanation of what they do. Additionally, you can use different colors for the text and background of different Comment Blocks to visually distinguish between different sections of your flow. ## FAQ > [accordion] Can I use formatting in my comments? > > Yes, the Comment Block supports Markdown syntax, allowing you to use headings, lists, bold, italic, and other formatting options. > [accordion] Do Comment Blocks affect the flow execution? > > No, Comment Blocks are purely for documentation and organization purposes. They do not affect the execution of your flow in any way. ## See Also * [Markdown Guide](https://www.markdownguide.org/) * [Flow Organization Best Practices](/workflow/overview) # HTTP Call Block Source: https://docs.odella.ai/block-reference/advanced/http-call Make HTTP requests to external APIs and services ## Overview The HTTP Call Block allows you to make HTTP requests to specified URLs with custom methods, headers, and body. This versatile block is essential for interacting with external APIs or services within your workflow. ![HTTP Call Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/http_call_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=23fa7a5d0485f53b8542d817377c643b) ## Inputs **Method** `string` The HTTP method to use for the request (GET, POST, PUT, DELETE). Only shown when "Use Input" is enabled for Method. **URL** `string` The URL to make the HTTP request to. Only shown when "Use Input" is enabled for URL. **Headers** `object` An object containing the headers to include in the HTTP request. Only shown when "Use Input" is enabled for Headers. Can accept a string containing JSON or an object. **Body** `string` The body of the HTTP request. Only shown when "Use Input" is enabled for Body. Can accept a string or an object that will be stringified. ## Outputs **Body** `string` The raw text body of the HTTP response. **JSON** `object` If the response has a content-type of application/json, this output will contain the parsed JSON object. Otherwise, this output will not be available. **Status Code** `number` The HTTP status code of the response. **Headers** `object` An object containing the headers from the HTTP response. ## Editor Settings **Method** `select` (default: GET) The HTTP method to use. Options are GET, POST, PUT, or DELETE. Has an "Use Input" toggle to accept the method via input instead. **URL** `string` The URL to make the request to. Has a "Use Input" toggle to accept the URL via input instead. **Headers** `code` JSON object containing request headers. Has a "Use Input" toggle to accept headers via input instead. **Body** `code` The request body. Has a "Use Input" toggle to accept body content via input instead. **Error on non-200 status code** `boolean` (default: true) If enabled, the block will error if the response status code is not 200. ## Notes * When running in a browser environment, requests may be limited by CORS policies. If you encounter CORS issues, try using the Node executor instead. * Headers provided via input can be either a JSON string or an object * Body content provided via input can be either a string or an object (which will be stringified) * The JSON output is only available when the response has a content-type of application/json ## Examples ### Example 1: Make a GET request to an API 1. Create an HTTP Call Block and set the `Method` to `GET` and the `URL` to `https://jsonplaceholder.typicode.com/todos/1`. 2. Run the flow. You should see all of the response data, such as the headers, response code, and body, in the output panel. ### Example 2: Make a POST request to an API 1. Create an HTTP Call Block and set the `Method` to `POST` and the `URL` to `https://jsonplaceholder.typicode.com/posts`. Enable the "Use Input" toggle on the "Body" setting. 2. Create an [Object Block](/block-reference/data/object) with the following content: # Raise Event Block Source: https://docs.odella.ai/block-reference/advanced/raise-event Trigger events within your flow for host project interaction or flow synchronization ## Overview The Raise Event Block allows you to trigger events from within your flow. These events can be listened for by the host project or by a [Wait For Event Block](/block-reference/advanced/wait-for-event) within the same flow. This functionality is useful for: * Triggering actions in your host application based on the flow's state * Synchronizing different parts of your flow The block requires an event name and optionally accepts event data. The event name identifies the event when raised, while the event data can include any additional information you want to associate with the event. ![Raise Event Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/raise_event_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=9a06c29761bac4969f0a012fbf6768d1) ## Inputs **Event Name** `string` *required* The name of the event to raise. This input is only available if `Use Event Name Input` is enabled in the settings. Any non-string inputs will be automatically coerced to strings. **Data** `any` The data to associate with the event. Optional. Can be any data type. ## Outputs **Result** `any` Returns the same data that was provided to the Data input. If no data was provided, returns an empty string. ## Editor Settings **Event Name** `string` (default: toast) The name of the event to raise. Required if `Use Event Name Input` is disabled. Defaults to "toast". **Use Event Name Input** `boolean` (default: false) When enabled, allows the Event Name to be provided via an input port instead of being set in the settings. ## Block Body Display The block body will either display: * The configured event name (when using settings) * "(Using Input)" (when using the Event Name input port) ## Examples ### Example 1: Using the Toast Event 1. Create a Text Block with the content "Hello, world!". 2. Add a Raise Event Block and set the Event Name to `toast`. 3. Connect the Text Block to the `Data` input of the Raise Event Block. 4. Run the flow. The `Result` output will be "Hello, world!", and a toast message will appear. ### Example 2: Synchronize Flow Parts 1. Create a [Chat Block](/block-reference/ai/ai) with a prompt "What is your name?" using a [Text Block](/block-reference/data/text). 2. Add a Raise Event Block, set the Event Name to `chat`, and connect the Chat Block's `Response` output to the Raise Event Block's `Data` input. 3. In another part of the flow, add a [Wait For Event Block](/block-reference/advanced/wait-for-event) with the Event Name set to `chat`. 4. Run the flow. The Wait For Event Block will pause execution until the Chat Block completes. ## Error Handling The Raise Event Block will error if: * The Event Name is not provided when using the Event Name input * The Event Name setting is empty when not using the input port ## FAQ > [accordion] Can I pass data with the event? > > Yes, you can pass data of any type with the event by providing a value to the `Data` input. > [accordion] What happens if I raise an event that no one is listening for? > > If you raise an event with no listeners, it will be raised and immediately discarded without any effect. > [accordion] How is raising an event different from an External Call Block? > > The [External Call Block](/block-reference/advanced/http-call) waits for the external call to complete before continuing, while the Raise Event Block continues immediately after raising the event. ## See Also * [Wait For Event Block](/block-reference/advanced/wait-for-event) * [External Call Block](/block-reference/advanced/http-call) * [Chat Block](/block-reference/ai/ai) * [Text Block](/block-reference/data/text) # Subflow Block Source: https://docs.odella.ai/block-reference/advanced/sub-graph Execute another flow within the current flow for reusable logic and modular design ## Overview The Subflow Block allows you to execute another flow within the current flow. This powerful feature enables you to reuse logic across multiple flows, break down complex flows into smaller pieces, and create modular workflow designs. > [!NOTE] > > Subflows must be within the same project and cannot reference flows from different projects. ![Subflow Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/subflow_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=0ddba2650817dda58d039255064f9ff6) ## Inputs **(Dynamic Inputs)** `any` The inputs are dynamically generated based on the Input Blocks configured in the selected subflow. Each Input Block in the subflow creates a corresponding input port on the Subflow Block. **Wait For** `any` Only shown when "Wait For Input" is enabled. Used to delay execution until this input is ready. ## Outputs **(Dynamic Outputs)** `any` The outputs are dynamically generated based on the Output Blocks configured in the selected subflow. Each Output Block in the subflow creates a corresponding output port on the Subflow Block. **Error** `string` Contains any error message if an error occurs during subflow execution. Only available when "Use Error Output" is enabled. **Duration** `number` The time in milliseconds that the subflow took to execute. ## Editor Settings **Flow** `flow` *required* Select the flow to execute as a subflow. The flow must exist within the same project. **Use Error Output** `boolean` (default: false) When enabled, errors during subflow execution will be sent to the Error output port instead of causing the block to fail. This allows for custom error handling logic. **Wait For Input** `boolean` (default: false) When enabled, adds a "Wait For" input port that delays execution until that input is ready. **(Dynamic Settings)** `any` For each Input Block in the selected subflow, a corresponding setting appears allowing you to set a default value for that input. ## Notes * The block's inputs and outputs are determined by the Input and Output Blocks in the selected subflow * Errors can either fail the block or be handled via the Error output port * Subflows can be nested within other subflows for complex workflow organization * The subflow must be in the same project as the parent flow * Default values can be set for any input, which will be used if no connection is made to that input port ## Examples ### Example 1: Basic Subflow Usage 1. Create a new flow called "Greeting" with: * An Input Block named "name" * A Text Block with content "Hello, !" * An Output Block named "message" 2. In your main flow: * Add a Subflow Block * Select "Greeting" as the Flow * Connect a Text Block with a name to the "name" input * Use the "message" output as needed ### Example 2: Error Handling 1. Create a subflow that might produce errors 2. In your main flow: * Add a Subflow Block * Enable "Use Error Output" * Connect the Error output to handle potential issues * Add error handling logic as needed ## FAQ > [accordion] Can subflows be nested? > > Yes, you can use Subflow Blocks within other subflows to create hierarchical workflow structures. > [accordion] What happens if an error occurs in the subflow? > > If "Use Error Output" is enabled, the error message will be sent to the Error output port. Otherwise, the block will fail and stop the flow execution. > [accordion] Can I modify the subflow's inputs and outputs? > > Yes, by modifying the Input and Output Blocks in the subflow. Changes will automatically update the ports on any Subflow Blocks using that flow. > [accordion] How can I track how long a subflow takes to execute? > > The Duration output port provides the execution time in milliseconds for each run of the subflow. # Wait For Event Block Source: https://docs.odella.ai/block-reference/advanced/wait-for-event Pause flow execution until a specific event is raised, enabling synchronization with external actions or other parts of the flow ## Overview The Wait For Event Block pauses the execution of a flow until a specific event is raised by a [Raise Event Block](/block-reference/advanced/raise-event) or the host project. This block is crucial for scenarios where you need to synchronize your flow with external actions or other parts of the flow. ![Wait For Event Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/wait_for_event_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=8c3a84b75df1f73c82babe49a66b9bb1) ## Inputs **Event Name** `string` The name of the event to wait for. This input is only available if `Use Event Name Input` is enabled in the settings. The value will be coerced to a string. **Data** `any` Any data to be passed through the block. This data will be outputted from the `Data` output port. Optional. ## Outputs **Data** `any` The data passed in through the `Data` input port, passed through unchanged. If no data was provided to the input, this output will not be available. **Event Data** `any` The data associated with the event that was raised. The type depends on what data was included when the event was raised. If the event has no associated data, this output will not be available. ## Editor Settings **Event Name** `string` (default: continue) The name of the event to wait for. Must match the name of the event raised by the Raise Event Block or the host project. Only used if `Use Event Name Input` is disabled. **Use Event Name Input** `boolean` (default: false) If enabled, the Event Name can be provided via the Event Name input port instead of being set in the settings. ## Examples ### Example: Synchronizing with a Raise Event Block 1. Create a [Raise Event Block](/block-reference/advanced/raise-event) and set the `Event Name` to `myEvent`. 2. Add a Wait For Event Block and set the `Event Name` to `myEvent`. 3. Connect a Text Block with "Raise Event" to the Raise Event Block's Data input. 4. Connect another Text Block with "Waited" to the Wait For Event Block's Data input. 5. Connect both blocks' outputs to separate Text Blocks. 6. Run the flow. The Wait For Event Block will pause until the Raise Event Block raises `myEvent`. 7. Observe how the Wait For Event Block outputs both its input data and the event data. ## Error Handling The Wait For Event Block does not generate errors under normal circumstances. If the expected event is not raised, the block will wait indefinitely. ## FAQ > [accordion] Can I use the Wait For Event Block to wait for multiple events? > > No, each Wait For Event Block can only wait for a single event. To wait for multiple events, use multiple Wait For Event Blocks. > [accordion] Can I use the Wait For Event Block with API calls? > > Yes, you can use an [HTTP Call Block](/block-reference/advanced/http-call) to make an API call, then use the Wait For Event Block to wait for an event raised in response to that call. ## See Also * [Raise Event Block](/block-reference/advanced/raise-event) * [HTTP Call Block](/block-reference/advanced/http-call) * [External Call Block](/block-reference/advanced/http-call) * [Code Block](/block-reference/advanced/code) # Agent Source: https://docs.odella.ai/block-reference/agents/agent Executes a task by intelligently selecting and using available tools. The agent will analyze the task, ## Agent Executes a task by intelligently selecting and using available tools. The agent will analyze the task, break it down into steps, and execute the appropriate tools to accomplish the goal. ## Block metadata | Field | Value | | - | - | | Block ID | `agent` | | Display name | Agent | | Group | Agents | # Template Agent Source: https://docs.odella.ai/block-reference/agents/template-agent Intelligently populates templates by gathering missing information using tools or by asking users. ## Template Agent Intelligently populates templates by gathering missing information using tools or by asking users. Features flexible tool-based operations, batch template population, and intelligent context gathering. ## Block metadata | Field | Value | | - | - | | Block ID | `templateAgent` | | Display name | Template Agent | | Group | Agents | # Ask AI Block Source: https://docs.odella.ai/block-reference/ai/ai Send messages to over 250 AI models for chat completions ## Overview The Ask AI Block allows you to send messages to over 250 different AI models for chat completions. This versatile block provides a wide range of options for AI-powered conversations and text generation tasks. ![Ask AI Screenshot (Light Mode)](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/ask_ai_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=743eb08be5364b3f5a80819d07cc6ea4) ## Inputs **systemPrompt** `string | chat-message` The system prompt to send to the model. Optional. Used to provide high-level guidance to the AI model. **prompt** `string | string[] | chat-message | chat-message[]` The prompt message or messages to send to the model. Required. Strings will be converted into chat messages of type `user`, with no name. **model** `string` The model to use for the chat. Only available when "Use Model Input" is enabled. **temperature** `number` What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Only available when "Use Temperature Input" is enabled. **top\_p** `number` An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top\_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. Only available when "Use Top P Input" is enabled. **useTopP** `boolean` Whether to use top p sampling, or temperature sampling. Only available when "Use Top P Input" is enabled. **maxTokens** `number` The maximum number of tokens to generate in the chat completion. Only available when "Use Max Tokens Input" is enabled. **stop** `string` A sequence where the API will stop generating further tokens. Only available when "Use Stop Input" is enabled. **presencePenalty** `number` Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Only available when "Use Presence Penalty Input" is enabled. **frequencyPenalty** `number` Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Only available when "Use Frequency Penalty Input" is enabled. **seed** `number` If specified, OpenAI will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Only available when "Use Seed Input" is enabled. ## Outputs **response** `string` The textual response from the model. **in-messages** `chat-message[]` All messages sent to the model. **all-messages** `chat-message[]` All messages, with the response appended. **responseTokens** `number` The number of tokens in the response from the LLM. For a multi-response, this is the sum. **cost** `number` The estimated cost of the API call in USD. **duration** `number` The time taken to complete the request in milliseconds. ## Editor Settings **Model** `string` The AI model to use for responses. Choose from over 250 available models across various providers. **Use Prompt Input** `boolean` (default: true) Whether to use the prompt input, or input a prompt directly in the settings. **Temperature** `number` (default: 0.7) Controls randomness in the output. Lower values make the output more focused and deterministic. **Top P** `number` (default: 1) Alternative to temperature sampling. Only tokens comprising the top P probability mass are considered. **Use Top P** `boolean` (default: false) Whether to use top p sampling instead of temperature sampling. **Max Tokens** `number` (default: 8192) The maximum number of tokens to generate in the completion. **Stop** `string` A sequence where the API will stop generating further tokens. **Presence Penalty** `number` Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. **Frequency Penalty** `number` Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. **Seed** `number` If specified, OpenAI will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. ### Advanced **Custom Max Tokens** `number` Overrides the max number of tokens a model can support. Leave blank for preconfigured token limits. **Cache Responses** `boolean` (default: false) If enabled, requests with the same parameters and messages will be cached for immediate responses without an API call. **Use for subgraph partial output** `boolean` If enabled, streaming responses from this node will be shown in Subgraph nodes that call this graph. ## Example: Simple Question Answering 1. Add an Ask AI block to your flow. 2. Add a Text block and enter your question in its editor. 3. Connect the output of the Text block to the `Prompt` input of the Ask AI block. 4. Select your desired model in the Ask AI block settings. 5. Run your flow. The AI's response will appear at the bottom of the Ask AI block. ## Error Handling The block will retry failed attempts up to 3 times with exponential backoff: * Minimum retry delay: 500ms * Maximum retry delay: 5000ms * Retry factor: 2.5x * Includes randomization * Maximum retry time: 5 minutes Error messages will be logged for: * Missing prompt input * API rate limits (will retry) * API timeouts (will retry) * Token limit exceeded * Invalid model configuration * Other API errors > [!WARNING] > > Be mindful of rate limits when using the Ask AI block, especially when [batching](/workflow/batching) requests. ## FAQ > [accordion] Can I use multiple AI models in the same workflow? > > Yes, you can use multiple Ask AI blocks with different models in the same workflow. > [accordion] What happens if I connect an unsupported data type to the prompt input? > > The block will attempt to convert the value to a string. If successful, it will be treated as a user message. If conversion fails, the input will be ignored. > [accordion] Are all settings available for all models? > > No, available settings may vary depending on the selected model. The block will adapt its settings based on your selection. ## See Also * [Text Block](/block-reference/data/text) * [Assemble Prompt Block](/block-reference/ai/ai) * [AI Filter Block](/block-reference/ai/ai-filter) # AI Filter Block Source: https://docs.odella.ai/block-reference/ai/ai-filter Apply AI-powered filtering to arrays using various models and providers ![AI Filter Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/ai_filter_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=be0cded5d5825acb5629897b91aae195) ## Overview The AI Filter Block applies a filter operation over an array of values where the filter condition is evaluated by one of the AI models from the 250+ models Odella connects to. This powerful block allows you to leverage AI capabilities to perform complex filtering tasks on your data. ## Inputs **System Prompt** `string` The system prompt to send to the model. Optional. Used to provide high-level guidance to the AI model. **Condition Prompt** `string` *required* The condition prompt to filter the array. Required. This prompt describes the criteria that each array element will be evaluated against. **Input** `any[]` *required* The input array to filter. Required. Can be an array of any data type. ## Outputs **Indicies** `number[]` The index numbers of each element that passed the filter condition. **Output** `any[]` The filtered input array containing only the elements that passed the condition. ## Editor Settings **AI Model** `string` (default: gpt-3.5-turbo) The AI model to use for evaluating filter conditions. Available models are dynamically populated based on the LLM provider configuration. **Temperature** `number` (default: 0) The sampling temperature to use. Values between 0-2. Higher values (0.8) make output more random, lower values (0.2) make it more focused and deterministic. **Top P** `number` (default: 1) Alternative to temperature sampling. Only tokens comprising the top P probability mass are considered. For example, 0.1 means only tokens in the top 10% probability are considered. **Use Top P** `boolean` (default: false) Toggle between using top P sampling or temperature sampling. **Max Tokens** `number` (default: 2048) The maximum number of tokens to generate in each chat completion. **Stop** `string` A sequence where the API will stop generating further tokens. **Presence Penalty** `number` Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. **Frequency Penalty** `number` Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. **Seed** `number` If specified, the model will attempt to generate deterministic results for repeated requests with the same seed and parameters. ### Advanced Settings **Custom Max Tokens** `number` Overrides the max number of tokens a model can support. Leave blank for preconfigured token limits. **Cache Responses** `boolean` (default: false) If enabled, requests with the same parameters and messages will be cached for immediate responses without an API call. **Use for subgraph partial output** `boolean` (default: false) If enabled, streaming responses from this node will be shown in Subgraph nodes that call this graph. ## Error Handling * The block will retry failed attempts up to 3 times with exponential backoff * Token limits are automatically enforced based on the selected model * Invalid responses (non TRUE/FALSE) from the model will trigger an error * The block includes built-in timeout handling and request cancellation support ## Example Usage 1. Connect an array of items to the Input port 2. Add a condition prompt like "Keep only items that are environmentally sustainable products" 3. Optionally add a system prompt for additional context 4. Configure the model and parameters in the settings 5. Connect the Output port to use the filtered results ## Notes * The block automatically handles token counting and cost tracking * Responses are strictly evaluated as TRUE/FALSE * The block supports parallel processing of array elements * Built-in caching can improve performance for repeated operations # AI Scorer Source: https://docs.odella.ai/block-reference/ai/ai-scorer Scores each message in a chat-message[] array using an AI model. Each message is scored between 0 and 1 based on the provided scoring criteria. ## AI Scorer Scores each message in a chat-message\[] array using an AI model. Each message is scored between 0 and 1 based on the provided scoring criteria. ## Block metadata | Field | Value | | - | - | | Block ID | `aiScorer` | | Display name | AI Scorer | | Group | AI | # Describe Image Block for AI Image Analysis Source: https://docs.odella.ai/block-reference/ai/analyze-image Use the Describe Image block to analyze images, charts, screenshots, and diagrams with natural language prompts in Odella workflows. ## Overview Use the Describe Image block when a workflow needs to analyze an image, chart, screenshot, diagram, or scanned visual and return a text description. Provide an image plus an optional natural language prompt to focus the analysis on specific details, then pass the output into blocks like [Ask AI](/block-reference/ai/ai), [Extract Data](/block-reference/ai/extract-data), or [Flow Output](/block-reference/io/graph-output). ![Describe Image Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/describe_image_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=e9c0677dfc445d481aa94260f5228227) ## Inputs **systemPrompt** `string` The system prompt to send to the model. Optional. Used to provide high-level guidance to the AI model. **prompt** `chat-message | chat-message[]` The prompt message or messages to send to the model. Only available if "Use Prompt Input" is enabled in settings. **image** `image` *required* The input image to be analyzed. Required. The image will be converted to a data URI before being sent to the model. ## Outputs **output** `string` The resulting description of the image. The content and focus of this description will depend on the input image and any provided prompts. ## Editor Settings **model** `string` (default: gpt-4o) The AI vision model used to describe the image. Available models are dynamically populated based on the LLM provider configuration. **usePromptInput** `boolean` (default: false) When enabled, allows the prompt to be provided via an input port instead of being set in the settings. **prompt** `string` (default: Describe the image in detail. If the image is a chart, provide an overview of the data and any trends or insights. If the image is of anything else, describe the content of the image.) The prompt to use when "Use Prompt Input" is disabled. This text will be sent to the model along with the image. **maxTokens** `number` (default: 2048) The maximum number of tokens to generate in the response. **temperature** `number` (default: 0) The sampling temperature to use. Lower values produce more focused and deterministic outputs, while higher values allow for more creativity in descriptions. > [!NOTE] > > Available settings may vary depending on the selected LLM provider and model. ## Example: Analyzing a Chart Image 1. Add a Describe Image block to your flow. 2. Connect your input image (e.g., a chart or graph) to the `image` input of the Describe Image block. 3. Add a Text block with a prompt like "Describe the main trends and key data points in this chart" and connect it to the `prompt` input if using prompt input mode. 4. Select your desired model in the Describe Image block settings. 5. Run your flow. The block will output a detailed description of the chart, focusing on the trends and key data points. ## Use Case: Screenshot Triage For support or operations workflows, connect an uploaded screenshot to the Describe Image block and ask it to summarize visible errors, form fields, or UI state. You can then route the description into [Extract Data](/block-reference/ai/extract-data) to capture structured fields, [AI Filter](/block-reference/ai/ai-filter) to prioritize issues, or [Confirm](/block-reference/io/confirm) to ask a human reviewer before continuing. ## Error Handling * If the input image is empty, invalid, or in an unsupported format, the block will return an error. * If the AI provider fails to analyze the image, the block will retry up to 3 times with exponential backoff (1-10 seconds between retries). * If the image is too large or complex for the model to process, the block may return an error or a partial description. > [!WARNING] > > Always validate the output of the Describe Image block, especially when using it for critical applications or decision-making processes. ## FAQ > [accordion] What types of images can the Describe Image block analyze? > > The block can analyze a wide variety of images, including photographs, charts, graphs, diagrams, and more. The effectiveness may vary depending on the complexity of the image and the capabilities of the chosen AI model. > [accordion] How detailed are the image descriptions? > > The level of detail in the descriptions can vary based on the complexity of the image, the specificity of the prompt (if provided), and the capabilities of the chosen AI model. You can often get more detailed or focused descriptions by using specific prompts. > [accordion] Can the Describe Image block identify specific objects or people in images? > > While the block can generally describe the contents of an image, including objects and people, it typically doesn't identify specific individuals. The level of object recognition depends on the AI model's training and capabilities. ## See Also * [Create Chart Block](/block-reference/ai/create-chart) * [Ask AI Block](/block-reference/ai/ai) * [Extract Data Block](/block-reference/ai/extract-data) * [AI Filter Block](/block-reference/ai/ai-filter) * [Confirm Block](/block-reference/io/confirm) # Analyze Table Block Source: https://docs.odella.ai/block-reference/ai/analyze-table Leverage AI to analyze and transform tabular data based on natural language prompts ![Analyze Table Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/analyze_table_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=8c52ca003bd2d5cdcd62bfaee54f06cf) ## Overview The Analyze Table Block uses AI capabilities to perform complex analysis and transformations on tabular data. By providing a natural language prompt, you can instruct the AI to aggregate data, calculate summary statistics, or perform other sophisticated operations on your input table. ## Inputs **Table** `table` *required* The input table to be analyzed. Should be an array of objects, where each object represents a row in the table. **Prompt** `string` *required* A natural language prompt describing the analysis or transformation to be performed on the table. This input is only available if "Use Prompt Input" is enabled in settings. The prompt guides the AI in generating the appropriate code for table analysis. ## Outputs **Output** `table` The resulting table after analysis or transformation. The structure of this table will depend on the operations specified in the prompt. **Duration** `number` The time in milliseconds that the block took to execute. ## Editor Settings **AI Model** `string` (default: default) The specific model to use for generating the analysis code. Available models are dynamically populated based on the LLM provider configuration. **Use Prompt Input** `boolean` (default: false) When enabled, allows the prompt to be provided via an input port instead of being set in the settings. **Prompt** `string` The analysis prompt to use when "Use Prompt Input" is disabled. Describe the analysis you would like to perform on the table. The AI will generate the code for you. ## Requirements * An LLM provider must be configured in the workflow context * A code interpreter endpoint must be set in the settings (Azure Code Interpreter) ## Error Handling The block will retry failed attempts up to 3 times with exponential backoff when encountering errors: * Retries occur between 500ms and 5000ms apart * Maximum of 3 retries before failing * Error details are provided in the trace logs Common errors include: * Missing or invalid input table * Failed code generation from AI * Runtime errors in generated analysis code * Missing configuration for LLM provider or code interpreter > [!WARNING] > > Always validate the output of the Analyze Table block, especially when working with critical data or making important decisions based on the results. ## Example Usage 1. Add an Analyze Table block to your flow 2. Connect your input table to the `Table` input 3. Either: * Enable "Use Prompt Input" and connect a prompt via the input port * Disable "Use Prompt Input" and enter your analysis prompt in settings 4. Select your desired AI model 5. Run the flow to get the analyzed table output ## FAQ > [accordion] What types of analysis can the Analyze Table block perform? > > The block can perform a wide range of operations using pandas, including: aggregations, filtering, sorting, pivoting, calculating summary statistics, and applying complex transformations. The capabilities are largely determined by the AI model's ability to generate appropriate pandas code. > [accordion] How does the block handle date-time data? > > The block automatically handles messy date-time formats in the input data, converting them to appropriate pandas datetime objects for analysis. > [accordion] How is the analysis performed securely? > > The analysis code is executed in an isolated Azure Code Interpreter environment. The data is processed securely within this environment and only the results are returned. ## See Also * [AI Filter Block](/block-reference/ai/ai-filter) * [Ask AI Block](/block-reference/ai/ai) * [Table Block](/block-reference/loaders/read-table) # Assemble Message Source: https://docs.odella.ai/block-reference/ai/assemble-message Assembles a single chat message from multiple parts. Parts can be text, images, audio, or files. ## Assemble Message Assembles a single chat message from multiple parts. Parts can be text, images, audio, or files. Not every model supports all modalities, so ensure that the downstream model supports the parts you include. ## Block metadata | Field | Value | | - | - | | Block ID | `assembleMessage` | | Display name | Assemble Message | | Group | AI | # Categorizer Source: https://docs.odella.ai/block-reference/ai/categorizer Classifies messages into predefined categories using an AI model. ## Categorizer Classifies messages into predefined categories using an AI model. Each category has a title and description that defines what types of messages belong to it. The LLM will evaluate the messages against each category's criteria and classify accordingly. ## Block metadata | Field | Value | | - | - | | Block ID | `categorizer` | | Display name | Categorizer | | Group | AI | # Create Chart Block Source: https://docs.odella.ai/block-reference/ai/create-chart Generate data visualizations from tabular data using AI-powered natural language prompts ## Overview The Create Chart Block leverages AI capabilities to generate data visualizations from tabular data based on natural language prompts. By providing a table of data and a descriptive prompt, you can instruct the AI to create various types of charts, graphs, and other visual representations of your data. ![Create Chart Screenshot (Light Mode)](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/create_chart_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=977d280cf3f44a9bd25751e92956ffd7) ## Inputs **Table** `table` *required* The input table containing the data to be visualized. Should be an array of objects, where each object represents a row in the table. **Prompt** `string` *required* A natural language prompt describing the desired chart or visualization. This input is only available if "Use Prompt Input" is enabled in settings. The prompt guides the AI in generating the appropriate code for creating the chart. ## Outputs **Output** `image` The resulting chart as a PNG image. Can be used directly in image tags or saved as an image file. **Duration** `number` The time in milliseconds that the block took to execute. ## Editor Settings **AI Model** `string` (default: default) The specific model to use for generating the chart code. Available models are dynamically populated based on the LLM provider configuration. Uses a custom LLM dropdown element. **Use Prompt Input** `boolean` (default: false) When enabled, allows the prompt to be provided via an input port instead of being set in the settings. **Prompt** `string` The prompt to use when "Use Prompt Input" is disabled. Describe the chart you would like to create given the input table. The AI will generate the code for you. ## Error Handling The block will retry failed attempts up to 3 times with exponential backoff: * Minimum retry delay: 500ms * Maximum retry delay: 5000ms * Retry factor: 2.5x * Includes randomization Error messages will be logged and the block will show: * Code execution errors from the interpreter * Missing configuration errors * Response parsing errors ## Notes * Uses seaborn library for chart generation * Automatically handles date-time data formatting * Optimizes charts for clarity and readability * Includes proper axis labels, legends, and titles * Limited to 2048 tokens for model responses ## Example Usage 1. Connect your input table to the Table input 2. Enable "Use Prompt Input" if you want to provide the prompt dynamically 3. Write a descriptive prompt like "Create a bar chart showing sales by month" 4. Select your desired AI model 5. The block will generate a PNG chart based on your specifications ## See Also * [Analyze Table Block](/block-reference/ai/analyze-table) * [AI Filter Block](/block-reference/ai/ai-filter) * [Table Block](/block-reference/loaders/read-table) # Extract Data Block Source: https://docs.odella.ai/block-reference/ai/extract-data Leverage AI to extract structured data from unstructured text based on a flexible schema ## Overview The Extract Data Block uses AI capabilities to extract structured data from unstructured text input. By defining a flexible schema, you can specify which fields to extract, their data types, and provide detailed descriptions to guide the AI model in accurately extracting the desired information. ![Extract Data Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/extract_data_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=d711320d59edf5fc318cbcc25bdb018e) ## Inputs **systemPrompt** `string` The system prompt to send to the model. Optional. Used to provide high-level guidance to the AI model. **context** `string` *required* The context to extract the specified schema(s) from. Required. ## Outputs **all** `object[]` An array of objects containing all extracted data, structured according to the defined schema. **\[schemaField]** `any[]` For each field defined in the schema, an array containing the extracted values for that field. The type will match the schema field type. **duration** `number` The time in milliseconds that the block took to execute. ## Editor Settings **AI Model** `string` (default: gpt-3.5-turbo) The AI model to use for data extraction. Available models are dynamically populated based on the LLM provider configuration. **Schema** `object` The schema defining what data to extract. Specify field names, types, and descriptions to guide the extraction. ### Parameters **Temperature** `number` (default: 0) What sampling temperature to use. Higher values like 0.8 make output more random, while lower values like 0.2 make it more focused and deterministic. **Top P** `number` (default: 1) Alternative to temperature sampling. Only tokens comprising the top P probability mass are considered. For example, 0.1 means only tokens in the top 10% probability are considered. **Use Top P** `boolean` (default: false) Whether to use top p sampling instead of temperature sampling. **Max Tokens** `number` (default: 8192) The maximum number of tokens to generate in the completion. **Stop** `string` A sequence where the API will stop generating further tokens. **Presence Penalty** `number` Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. **Frequency Penalty** `number` Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. **Seed** `number` If specified, OpenAI will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. ### Advanced **Cache Responses** `boolean` (default: false) If enabled, requests with the same parameters and messages will be cached for immediate responses without an API call. **Use for subgraph partial output** `boolean` If enabled, streaming responses from this node will be shown in Subgraph nodes that call this graph. **Error on invalid output(s)** `boolean` If enabled, the node will error if any of the results returned do not conform to the schema. ## Error Handling The block will retry failed attempts up to 3 times with exponential backoff: * Minimum retry delay: 500ms * Maximum retry delay: 5000ms * Retry factor: 2.5x * Includes randomization * Maximum retry time: 5 minutes Error messages will be logged for: * Invalid schema validation * Missing LLM provider configuration * API errors and timeouts * Aborted requests > [!WARNING] > > Always validate the output of the Extract Data block, especially when working with critical data or making important decisions based on the extracted information. ## Example: Extracting Contact Information 1. Add an Extract Data block to your flow. 2. Connect your input text (e.g., an email or document) to the `Context` input. 3. Define a schema in the block settings, for example: ```json theme={"system"} { "name": {"type": "string", "description": "Full name of the person"}, "email": {"type": "string", "description": "Email address"}, "phone": {"type": "string", "description": "Phone number"}, "company": {"type": "string", "description": "Company name"} } ``` 4. Select your desired provider and model. 5. Run your flow. The block will output an object with the extracted information. ## See Also * [Analyze Table Block](/block-reference/ai/analyze-table) * [AI Filter Block](/block-reference/ai/ai-filter) * [Ask AI Block](/block-reference/ai/ai) # Generate Questions Block Source: https://docs.odella.ai/block-reference/ai/generate-questions Leverage AI to generate multiple questions based on a given prompt and value ## Overview The Generate Questions Block uses AI capabilities to create a specified number of questions based on an input prompt and value. This block is particularly useful for expanding research activities, breaking down complex topics into manageable parts, or creating comprehensive question sets for various purposes. ![Generate Questions Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/generate_questions_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=9e6330773a11ccfc26d48f824a591162) ## Inputs **systemPrompt** `string` The system prompt to send to the model. Optional. Used to provide high-level guidance to the AI model. **context** `string | chat-message | chat-message[] | array` The context to generate related questions from. Optional. Can be a string, chat message, array of chat messages, or other array types that can be coerced to strings. **instruction** `string` Available when using the "Blank" template. The instruction for generating questions. **question** `string` Available when using the "Research Questions" template. The question to generate research queries for. ## Outputs **questions** `string[]` An array of generated questions based on the input context and prompts. **duration** `number` The time in milliseconds that the block took to execute. ## Editor Settings **AI Model** `string` (default: default) The AI model to use for generating questions. Available models are dynamically populated based on the LLM provider configuration. Only models supporting function calls are shown. **From Template** `string` (default: Research Questions) Choose from predefined templates: * Blank: A simple template with custom instruction * Research Questions: Template for generating Google search queries **Number of Questions** `number` (default: 3) The number of questions to generate. Must be between 1 and 10. **Temperature** `number` (default: 0.5) Controls randomness in the output. Lower values make the output more focused and deterministic. **Prompt Text** `code` The prompt template text. Supports interpolation using \{\{variable}} syntax. Uses custom prompt interpolation highlighting. ## Error Handling The block will retry failed attempts up to 3 times with exponential backoff: * Minimum retry delay: 500ms * Maximum retry delay: 5000ms * Retry factor: 2.5x * Includes randomization * Maximum retry time: 5 minutes Error messages will be logged for: * Invalid number of questions (must be 1-10) * Empty or invalid responses * API rate limits (will retry) * API timeouts (will retry) * Other API errors > [!WARNING] > > Always review the generated questions for relevance and appropriateness, especially when using them for critical research or decision-making processes. ## FAQ > [accordion] How diverse are the generated questions? > > The diversity of questions depends on the input prompt, the provided value, and the AI model's capabilities. You can encourage more diverse questions by adjusting the temperature setting or by providing a more open-ended prompt. > [accordion] Can I generate questions in languages other than English? > > Yes, the Generate Questions block can generate questions in various languages. Simply provide the prompt and value in your desired language, and ensure the chosen AI model supports that language. > [accordion] How can I ensure the generated questions are relevant to my specific needs? > > To improve relevance, provide a clear and specific prompt that outlines the type of questions you're looking for. You can also experiment with different AI models and settings to find the best combination for your use case. ## See Also * [Ask AI Block](/block-reference/ai/ai) * [Analyze Table Block](/block-reference/ai/analyze-table) * [AI Filter Block](/block-reference/ai/ai-filter) # Research AI Block Source: https://docs.odella.ai/block-reference/ai/research Leverage AI to conduct intelligent research across public or private document stores ## Overview The Research AI Block utilizes advanced AI capabilities to perform intelligent searches and research across multiple document stores. This block can search through public databases, private collections, or a combination of both, providing powerful and flexible research capabilities for various use cases. ![Research AI Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/research_ai_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=520a1ace4e54343b5e282409e0b89e18) ## Inputs **Question** `string | chat-message | chat-message[] | string[]` *required* The question or questions to research. Required. This guides the AI in conducting the research. Can be provided as a string, chat message, array of chat messages, or array of strings. ## Outputs **Question** `string` The question that was researched. **Answer** `string` The answer to the research question. **Sources** `object[]` The cited sources supporting the response. **All** `string` A combined output containing the question, answer and discovered sources. **Duration** `number` The time in milliseconds that the block took to execute. ## Editor Settings **Document Store** `string[]` Select up to 5 document stores to search over. The available options are dynamically populated based on your configured document stores. **Mode** `string` (default: OR) How to combine the search results across multiple document stores: * OR: Routes to the most relevant store * AND: Combines results from all stores > [!NOTE] > > A DocumentStoreProvider must be configured to use this block. ## Error Handling The block will retry failed attempts up to 3 times with exponential backoff: * Minimum retry delay: 500ms * Maximum retry delay: 5000ms * Retry factor: 2.5x * Includes randomization * Maximum retry time: 5 minutes Error messages will be logged for: * No document stores selected * Invalid document store IDs * Missing DocumentStoreProvider configuration * API rate limits (will retry) * API timeouts (will retry) * Other API errors > [!WARNING] > > Always verify the accuracy and relevance of the research results, especially when using them for critical decision-making or legal purposes. ## FAQ > [accordion] How does the Research AI block handle conflicting information from different sources? > > The AI attempts to reconcile conflicting information by analyzing the credibility of sources, considering the recency of information, and providing context for discrepancies. In cases of significant conflicts, the AI may highlight these differences in the research results. > [accordion] Can I use the Research AI block with my own private document stores? > > Yes, the Research AI block can be configured to work with both public and private document stores. Ensure that your private stores are properly set up and accessible within your platform environment. > [accordion] How does the 'OR' search mode differ from the 'AND' mode? > > In 'OR' mode, the AI intelligently selects the most appropriate document store to search based on the query, potentially improving speed and relevance. In 'AND' mode, the AI searches all specified stores and combines the results, providing a more comprehensive but potentially slower search. ## See Also * [Ask AI Block](/block-reference/ai/ai) * [AI Filter Block](/block-reference/ai/ai-filter) * [Analyze Table Block](/block-reference/ai/analyze-table) # All Blocks Source: https://docs.odella.ai/block-reference/all-blocks A comprehensive list of all built-in workflow blocks in Odella This page lists every built-in workflow block registered in `packages/workflow`. Each page path uses the block ID converted to kebab-case. ## AI > [card] [Ask AI](/block-reference/ai/ai) > > Makes a call to an LLM chat model. > [card] [AI Filter](/block-reference/ai/ai-filter) > > Applys a AI call to each item in a list of values. > [card] [AI Scorer](/block-reference/ai/ai-scorer) > > Scores each message in a chat-message\[] array using an AI model. Each message is scored between 0 and 1 based on the provided scoring criteria. > [card] [Analyze Image](/block-reference/ai/analyze-image) > > Analyzes the contents of an image. If the image is a chart, it will provide an analysis of any trends or insights. > [card] [Analyze Table](/block-reference/ai/analyze-table) > > This node allows you to analyze a table using AI. You can describe the analysis you would like to perform on the table and the AI will generate the code for you. > [card] [Assemble Message](/block-reference/ai/assemble-message) > > Assembles a single chat message from multiple parts. Parts can be text, images, audio, or files. Not every model supports all modalities, so ensure that the downstream model supports the parts you include. > [card] [Categorizer](/block-reference/ai/categorizer) > > Classifies messages into predefined categories using an AI model. Each category has a title and description that defines what types of messages belong to it. The LLM will evaluate the messages against each category's criteria and classify accordingly. > [card] [Create Chart](/block-reference/ai/create-chart) > > This node allows you to create a chart image using AI. You can describe the chart you would like to create using the input table and the AI will generate the code to create the graph for you. > [card] [Extract Data](/block-reference/ai/extract-data) > > Applies an LLM to extract data from the supplied context, based on the schema. > [card] [Generate Questions](/block-reference/ai/generate-questions) > > Generates a number of questions given the context and supplied instructions. > [card] [Research AI](/block-reference/ai/research) > > Researches sources that answer your query using our Research AI. It can search any of our public stores or your private document stores. ## Input/Output > [card] [Input](/block-reference/io/graph-input) > > Defines an input for the flow which can be passed in when the flow is called, or defines one of the input ports when the flow is a subflow. > [card] [Output](/block-reference/io/graph-output) > > Each instance of this node represents an individual output of the flow. The value passed into this node becomes part of the overall output of the flow. > [card] [User Input](/block-reference/io/user-input) > > Prompts the user for input during the execution of the flow. The user's response becomes the output of this node. > [card] [Upload File](/block-reference/io/upload-file) > > User input node for file uploads. Outputs the file as a file object or list of file objects for further processing. > [card] [Confirm](/block-reference/io/confirm) > > Prompts the user for a confirmation to continue. Outputs the value if the user confirms. ## Data > [card] [Array](/block-reference/data/array) > > Creates an array from the input values. By default, flattens any arrays which are inputs into a single array. Can be configured to keep the arrays separate, or deeply flatten arrays. Useful for both creating and merging arrays. The number of inputs is dynamic based on the number of connections. > [card] [Bool](/block-reference/data/boolean) > > Outputs a boolean constant, or converts an input value into a boolean. > [card] [Date](/block-reference/data/date) > > A date picker node to select a date. > [card] [File](/block-reference/data/file) > > Provides an static file to use. > [card] [Image](/block-reference/data/image) > > Defines a static image for use with other nodes. Can convert a binary type into an image type. > [card] [Number](/block-reference/data/number) > > Outputs a number constant, or converts an input value into a number. Can be configured to round the number to a certain number of decimal places. > [card] [Object](/block-reference/data/object) > > Creates an object from input values and a JSON template, escaping the input values and inserting them into the template. Use double-quotes around the input values to escape them. String values are automatically escaped. Useful for creating objects from multiple inputs. > [card] [Random Number](/block-reference/data/random-number) > > Outputs a random number between the configured min and max values. Can be configured to output only integers, and whether the max value is inclusive or exclusive. > [card] [Text](/block-reference/data/text) > > Outputs a string of text. It can also interpolate values using . The inputs are dynamic based on the interpolation tags. ## Loaders > [card] [Read Binary](/block-reference/loaders/read-binary) > > Reads the contents of the specified file and outputs it as binary. > [card] [Read Images](/block-reference/loaders/read-images) > > Reads the contents of the specified file and outputs each page as an image. > [card] [Read Table](/block-reference/loaders/read-table) > > Reads and parses a CSV file into a table data type. > [card] [Read Text](/block-reference/loaders/read-text) > > Reads the contents of the specified file and outputs it as a string. > [card] [Transcribe Audio](/block-reference/loaders/transcribe-audio) > > Transcribes speech from an audio file or audio data using an LLM. Accepts either audio data type or file data type as input. ## Logic > [card] [Abort Flow](/block-reference/logic/abort) > > Aborts the execution of the entire flow immediately. Can either "successfully" abort the flow (early-exit), or "error" abort the graph. > [card] [Checklist](/block-reference/logic/checklist) > > Evaluates messages against a list of conditions. All conditions must be satisfied for the messages to be routed to the success output. If any condition fails, the messages are routed to the failure output. > [card] [Coalesce](/block-reference/logic/coalesce) > > Takes in any number of inputs and outputs the first value that exists. Useful for consolidating branches after a Match node. This node can also "consume" the "Not Ran" value. > [card] [Compare](/block-reference/logic/compare) > > Compares two values using the configured operator and outputs the result. If the data types of the values do not match, then the B value is converted to the type of the A value. > [card] [Delay](/block-reference/logic/delay) > > Delays the execution and then passes the input value to the output without any modifications. > [card] [If/Else](/block-reference/logic/if-else) > > Takes in three inputs: a condition, a true value, and a false value. If the condition is truthy, the true value is passed through the output port. If the condition is not truthy, the false value is passed through the output port. This node can "consume" a `Not Ran` to continue a graph from that point. > [card] [Match](/block-reference/logic/match) > > Any number of regular expressions can be configured, each corresponding to an output of the node. The output port of the first matching regex will be ran, and all other output ports will not be ran. > [card] [Passthrough](/block-reference/logic/passthrough) > > Simply passes the input value to the output without any modifications. > [card] [Race Inputs](/block-reference/logic/race-inputs) > > Takes in multiple inputs and outputs the value of the first one to finish. The other inputs are cancelled. > [card] [Route](/block-reference/logic/route) > > Routes messages to different outputs based on LLM evaluation of multiple conditions. Each option has a prompt that describes when messages should be routed to that output. The LLM will evaluate the messages against each option's criteria and route accordingly. > [card] [Switch](/block-reference/logic/switch) > > Takes in a condition and a value. If the condition is truthy, the value is passed through the True port, and the False port is not ran. If the condition is falsy, the value is passed through the False port, and the True port is not ran. ## Modifiers > [card] [Chunk](/block-reference/modifiers/chunk) > > Splits the input text into an array of chunks based on an approximate GPT token count per chunk. The "overlap" setting allows you to partially overlap the chunks for redundancy. Can also be used for string length truncation by only using the `First` or `Last` outputs of the node. > [card] [Convert File](/block-reference/modifiers/convert-file) > > Converts a file between PDF and DOCX formats. > [card] [Convert Format](/block-reference/modifiers/convert-format) > > Converts data to a text format. - **JSON** — converts the input to a JSON string - **YAML** — converts the input to a YAML string > [card] [Destructure](/block-reference/modifiers/destructure) > > Destructures the input value by extracting values at the specified paths. The paths use JSONPath notation to navigate through the value. > [card] [Extract from Text](/block-reference/modifiers/extract-from-text) > > Extracts structured data from text. Supports multiple formats: - **JSON** — finds and parses the first JSON object or array - **YAML** — finds and parses YAML by a root property name - **Code Blocks** — extracts fenced code blocks from markdown - **Tables** — extracts tables from markdown - **Pattern** — extracts text using a regular expression > [card] [Filter](/block-reference/modifiers/filter) > > Takes in both an array of values, and an array of booleans of the same length, and filters the array where the corresponding boolean is true. > [card] [Flatten](/block-reference/modifiers/flatten) > > Takes in a nested array and flattens the array to a single level. > [card] [Get Value](/block-reference/modifiers/get-value) > > Gets a value from an object using a path expression. Use JSONPath notation to navigate through the object, for example: - `$.name` — get the "name" field - `$.items[0]` — get the first item - `$.users[*].email` — get all user emails > [card] [Hash](/block-reference/modifiers/hash) > > Computes a hash of the input value using the configured hash function. > [card] [Index](/block-reference/modifiers/index) > > Takes in both an array of values, and an index value or an array of indicies, and selects the values at the given indicies. > [card] [Join](/block-reference/modifiers/join) > > Takes an array of strings, and joins them using the configured delimiter. Defaults to a newline. > [card] [Merge PDFs](/block-reference/modifiers/merge-pdf) > > Merges multiple PDF files into a single PDF document. The files will be merged in the order they are provided. Supports up to 10 input ports, each accepting either a single file or an array of files. > [card] [Pop](/block-reference/modifiers/pop) > > Pops the last value off the input array and outputs the new array and the popped value. Can also be used to just extract the last value from an array. > [card] [Shuffle](/block-reference/modifiers/shuffle) > > Shuffles the input array. Outputs the shuffled array. > [card] [Slice](/block-reference/modifiers/slice) > > Slices an array from the start index for the count number of elements. Useful for extracting a portion of an array. ## Draft > [card] [AI-Fill PDF](/block-reference/draft/ai-fill-pdf) > > Fills a PDF form using AI. Extracts form fields from a PDF and uses a vision-language model to populate them based on the provided context. > [card] [Draft](/block-reference/draft/draft) > > A versatile drafting node that has a selection of pre-configured drafting templates for common use cases. > [card] [Populate Template](/block-reference/draft/populate-template) > > Populates a template document using AI-extracted field values from the input messages. Fields that cannot be determined from the messages are left blank. > [card] [Table To File](/block-reference/draft/table-to-file) > > Converts a table to a file based on the specified formats. > [card] [Text To File](/block-reference/draft/text-to-file) > > Converts text to files based on the specified formats. ## Advanced > [card] [Code](/block-reference/advanced/code) > > Executes a piece of Python code. See the Documentation for more information on how to write code for the Code Node. > [card] [Comment](/block-reference/advanced/comment) > > A comment node is a node that does nothing. It is useful for adding notes to a graph. > [card] [HTTP Call](/block-reference/advanced/http-call) > > Makes an HTTP call to the specified URL with the given method, headers, and body. > [card] [Raise Event](/block-reference/advanced/raise-event) > > Raises an event that the host workflow or a 'Wait For Event' node can listen for. > [card] [Subflow](/block-reference/advanced/sub-graph) > > Executes another flow. Inputs and outputs are defined by Flow Input and Flow Output nodes within the subflow. > [card] [Wait For Event](/block-reference/advanced/wait-for-event) > > Waits for a specific event to be raised by a 'Raise Event' node or the host workflow. The event name can be configured. ## Agents > [card] [Agent](/block-reference/agents/agent) > > Executes a task by intelligently selecting and using available tools. The agent will analyze the task, break it down into steps, and execute the appropriate tools to accomplish the goal. > [card] [Template Agent](/block-reference/agents/template-agent) > > Intelligently populates templates by gathering missing information using tools or by asking users. Features flexible tool-based operations, batch template population, and intelligent context gathering. ## Documents > [card] [Add File to Document Store](/block-reference/documents/add-file-to-document-store) > > Adds a file to the selected document store. > [card] [Analyze Documents](/block-reference/documents/analyze-documents) > > Analyzes documents in a document store using aggregations like count, sum, and average. Describe your analysis in plain English — for example, "count contracts by jurisdiction" or "total settlement amount by year". > [card] [Find Document](/block-reference/documents/find-document) > > Finds a single document in a document store by matching metadata fields. Add match criteria to create input ports — wire values from upstream nodes to look up documents by case number, reference ID, client name, etc. > [card] [Search Documents](/block-reference/documents/search-documents) > > Searches document stores to find relevant documents. Supports semantic search (vector similarity), structured filtering (metadata queries), or hybrid mode that combines both and re-ranks results. Can search across multiple stores simultaneously. > [card] [New Document Added](/block-reference/documents/trigger-document-store-new-record) > > Triggers when a new document finishes processing in a document store. Outputs the document metadata including title, type, extracted metadata, and content URL. ## Triggers > [card] [Schedule](/block-reference/triggers/trigger-schedule) > > Run workflow on a schedule using cron expressions. Configure the cron expression and timezone to schedule when the workflow should execute. # Array Block Source: https://docs.odella.ai/block-reference/data/array Construct an array from one or more inputs of any type, with options for flattening and merging arrays ## Overview The Array Block is used to construct an array from one or more inputs of any type. It can also be used to merge multiple arrays into a single array using the `Flatten` setting. By default, inputs will be flattened, so if any of the inputs are arrays themselves, they will be merged into the output array. This behavior can be disabled by unchecking the `Flatten` setting. ![Array Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/array_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=327a4991ee0dbb1b50ae103abd3b65b3) ## Inputs **Input \[i]** `any` An input to create the array from. If an array, will be flattened if the "Flatten" option is enabled. The number of inputs is dynamic based on how many connections there are. ## Outputs **Output** `any[]` The array created from the inputs. **Indices** `number[]` The indices of the array. I.e. \[0, 1, 2, 3, etc]. Useful for zipping with the output array to get the indexes. **Length** `number` The length of the output array. ## Editor Settings **Flatten** `boolean` (default: true) If enabled, array inputs will be flattened before joining. **Deep** `boolean` (default: false) If enabled, array inputs will be flattened recursively. ## Example: Creating an Array from Multiple Inputs 1. Add an Array Block to your flow. 2. Connect three Text blocks with values `"Hello"`, `"World"`, and `"!"` to `Input 1`, `Input 2`, and `Input 3` of the Array Block respectively. The `Output` of the Array Block will be `["Hello", "World", "!"]`. ## Example: Creating an Array from Array Inputs 1. Add an Array Block to your flow. 2. Connect two Array blocks with values `["One", "Two"]` and `["Three", "Four"]` to `Input 1` and `Input 2` of the Array Block. 3. Enable the `Flatten` setting. The `Output` of the Array Block will be `["One", "Two", "Three", "Four"]`. ## Example: Using the Indices Output 1. Add an Array Block with value `["Apple", "Banana", "Cherry"]`. 2. Add a Text Block with text `"[{{index}}] - {{fruit}}"`. 3. Connect the `Output` of the Array Block to the `Fruit` input of the Text Block. 4. Connect the `Indices` output of the Array Block to the `Index` input of the Text Block. 5. Enable the `Split` setting on the Text Block. The `Output` of the Text Block will be `["[0] - Apple", "[1] - Banana", "[2] - Cherry"]`. ## Flattening Arrays The `Flatten` setting treats each element of an array input as a separate element to be added to the main array. The `Deep` setting recursively flattens all array inputs. > [!WARNING] > > With flatten disabled, you can get arrays of arrays. These are not well supported in Odella and you may have to use a [Code Block](/block-reference/advanced/code) to work with them. ## Error Handling If an input is missing or null, the Array Block will simply ignore it during the array creation process. ## FAQ > [accordion] What happens if I connect a non-array block to the Array Block? > > The Array Block will treat it as a single element to be added to the array. > [accordion] Can I connect an Array Block to another Array Block? > > Yes. If `Flatten` is enabled, each element of the input array will be treated as a separate element. If disabled, the input array will be added as a single element. > [accordion] What happens if an input is missing or null? > > The Array Block will simply ignore it during the array creation process. ## See Also * [Code Block](/block-reference/advanced/code) * [Text Block](/block-reference/data/text) * [Number Block](/block-reference/data/number) * [Get Value Block](/block-reference/modifiers/get-value) * [Pop Block](/block-reference/modifiers/pop) # Bool Block Source: https://docs.odella.ai/block-reference/data/boolean Output a boolean constant or convert an input value into a boolean ## Overview The Bool Block is used to output a boolean constant or convert an input value into a boolean. It's particularly useful when you need to create a boolean value for use in other blocks, such as the [If Block](/block-reference/logic/if-else) or [If/Else Block](/block-reference/logic/if-else). ![Bool Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/bool_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=7e5b0cbe0eb7b4243005c844b1946875) ## Inputs **Input** `any` The value to be converted to a boolean. This input is only available if "Use Value Input" is enabled. ## Outputs **Value** `boolean` The boolean value. If "Use Value Input" is enabled, this will be the input value converted to a boolean. Otherwise, outputs the constant value specified in settings. ## Editor Settings **Value** `boolean` (default: false) The constant boolean value to output. This setting is only available if "Use Value Input" is disabled. **Use Value Input** `boolean` (default: false) If enabled, the block will convert an input value to a boolean. If disabled, the block will output the constant boolean value specified in the Value setting. **Width** `number` (default: 130) The width of the block in pixels. **Hidden** `boolean` (default: true) Whether the block is hidden in the block menu. ## Conversion Rules The Bool Block follows JavaScript's rules for truthy and falsy values when converting input values to booleans. If no input is connected when "Use Value Input" is enabled, it will fall back to using the Value setting. ## Example: Using a Constant Boolean Value 1. Add a Bool Block to your flow. 2. Set the `Value` setting to `true`. 3. Run the flow. The `Value` output of the Bool Block will be `true`. ## Example: Converting an Input to a Boolean 1. Add a Bool Block to your flow. 2. Enable the `Use Value Input` setting. 3. Add a [Text Block](/block-reference/data/text) to your flow and set the text to `"Hello"`. 4. Connect the output of the Text Block to the `Input` of the Bool Block. 5. Run the flow. The `Value` output of the Bool Block will be `true`, because the string `"Hello"` is a truthy value in JavaScript. ## Error Handling The Bool Block cannot error under normal circumstances. If "Use Value Input" is enabled and no input is connected, the block will fall back to using the Value setting. ## FAQ > [accordion] What values are considered truthy and falsy in JavaScript? > > The following values are considered falsy: > > * `false` > * `0` > * `''` (empty string) > * `null` > * `undefined` > * `NaN` > > All other values are considered truthy. > [accordion] What happens if no input is connected when Use Value Input is enabled? > > The block will fall back to using the Value setting specified in the editor settings. ## See Also * [If Block](/block-reference/logic/if-else) * [Match Block](/block-reference/logic/match) * [Text Block](/block-reference/data/text) * [Array Block](/block-reference/data/array) * [Number Block](/block-reference/data/number) # Date Block Source: https://docs.odella.ai/block-reference/data/date Select a date value for use in your workflow ## Overview The Date Block provides a date picker to select a specific date value that can be used in your workflow. The selected date is output in ISO string format. ![Date Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/date_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=d97f6668e0e8270e4f3be2535f73d1ca) ## Inputs This block does not have any inputs. ## Outputs **data** `datetime` The selected date value in ISO string format. ## Editor Settings **Date** `datePicker` The date value to output. Uses a date picker interface to select a date. **Width** `number` (default: 300) The width of the block in pixels. **Hidden** `boolean` (default: true) Whether the block is hidden in the block menu. ## Example: Using a Date Block 1. Add a Date Block to your flow 2. Use the date picker to select your desired date 3. Connect the `data` output to another block that accepts datetime values 4. Run the flow. The selected date will be passed to the connected block. ## Error Handling The Date Block will throw an error if: * The selected date is invalid * The date cannot be converted to ISO string format > [!WARNING] > > Ensure the selected date is valid to avoid errors in blocks consuming the date value. ## FAQ > [accordion] What format is the date output in? > > The Date Block outputs dates in ISO string format (e.g. "2024-01-01T00:00:00.000Z"). > [accordion] Can I input dates programmatically? > > No, the Date Block only allows date selection through its date picker interface. For programmatic date handling, consider using other blocks that accept date inputs. ## See Also * [Number Block](/block-reference/data/number) * [Text Block](/block-reference/data/text) * [Bool Block](/block-reference/data/boolean) # File Block Source: https://docs.odella.ai/block-reference/data/file Upload and use file data in your workflow ## Overview The File Block allows you to upload and use file data in your workflow. It supports various file types including PDF, Microsoft Word documents (.doc, .docx), and CSV files. This block is particularly useful when you need to work with external data or documents within your flow. ![File Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/file_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=a2ac486f05ee2ea0457e0ddfcee9cc40) ## Inputs This block does not have any inputs. ## Outputs **data** `file` The uploaded file data that can be used by other blocks in the workflow. ## Editor Settings **File** `file` Upload a file from your local system. Supported file types include: * PDF files (.pdf) * Microsoft Word documents (.doc, .docx) * CSV files (.csv) **Width** `number` (default: 300) The width of the block in pixels. **Hidden** `boolean` (default: true) Whether the block is hidden in the block menu. ## Example: Using a File Block with PDF Analysis 1. Add a File Block to your flow. 2. In the block's settings, click "Upload File" and select a PDF document from your local file system. 3. Connect the `data` output of the File Block to an AI block capable of analyzing PDF content, such as a custom PDF Analysis block. 4. Run your flow. The PDF content will be processed by the AI block for further analysis or extraction. ## Error Handling The File Block will throw an error if: * No file data is provided * The file provider is not available * The file upload fails or cannot be accessed > [!WARNING] > > Ensure that you have the necessary permissions to use and process the files you upload, especially when working with sensitive or copyrighted material. ## FAQ > [accordion] What file types are supported? > > The File Block supports: > > * PDF files (.pdf) > * Microsoft Word documents (.doc, .docx) > * CSV files (.csv) > [accordion] Can I use the File Block to upload multiple files at once? > > No, the File Block is designed to handle one file at a time. If you need to work with multiple files, you can use multiple File Blocks in your workflow. > [accordion] How can I process the uploaded file data? > > The file data output from the File Block can be connected to other blocks in your workflow that are capable of processing the specific file type. For example, you might connect a PDF file to a PDF text extraction block, or a CSV file to a data analysis block. ## See Also * [Text Block](/block-reference/data/text) * [Table Block](/block-reference/loaders/read-table) * [Analyze Table Block](/block-reference/ai/analyze-table) # Image Block Source: https://docs.odella.ai/block-reference/data/image Define a static image for use with other nodes. Can convert a binary type into an image type. ## Overview The Image Block is used to define a static image for use with other blocks. It supports PNG, JPEG, and JPG formats and allows you to select an image file from your local system. ![Image Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/image_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=df58dcfec8fd3627e4e3a2fbe980c147) ## Inputs This block does not have any inputs. ## Outputs **image** `image` The image that was loaded or converted from the input data. ## Editor Settings **Image** `file` The image file to be used. Click to select an image from your local file system. **Width** `number` (default: 250) The width of the block in pixels. **Hidden** `boolean` (default: true) Whether the block is hidden in the block menu. ## Example: Using a Static Image 1. Add an Image Block to your flow 2. In the block's settings, click to select an image file from your local file system 3. Connect the `image` output to another block that accepts image inputs 4. Run your flow. The selected image will be passed to the connected block. ![Image Block Example](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/image-block-example.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=f2abf0ab481ac8f1b976a98a5ad1720c) ## Error Handling The Image Block will throw an error if: * No image data is provided * The file provider is not available * The image file cannot be accessed or loaded > [!WARNING] > > Ensure that you have selected a valid image file and have the necessary permissions to access it. ## FAQ > [accordion] What image formats are supported? > > The Image Block supports: > > * PNG (.png) > * JPEG/JPG (.jpeg, .jpg) > [accordion] Can I use the Image Block to convert binary data to an image? > > Yes, the Image Block can convert binary data into an image type that can be used by other blocks in your workflow. > [accordion] What happens if no image is selected? > > The block will throw an error if no image data is provided. You must select an image file for the block to function properly. ## See Also * [File Block](/block-reference/data/file) * [Workflow data types](/workflow/data-types) * [Text Block](/block-reference/data/text) # Number Block Source: https://docs.odella.ai/block-reference/data/number Output a constant number value or convert an input value into a number ## Overview The Number Block is used to output a constant number value or convert an input value into a number. It can also be configured to round the number to a specified number of decimal places. ![Number Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/number_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=c89c00cedf62b7c48871d0c53fe439d8) ## Inputs **input** `any` The value to be converted into a number. This input is only available if the "Use Value Input" setting is enabled. If the input cannot be converted to a number, the block will use the Value setting instead. ## Outputs **value** `number` The output number value. This can either be a constant value or a converted input value. ## Editor Settings **value** `number` (default: 0) The constant number value to be outputted. This value is used when either: * The "Use Value Input" setting is disabled * The "Use Value Input" setting is enabled but no input is connected * The "Use Value Input" setting is enabled but the input cannot be converted to a number **useValueInput** `boolean` When enabled, shows an input port that accepts any value and attempts to convert it to a number. **round** `boolean` (default: false) When enabled, rounds the output number to the specified number of decimal places. **roundTo** `number` (default: 0) The number of decimal places to round to when the "Round" setting is enabled. ## Example: Output a constant number 1. Add a Number Block to your flow. 2. Set the `Value` to `123.456`. 3. Run the flow. The `value` output of the Number Block will be `123.456`. ![Number Block Example 1](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/number-block-example-01.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=94d35ddb2cd89874ca2f05bdaa97f0e0) ## Example: Convert a string to a number 1. Add a Text Block to your flow and set the text to `"123.456"`. 2. Add a Number Block and enable the `Use Value Input` setting. 3. Connect the Text Block to the `input` of the Number Block. 4. Run the flow. The `value` output of the Number Block will be `123.456`. ![Number Block Example 2](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/number-block-example-02.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=c9ac348d42cd22880f850e36b2ce6608) ## Example: Round a number 1. Add a Number Block to your flow. 2. Set the `Value` to `123.456`. 3. Enable the `Round` setting and set `Round To` to `2`. 4. Run the flow. The `value` output of the Number Block will be `123.46`. ![Number Block Example 3](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/number-block-example-03.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=1220a7d4047fa72be94cdfd13c1db80b) ## Error Handling The Number Block will not error under normal circumstances. If the input value cannot be converted to a number when "Use Value Input" is enabled, it will default to using the Value setting. ## FAQ > [accordion] Can I use the Number Block to convert a boolean to a number? > > Yes, you can use the Number Block to convert a boolean to a number. A `true` value will be converted to `1` and a `false` value will be converted to `0`. > [accordion] What happens if I connect a non-numeric value to the Input of the Number Block? > > The Number Block will attempt to convert the input value to a number. If the conversion is not possible, the block will default to using the Value setting. > [accordion] Can I use the Number Block to round a number to an integer? > > Yes, you can use the Number Block to round a number to an integer by enabling the `Round` setting and setting `Round To` to `0`. ## See Also * [Text Block](/block-reference/data/text) * [Bool Block](/block-reference/data/boolean) * [Compare Block](/block-reference/logic/compare) # Object Block Source: https://docs.odella.ai/block-reference/data/object Create an object from input values and a JSON template ## Overview The Object Block creates an object from input values and a JSON template. It automatically escapes input values and inserts them into the template, supporting any data type as input and outputting an object. ![Object Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/object_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=ec26012cc5bddfd397c020aa1d5f3f36) ## Inputs **(Dynamic)** `any` Input values to be inserted into the JSON template. Input names are dynamically generated from the JSON template based on values wrapped in double curly braces (e.g. `{{input}}`). Non-string inputs are automatically converted to strings. ## Outputs **output** `object | object[]` The object or array created from the input values and JSON template. The type will be `object[]` if the template defines an array, otherwise it will be `object`. ## Editor Settings **jsonTemplate** `code` (default: \{ "key": "\{\{input}}" }) The JSON template for creating the object. Input values are inserted into this template using double curly brace syntax (e.g. `{{input}}`). The template must be valid JSON. Values wrapped in quotes (e.g. `"{{input}}"`) will be treated as strings and escaped appropriately. Values without quotes will be inserted directly as JSON values. **width** `number` (default: 200) The width of the block in pixels. **hidden** `boolean` (default: true) Whether the block is hidden in the block menu. ## Example: Creating an object from multiple inputs 1. Add an Object Block and set the JSON Template to: ```json theme={"system"} { "name": "{{name}}", "age": {{age}}, "job": "{{job}}" } ``` 2. Add two Text Blocks with values "John Doe" and "Engineer". Connect to `name` and `job` inputs. 3. Add a Number Block with value 30. Connect to `age` input. 4. Run the flow. The Object Block output will be: ```json theme={"system"} { "name": "John Doe", "age": 30, "job": "Engineer" } ``` ![Object Block Example](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/object-block-example.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=5d7876b2f0d9377f6c511f01e5af471d) ## Error Handling The Object Block will error if: * The JSON Template is not a valid JSON string * The interpolated JSON string (after inserting input values) is not valid JSON ## FAQ > [accordion] Can I use the Object Block to create an array? > > Yes, set the JSON Template to a valid JSON array string: > > ```json theme={"system"} > ["{{value1}}", "{{value2}}", "{{value3}}"] > ``` > [accordion] How are input values escaped? > > Input values are automatically escaped based on whether they appear in quotes in the template: > > * Values in quotes (e.g. `"{{input}}"`) are escaped as strings using `JSON.stringify()` > * String values in quotes get a single `JSON.stringify()` > * Non-string values in quotes get a double `JSON.stringify()` to properly escape them > * Values without quotes are stringified directly as JSON values > [accordion] What happens to null or undefined input values? > > If an input value is null or undefined, it will be converted to `null` in the output JSON. ## See Also * [Array Block](/block-reference/data/array) * [Text Block](/block-reference/data/text) * [Get Value Block](/block-reference/modifiers/get-value) * [Code Block](/block-reference/advanced/code) # Random Number Source: https://docs.odella.ai/block-reference/data/random-number Outputs a random number between the configured min and max values. ## Random Number Outputs a random number between the configured min and max values. Can be configured to output only integers, and whether the max value is inclusive or exclusive. ## Block metadata | Field | Value | | - | - | | Block ID | `randomNumber` | | Display name | Random Number | | Group | Numbers | # Text Block Source: https://docs.odella.ai/block-reference/data/text Output a string of text with dynamic interpolation using {{tags}} ## Overview The Text Block outputs a string of text and can interpolate values using `{{tags}}` within the text. The inputs are dynamically generated based on the interpolation tags used in the text. ![Text Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/text_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=968d0f3f077d5094c34a7a81aa7b7f26) ## Inputs **(Dynamic)** `string` The inputs are dynamically generated based on the interpolation tags used in the text. For example, if the text contains `{{name}}`, an input named `name` will be created. All inputs are optional and accept string values. If an input is not connected, its tag will be replaced with an empty string. ## Outputs **output** `string` The output text after interpolating all input values into their corresponding tags. ## Editor Settings **text** `code` (default: \{\{input}}) The text to output. You can use interpolation tags in the format `{{tag}}` to insert input values. The text supports markdown formatting and will be displayed with syntax highlighting in the editor. **width** `number` (default: 250) The width of the block in pixels. **hidden** `boolean` (default: true) Whether the block is hidden in the block menu. ## Example: Simple Text Output 1. Add a Text Block to your flow 2. Set the text to `Hello World!` 3. Run the flow. The output will be `Hello World!` ![Text Block Example 1](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/text-block-example-1.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=66135c862b36faf907c2038e8f2bbf4d) ## Example: Using Interpolation 1. Add a Text Block and set the text to `Hello {{name}}!` 2. Add another Text Block with value "World" 3. Connect the second block's output to the `name` input of the first block 4. Run the flow. The output will be `Hello World!` ![Text Block Example 2](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/text-block-example-2.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=f0a0589cccbb4ad3951c1a9784c5a258) ## Error Handling The Text Block handles missing or null inputs gracefully by replacing their tags with empty strings. No errors will be thrown during normal operation. ## FAQ > [accordion] Can I use multiple interpolation tags? > > Yes, you can use any number of unique interpolation tags in your text. Each tag will create a corresponding input on the block. > [accordion] What happens if an input is missing? > > If an input is not connected or its value is null, the corresponding tag will be replaced with an empty string in the output. > [accordion] Does the Text Block support markdown? > > Yes, the text content supports markdown formatting and will be displayed with syntax highlighting in the editor. ## See Also * [Object Block](/block-reference/data/object) * [Number Block](/block-reference/data/number) * [Code Block](/block-reference/advanced/code) # Add File to Document Store Source: https://docs.odella.ai/block-reference/documents/add-file-to-document-store Adds a file to the selected document store. ## Add File to Document Store Adds a file to the selected document store. ## Block metadata | Field | Value | | - | - | | Block ID | `addFileToDocumentStore` | | Display name | Add File to Document Store | | Group | Documents | # Analyze Documents Source: https://docs.odella.ai/block-reference/documents/analyze-documents Analyzes documents in a document store using aggregations like count, sum, ## Analyze Documents Analyzes documents in a document store using aggregations like count, sum, and average. Describe your analysis in plain English — for example, "count contracts by jurisdiction" or "total settlement amount by year". ## Block metadata | Field | Value | | - | - | | Block ID | `analyzeDocuments` | | Display name | Analyze Documents | | Group | Documents | # Find Document Source: https://docs.odella.ai/block-reference/documents/find-document Finds a single document in a document store by matching metadata fields. ## Find Document Finds a single document in a document store by matching metadata fields. Add match criteria to create input ports — wire values from upstream nodes to look up documents by case number, reference ID, client name, etc. ## Block metadata | Field | Value | | - | - | | Block ID | `findDocument` | | Display name | Find Document | | Group | Documents | # Search Documents Source: https://docs.odella.ai/block-reference/documents/search-documents Searches document stores to find relevant documents. ## Search Documents Searches document stores to find relevant documents. Supports semantic search (vector similarity), structured filtering (metadata queries), or hybrid mode that combines both and re-ranks results. Can search across multiple stores simultaneously. ## Block metadata | Field | Value | | - | - | | Block ID | `searchDocuments` | | Display name | Search Documents | | Group | Documents | # New Document Added Source: https://docs.odella.ai/block-reference/documents/trigger-document-store-new-record Triggers when a new document finishes processing in a document store. Outputs the document metadata including title, type, extracted metadata, and content URL. ## New Document Added Triggers when a new document finishes processing in a document store. Outputs the document metadata including title, type, extracted metadata, and content URL. ## Block metadata | Field | Value | | - | - | | Block ID | `trigger:document-store-new-record` | | Display name | New Document Added | | Group | Documents | # AI-Fill PDF Source: https://docs.odella.ai/block-reference/draft/ai-fill-pdf Fills a PDF form using AI. Extracts form fields from a PDF and uses a ## AI-Fill PDF Fills a PDF form using AI. Extracts form fields from a PDF and uses a vision-language model to populate them based on the provided context. ## Block metadata | Field | Value | | - | - | | Block ID | `aiFillPdf` | | Display name | AI-Fill PDF | | Group | Draft, AI | # Multi-Modal Draft Block Source: https://docs.odella.ai/block-reference/draft/draft Generate various document types using AI-powered drafting capabilities with text and image inputs ## Overview The Multi-Modal Draft Block leverages AI to generate various types of documents based on user prompts, context, and images. It offers a set of example templates for common document types and an optimized custom template feature for more specific drafting needs. This block intelligently incorporates both textual and visual information to create comprehensive and context-aware documents. ![Multi-Modal Draft Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/draft_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=2b2d4bc41f952fb2ffda991fb102fba3) ## Inputs **systemPrompt** `string` The system prompt to send to the model. This provides high-level instructions or context for the AI model. **prompt** `string` The prompt to send to the model. Only available when "Use Prompt Input" is enabled. **images** `image[]` An array of images to be analyzed and incorporated into the document. Only available when "Multi-Modal" is enabled. **(Template Variables)** `string` When using templates, additional inputs are dynamically generated based on the template's variables. These inputs are used to customize the template output. ## Outputs **output** `string` The generated document draft based on the inputs and template. **duration** `number` The time taken to generate the draft in milliseconds. **wordCount** `number` The number of words in the generated draft. ## Editor Settings **AI Model** `string` (default: gpt-4) The AI model to use for document generation. Available models are dynamically populated based on your configuration. **Multi-Modal** `boolean` (default: false) When enabled, allows the block to process both text and image inputs to generate the output. **Use Prompt Input** `boolean` (default: false) When enabled, allows direct prompt input instead of using templates. **Drafting Prompt Template** `string` (default: Legal Brief) Select from predefined templates: Legal Brief, Research Report, Email, or Letter. Only available when "Use Prompt Input" is disabled. **Word Count** `number` (default: 800) The target word count for the generated document. Only available when "Use Prompt Input" is disabled. ## Example Templates The Draft Block includes the following pre-configured templates: * Legal Brief * Research Report * Email * Letter Each template is optimized for its specific use case and includes relevant variables for customization. ## Example: Using a Template 1. Add a Draft Block to your flow 2. Select your desired template from "Drafting Prompt Template" 3. Configure the word count and other settings 4. Connect required inputs based on the template variables 5. Run the flow to generate your document ![Draft Block Example](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/draft-block-example.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=f0f663f0284d1e9954480af6602fdba8) ## Error Handling The Draft Block includes robust error handling with automatic retries for: * API rate limit exceeded (429 errors) * API timeouts (408 errors) * Network failures * Other recoverable errors The block will display appropriate error messages and retry automatically when possible. > [!WARNING] > > The block has a maximum retry time of 5 minutes and will throw an error if unable to complete within this timeframe. ## FAQ > [accordion] How does Multi-Modal drafting work? > > When Multi-Modal is enabled, the block can process both text and image inputs simultaneously. The AI model analyzes the images and incorporates relevant visual information into the generated document. > [accordion] What's the difference between using a template and direct prompt input? > > Templates provide structured, pre-configured prompts optimized for specific document types. Direct prompt input gives you more flexibility but requires you to craft your own prompting strategy. > [accordion] How are retries handled? > > The block automatically retries failed attempts with exponential backoff, with delays between 500ms and 5000ms. It handles rate limits and timeouts gracefully while keeping you informed of retry status. ## See Also * [Ask AI Block](/block-reference/ai/ai) * [Text Block](/block-reference/data/text) * [Image Block](/block-reference/data/image) * [Object Block](/block-reference/data/object) # Populate Template Block Source: https://docs.odella.ai/block-reference/draft/populate-template Intelligently fill a pre-built template using AI, handling various content types including text, tables, and images ## Overview The Populate Template Block is a powerful tool that combines pre-built templates with AI capabilities to generate comprehensive, context-aware documents. This block takes a template created in our template editor and uses a connected AI model to intelligently fill in the content based on the supplied context and the structure of the document itself. ![Populate Template Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/populate_template_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=7a65f467edbfb200add5bba8ccb54a9a) ## Inputs **systemPrompt** `string` The system prompt to send to the model. This provides high-level instructions or context for the AI model. **context** `string` *required* The context to support the population of the template. This can include background information, specific requirements, or any other relevant details. **images** `image[]` Any images to be used to populate the template. These can be referenced and incorporated into the final document. ## Outputs **document** `file` The completed template document with all fields populated. **duration** `number` The time taken to generate the document in milliseconds. ## Editor Settings **templateId** `dropdown` The template you wish to populate. Select from available templates in your workspace. **model** `dropdown` The AI model to use for generating content. Options are dynamically populated based on available models. **temperature** `number` (default: 0.3) What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. **maxTokens** `number` (default: 16384) The maximum number of tokens to generate in the chat completion. ## Example: Generating a Business Report 1. Create a template in the template editor with placeholders for your content 2. Add a Populate Template block to your flow 3. Select your template from the Templates dropdown 4. Configure the AI Model and parameters as needed 5. Connect your context and any images to the corresponding inputs 6. Run your flow to generate the populated document ![Populate Template Example](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/populate-template-example.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=8b41c7e850a913cac5490e575a5a47e8) ## Error Handling The block will retry failed attempts with the following behavior: * Maximum retry time of 2 minutes * Exponential backoff starting at 500ms up to 5000ms * Traces failed attempts for debugging * Aborts if the process is cancelled Common errors include: * Missing template provider * Missing LLM provider * Missing file provider * No template ID selected * Failed to populate template fields > [!WARNING] > > Always ensure you have the necessary providers configured and a template selected before running the block. ## FAQ > [accordion] What happens if template fields can't be populated? > > If the block fails to populate any template fields, it will throw an error. Fields that are successfully populated will be included in the output document. > [accordion] Can I customize the AI model parameters? > > Yes, you can adjust the temperature and max tokens settings to control the AI's output. Lower temperature values (0.2-0.3) produce more focused results, while higher values produce more creative ones. > [accordion] How are images handled in templates? > > Images provided through the images input can be referenced and incorporated into the template. The AI model can use these images for context when populating related fields. ## See Also * [Draft Block](/block-reference/draft/draft) * [Text Block](/block-reference/data/text) * [Image Block](/block-reference/data/image) # Table to File Block Source: https://docs.odella.ai/block-reference/draft/table-to-file Convert tabular data into a CSV file ## Overview The Table to File Block converts tabular data into a CSV (Comma-Separated Values) file. This block is particularly useful when you need to export data from your flow in a widely compatible format for further analysis or sharing. ![Table to File Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/table_to_file_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=5202b208381cda52f39b6d6814fbbda1) ## Inputs **table** `table` *required* The table to convert. The input will be coerced to a table format if needed. ## Outputs **file** `file` The converted file output in CSV format. **duration** `number` The time taken to process the conversion in milliseconds. ## Editor Settings **formats** `string[]` The output file formats to generate. Currently only supports CSV format. ## Example: Exporting a Table to CSV 1. Add a Table to File block to your flow. 2. Connect your input table to the `table` input of the Table to File block. 3. Run your flow. The block will output a CSV file containing your table data. ![Table to File Example](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/table-to-file-example.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=bda72c2588f30a969171f68de16389ea) ## Error Handling The block will error if: * No Docme endpoint is configured in settings * The input table is invalid or cannot be coerced to a table format > [!WARNING] > > Ensure that the input table data is properly structured and that your environment is correctly configured with a Docme endpoint. ## FAQ > [accordion] What file formats are supported? > > Currently, the Table to File block only supports CSV (Comma-Separated Values) format. Additional formats may be added in future updates. > [accordion] How does the block handle data type conversion? > > The block will attempt to coerce the input data into a table format if it's not already in the correct format. This provides flexibility in handling different input data structures. ## See Also * [Table Block](/block-reference/loaders/read-table) * [File Block](/block-reference/data/file) * [Draft Block](/block-reference/draft/draft) # Text to File Block Source: https://docs.odella.ai/block-reference/draft/text-to-file Convert text or markdown into styled document files ## Overview The Text to File Block transforms plain text or markdown into styled document files. This block is particularly useful for creating professional-looking documents from simple text input. It supports multiple output formats, allowing you to generate files that can be easily shared or further edited in popular document processing applications. ![Text to File Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/text_to_file_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=ad77997d694e37f12bf3a3bae188c5d8) ## Inputs **text** `string` *required* The text to convert to files. The input will be coerced to a string if needed. ## Outputs **files** `file[]` The converted file output in the specified formats. **duration** `number` The time taken to process the conversion in milliseconds. ## Editor Settings **formats** `string[]` The output file formats to generate. Supported formats: * pdf: Portable Document Format * docx: Microsoft Word Document ## What is Markdown? Markdown is a simple way to format text that looks great on any device. It doesn't do anything fancy like change font sizes or colors, but it does make it easy to create: * **Bold** or *italic* text * Lists (like this one!) * Headers of different sizes * Links to websites * And more! You don't need to know markdown to use this block, but if you do, you can create more structured and styled documents easily. ## Example: Creating a PDF Report 1. Add a Text to File block to your flow. 2. Connect a Text block with your report content to the `text` input. You can use markdown formatting if desired. 3. In the block settings, select "PDF" as the Output Format. 4. Run your flow. The block will output a PDF file containing your styled report. ![Text to File Example](https://mintcdn.com/odella/63rQpScaEp0bDpCd/images/text-to-file-example.png?fit=max\&auto=format\&n=63rQpScaEp0bDpCd\&q=85\&s=9dc58403907838eab978bcf66ea1f3fa) ## Error Handling The block will retry failed attempts with the following behavior: * Maximum retry time of 5 minutes * Exponential backoff starting at 500ms up to 5000ms * Traces failed attempts for debugging * Aborts if the process is cancelled Common errors include: * No Docme endpoint configured in settings * Empty or missing input text * API rate limit exceeded (429) * Internal service errors (500) > [!WARNING] > > Always ensure your environment is correctly configured with a Docme endpoint and that input text is properly formatted. ## FAQ > [accordion] Do I need to know markdown to use this block? > > No, you don't need to know markdown. You can input plain text, and the block will still convert it into a styled document. However, knowing markdown can help you create more structured and formatted documents easily. > [accordion] Can I generate multiple file formats at once? > > Yes, you can select multiple output formats in the block settings. The block will generate a file for each selected format and return them in the output array. > [accordion] How does the block handle images or other media in the input text? > > If you're using markdown and include image links, the block will attempt to download and embed these images in the output files. However, other media types may not be supported, depending on the output format. ## See Also * [Text Block](/block-reference/data/text) * [File Block](/block-reference/data/file) * [Draft Block](/block-reference/draft/draft) # Confirm Block for Human Approval Steps Source: https://docs.odella.ai/block-reference/io/confirm Use the Confirm block to ask for human approval, wait for confirmation, and route workflow execution based on a yes or no response. ![Confirm Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/confirm_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=d2e46dd3144234a22dd1d956b372847e) ## Overview Use the Confirm block when a workflow needs a human approval step before it continues. The block prompts a user for confirmation and routes the value through either the positive or negative output, making it useful for approvals, review gates, delete confirmations, publishing checks, and other control-flow decisions. Pair it with [Flow Output](/block-reference/io/graph-output) to return the approval result or [If/Else](/block-reference/logic/if-else) to branch the workflow after confirmation. ## Inputs **prompt** `string` The message to display to the user when prompting for confirmation. Only available when "Use Input" is enabled. **wait** `any` A value to wait for before showing the confirmation prompt. Only available when "Wait For Input" is enabled. **value** `string` A value that will be passed through to either the True or False output depending on the user's response. ## Outputs **output** `any` The `value` input is passed through this output if the user confirms positively. **falseOutput** `any` The `value` input is passed through this output if the user confirms negatively. ## Editor Settings **prompt** `string` (default: Please confirm to continue.) The message to display to the user when prompting for confirmation. Only editable when "Use Input" is disabled. **useInput** `boolean` (default: false) When enabled, allows the prompt message to be provided via the prompt input port instead of the editor settings. **useWaitForInput** `boolean` (default: false) When enabled, delays showing the confirmation prompt until the "Wait For" input receives a value. **renderingFormat** `string` The format to render the prompt in. Can be either "preformatted" or "markdown". ## Example: Confirming a Delete Action 1. Add a Confirm Block to your flow before a critical delete action. 2. Set the `prompt` to "Are you sure you want to delete this item? This action cannot be undone." 3. Connect your delete action to the `value` input 4. The delete action will only execute if the user confirms positively via the `output` port. The `falseOutput` port can be used to handle the negative confirmation case. ## Error Handling The Confirm Block does not typically produce errors as it simply waits for user input. However, if there are issues with the user interface or the block fails to receive a response, it may timeout and return an error. > [!WARNING] > > Always provide clear and concise messages to users to ensure they understand the implications of their confirmation or denial. ## FAQ > [accordion] What's the difference between using the prompt setting vs input? > > When "Use Input" is disabled, the prompt message is set statically in the editor settings. When enabled, the prompt can be dynamically provided via the prompt input port. > [accordion] How does the Wait For Input feature work? > > When "Wait For Input" is enabled, the confirmation prompt won't be shown until a value is received on the "Wait For" input port. This allows you to sequence confirmations after other operations complete. > [accordion] What happens to the value input? > > The value input is passed through to either the True or False output depending on how the user responds to the confirmation prompt. This allows you to conditionally route data based on user confirmation. ## See Also * [User Input Block](/block-reference/io/user-input) * [Flow Output Block](/block-reference/io/graph-output) * [Conditional Block](/block-reference/logic/if-else) * [Race Inputs Block](/block-reference/logic/race-inputs) * [Text Block](/block-reference/data/text) # Flow Input Block Source: https://docs.odella.ai/block-reference/io/graph-input Define inputs for your flow, enabling reusable and dynamic workflows ![Input Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/input_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=4e72065a921d56cebce3fc3e1a821e88) ## Overview The Flow Input Block is a crucial component for creating dynamic and reusable flows. It allows you to define inputs that can be passed into your flow when it's called via the SDK or used as a subflow. This flexibility enables you to create versatile workflows that can adapt to different scenarios based on the input provided. ## Inputs **default** `any` The default value for the input if no value is provided when the flow is called. Only available if the `Use Default Value Input` setting is enabled. ## Outputs **data** `any` The value of the input. This will be the value provided when the flow is called, or the default value if no value is provided. The data type matches the type specified in the Editor Settings. ## Editor Settings **id** `string` *required* The unique identifier for the input. This ID is used when calling the flow and defines the input's name in the UI. **dataType** `string` (default: string) Specifies the expected data type for the input. **defaultValue** `any` The default value used when no input is provided during flow execution. **useDefaultValueInput** `boolean` (default: false) When enabled, allows the default value to be provided via an input port. **editor** `string` (default: auto) The editor to use when editing this value in the UI. Make sure this matches the data type. Options: * none: No editor * auto: Automatically select editor based on data type * string: String editor * number: Number editor * code: Code editor * dataTypeSelector: Data type selector * stringList: String list editor * keyValuePair: Key-value pair editor * toggle: Toggle switch editor ## Examples ### Basic Input Definition 1. Add a Flow Input Block to your flow 2. Set the ID to `username` and the Data Type to `string` 3. Set a Default Value of `"Guest"` Now, your flow has an input named `username` that defaults to "Guest" if no value is provided. ### Using Flow Input in a Subflow 1. Create a new flow with a Flow Input Block 2. Set the ID to `temperature` and the Data Type to `number` 3. Add a Conditional Block that checks if the temperature is above 30°C 4. Save this flow and return to your main flow 5. Add a Subflow Block and select the flow you just created 6. The Subflow Block will now have an input port for `temperature` This example creates a reusable subflow that can perform actions based on a temperature input. ## Error Handling The Flow Input Block will throw an error if: * The provided input value cannot be coerced into the specified data type * A required input is not provided and has no default value * For array data types, undefined inputs will be converted to empty arrays > [!WARNING] > > Always ensure that your input values match the expected data types to avoid runtime errors. ## Best Practices * Use descriptive IDs for your inputs to make your flows more readable * Set appropriate default values to handle cases where inputs aren't provided * Consider using the `Use Default Value Input` setting for more dynamic default values * Choose an appropriate editor type that matches your data type ## Related Blocks * [Flow Output Block](/block-reference/io/graph-output) * [Subflow Block](/block-reference/advanced/sub-graph) ## Further Reading * [Understanding Data Types](/workflow/data-types) * [Creating Reusable Subflows](/workflow/subflows) * [Best Practices for Flow Design](/workflow/overview) # Flow Output Block for Workflow Results Source: https://docs.odella.ai/block-reference/io/graph-output Use the Flow Output block to return workflow results, expose subflow outputs, and pass typed data back from Odella flows. ![Output Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/output_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=15219df53b8eecd7cb6d70ea838c5b16) ## Overview Use the Flow Output block to define what a workflow returns when it finishes. Each Flow Output block creates one named output value, making it useful for returning generated text, extracted data, files, tables, confirmation results, or structured objects from a flow. When the flow is reused as a [Subflow](/block-reference/advanced/sub-graph), each Flow Output block becomes an output port on that subflow. ## Inputs **value** `any` *required* The value to be outputted from the flow. The data type should match the type specified in the Editor Settings. ## Outputs **valueOutput** `any` The value that was passed into the block. The data type matches the type specified in the Editor Settings. ## Editor Settings **id** `string` *required* (default: output) The unique identifier for the output. This ID is used when referencing the output and defines the output port name when used as a subflow. **dataType** `string` (default: string) Specifies the expected data type for the output. The input value will be coerced to this type if necessary. ## Examples ### Basic Output Definition 1. Create a Text Block with the value "Hello, world!" 2. Add a Flow Output Block and set the ID to "greeting" and Data Type to "String" 3. Connect the Text Block to the Flow Output Block's Value input 4. In another flow, use a Subflow Block referencing the first flow 5. Run the second flow to see the "greeting" output with the value "Hello, world!" ## Error Handling The Flow Output Block will generate an error if the data type of the input value doesn't match the specified Data Type in the Editor Settings. > [!WARNING] > > Always ensure that the input value matches the specified Data Type to avoid runtime errors. ## FAQ > [accordion] Can I have multiple Flow Output Blocks in a flow? > > Yes, you can have multiple Flow Output Blocks in a flow. Each block represents an individual output of the flow. Ensure that each Flow Output Block has a unique ID. > [accordion] What happens if the ID of a Flow Output Block is not unique? > > If multiple Flow Output Blocks have the same ID, the flow's output will contain the value of the last processed block with that ID. > [accordion] Can I use the Flow Output Block to output complex data types? > > Yes, the Flow Output Block can output any data type, including arrays and objects. Make sure to set the appropriate Data Type in the Editor Settings. ## See Also * [Input Block](/block-reference/io/graph-input) * [Confirm Block](/block-reference/io/confirm) * [Subflow Block](/block-reference/advanced/sub-graph) * [Extract Data Block](/block-reference/ai/extract-data) * [Data Types](/workflow/data-types) # Upload File Block Source: https://docs.odella.ai/block-reference/io/upload-file Allow users to upload files for use in your workflow ![Upload File Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/upload_file_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=bdad4016399b680ec3af8b5d26ac41d7) ## Overview The Upload File Block is a user input component that prompts users to upload a file. It's designed to wait for the user to select and upload a file before proceeding with the workflow. This block is particularly useful when you need to incorporate user-provided files into your flow for further processing or analysis. ## Inputs **questions** `string[]` The questions/prompts to display to the user. Only available when "Use Input" is enabled. **wait** `any` A value to wait for before showing the file upload prompt. Only available when "Wait For Input" is enabled. ## Outputs **output** `file` The uploaded file data. This can be used in subsequent blocks for processing or analysis. ## Editor Settings **prompt** `string` (default: This is an example question?) The message displayed to the user when prompted to upload a file. Only editable when "Use Input" is disabled. **useInput** `boolean` (default: false) When enabled, allows the prompt message to be provided via the questions input port instead of the editor settings. **useWaitForInput** `boolean` (default: false) When enabled, delays showing the file upload prompt until the "Wait For" input receives a value. **acceptedFileTypes** `string[]` The file types that the block will accept. Default supported types: * PDF files (application/pdf) * Microsoft Word documents (application/msword) * CSV files (text/csv) * Modern Word documents (.docx) ## Example: Uploading a CSV for Analysis 1. Add an Upload File Block to your flow. 2. Set the `prompt` to "Please upload a CSV file for analysis". 3. Connect the `output` to subsequent blocks to process the uploaded file. 4. When the flow runs, users will be prompted to upload a file matching the accepted types. ## Error Handling * If a user attempts to upload a file type that is not in the accepted file types list, the block will display an error message and continue waiting for a valid file. * If there are issues with file upload (e.g., network errors, file corruption), the block will fail and provide error details. > [!WARNING] > > Always validate and sanitize uploaded files before processing them further in your workflow to ensure security and data integrity. ## FAQ > [accordion] What's the difference between using the prompt setting vs input? > > When "Use Input" is disabled, the prompt message is set statically in the editor settings. When enabled, the prompts can be dynamically provided via the questions input port. > [accordion] How does the Wait For Input feature work? > > When "Wait For Input" is enabled, the file upload prompt won't be shown until a value is received on the "Wait For" input port. This allows you to sequence file uploads after other operations complete. > [accordion] What file types are supported? > > By default, the block accepts PDF files, Microsoft Word documents (both .doc and .docx formats), and CSV files. The accepted file types are configured through the MIME types in the block settings. ## See Also * [Table Block](/block-reference/loaders/read-table) * [Text Block](/block-reference/data/text) * [File Block](/block-reference/data/file) # User Input Block Source: https://docs.odella.ai/block-reference/io/user-input Prompt users for input during flow execution, enabling interactive workflows ![User Input Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/user_input_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=84a84c2fbc1ee84f9a5a4c32221b3986) ## Overview The User Input Block allows you to prompt users for input during flow execution. This block is essential for creating interactive workflows where user input is required to proceed. It can use either static prompts defined in the block settings or dynamic prompts provided via the block's input. ## Inputs **questions** `string[]` An array of questions to prompt the user. Only available when "Use Input" is enabled. **wait** `any` A value to wait for before showing the input prompt. Only available when "Wait For Input" is enabled. ## Outputs **output** `string[]` An array containing just the user's answers to the prompted questions. **questions** `string[]` An array containing just the questions that were asked. **questionsAndAnswers** `string[]` An array containing the questions and answers formatted as "Question\nAnswer". ## Editor Settings **prompt** `string` (default: This is an example question?) The message to display to the user when prompting for input. Only editable when "Use Input" is disabled. **useInput** `boolean` (default: false) When enabled, allows the prompt message to be provided via the questions input port instead of the editor settings. **useWaitForInput** `boolean` (default: false) When enabled, delays showing the input prompt until the "Wait For" input receives a value. **renderingFormat** `string` (default: markdown) The format to render the prompt in. Options: * markdown: Renders the prompt as markdown * preformatted: Renders the prompt as preformatted text ## Examples ### Static Prompt 1. Add a User Input Block to your flow. 2. Set the "Prompt" to "What is your name?" in the block settings. 3. Run the flow. It will pause and prompt the user for input. 4. After the user submits their name, the flow continues with the input as the block's output. ### Dynamic Prompts 1. Add a User Input Block and enable the "Use Input" toggle. 2. Create an Array Block with two Text Blocks: "What is your name?" and "What is your favorite color?" 3. Connect the Array Block to the User Input Block's "Questions" input. 4. Run the flow. It will prompt the user with both questions sequentially. 5. The block's output will be an array containing the user's answers. ## Error Handling The User Input Block does not typically produce errors as it simply waits for user input. However, if there are issues with the user interface or the block fails to receive a response, it may timeout and return an error. > [!WARNING] > > The User Input Block does not support input masking. Avoid using it for sensitive information like passwords. ## FAQ > [accordion] Can I prompt for multiple inputs at once? > > Yes, you can use an Array Block connected to the "Questions" input to prompt for multiple inputs sequentially. > [accordion] What happens if the user doesn't provide input? > > If the user submits without providing input, the block will output an empty string for that prompt. > [accordion] How does the Wait For Input feature work? > > When "Wait For Input" is enabled, the input prompt won't be shown until a value is received on the "Wait For" input port. This allows you to sequence prompts after other operations complete. > [accordion] What's the difference between the output formats? > > * "Answers Only" gives you just the user responses > * "Questions Only" gives you just the questions asked > * "Q & A" combines each question and answer pair with a newline between them ## See Also * [Array Block](/block-reference/data/array) * [Text Block](/block-reference/data/text) * [Split Block](/block-reference/modifiers/chunk) * [Join Block](/block-reference/modifiers/join) # Read Binary Block Source: https://docs.odella.ai/block-reference/loaders/read-binary Read the contents of a file as binary data ![Read Binary Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/read_binary_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=7d3dbe0e90573b8819e4528e4d832ec6) ## Overview The Read Binary Block allows you to read the contents of a file as raw binary data. This is particularly useful when working with non-text files or when you need to process file contents in their original binary format. ## Inputs **file** `file` *required* The input file to be read as binary. The file must have a valid media type. ## Outputs **output** `binary` The raw binary content of the input file as a Uint8Array. ## Editor Settings This block does not have any configurable settings in the editor. ## Example: Reading an Image File as Binary 1. Add a Read Binary block to your flow. 2. Connect a File block containing an image file to the `file` input of the Read Binary block. 3. Run your flow. The block will output the raw binary data of the image file. ## Error Handling * If the input file is missing or invalid, the block will return an error. * If the file is missing a media type, the block will throw an error. * If a FileProvider is needed to load from URL but not available, the block will throw an error. * If there are issues reading the file (e.g., file permissions, corrupted file), the block will fail and provide error details. > [!WARNING] > > Be cautious when working with large files, as reading them entirely into memory as binary data may consume significant resources. ## FAQ > [accordion] What types of files can I read with this block? > > The Read Binary block can read any type of file, including text files, images, audio files, executables, and more. It treats all files as raw binary data. > [accordion] How is this different from the Read File block? > > While the Read File block is optimized for reading text files and can perform encoding conversions, the Read Binary block reads the raw binary content of any file without any interpretation or conversion. > [accordion] Is there a size limit for files that can be read? > > The block itself doesn't impose a specific size limit, but reading very large files may be limited by available memory and system resources. For extremely large files, consider using streaming or chunking approaches. ## See Also * [Read File Block](/block-reference/loaders/read-text) * [File Block](/block-reference/data/file) * [Write Binary Block](/block-reference/io/graph-output) # Read Images Source: https://docs.odella.ai/block-reference/loaders/read-images Reads the contents of the specified file and outputs each page as an image. ## Read Images Reads the contents of the specified file and outputs each page as an image. ## Block metadata | Field | Value | | - | - | | Block ID | `readImages` | | Display name | Read Images | | Group | Loaders | # Read Table Block Source: https://docs.odella.ai/block-reference/loaders/read-table Read and parse CSV files into table data structures ![Read Table Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/read_table_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=2ae73e8b05c99cbf55574dd6316e4351) ## Overview The Read Table Block is designed to read and parse CSV (Comma-Separated Values) files, converting them into structured table data that can be easily manipulated and analyzed within your workflow. This block is particularly useful for processing tabular data stored in CSV format. ## Inputs **file** `file` *required* The input CSV file to be read and parsed. Must have a media type of "text/csv". This should be a file data value, typically provided by a File block or another block that outputs file data. ## Outputs **output** `table` A table data structure containing the parsed CSV data. Each row in the table corresponds to a row in the CSV file, with columns representing the CSV fields. ## Error Handling * If the input file is missing or invalid, the block will return an error. * If the file lacks a media type, the block will throw an error. * If the file's media type is not "text/csv", the block will throw an error. * If a FileProvider is needed to load from URL but not available, the block will throw an error. * If there are issues parsing the CSV file, the block will fail and provide error details. > [!WARNING] > > Only CSV files with media type "text/csv" are currently supported. Ensure your input files are in CSV format with the correct media type. ## Example: Reading a CSV File 1. Add a Read Table block to your flow. 2. Connect a File block containing a CSV file to the `file` input. 3. Run your flow. The block will parse the CSV and output a table data structure. ## FAQ > [accordion] What file types are supported? > > The Read Table block currently only supports CSV files with the media type "text/csv". > [accordion] How does the block handle large CSV files? > > The block reads and parses the entire CSV file into memory. For very large files, consider available memory and processing time implications. > [accordion] What happens if the CSV file is malformed? > > If there are issues parsing the CSV file due to malformed data or inconsistent structure, the block will fail and provide error details. ## See Also * [File Block](/block-reference/data/file) * [Analyze Table Block](/block-reference/ai/analyze-table) * [Table Block](/block-reference/loaders/read-table) # Read Text Block Source: https://docs.odella.ai/block-reference/loaders/read-text Read the contents of a file as text or markdown ![Read text Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/read_text_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=a2436da3a07f9f67ed1c6eb43d683470) ## Overview The Read Text Block is used to read and extract text content from PDF and DOCX files, outputting it as either plain text or markdown. This block is particularly useful for processing text-based documents within your workflow. ## Inputs **file** `file` *required* The input file to be read. Must be a PDF or DOCX file with a valid media type. This should be a file data value, typically provided by a File block or another block that outputs file data. ## Outputs **output** `string` The extracted text content from the file, formatted as either plain text or markdown based on the Output Text Format setting. ## Editor Settings **Output Text Format** `string` (default: markdown) Determines how the file content is interpreted and output. Options are: * "Markdown": Interprets and outputs the file content as markdown * "Text": Outputs the file content as plain text ## Example: Reading a PDF File 1. Add a Read Text block to your flow. 2. Connect a File block containing a PDF or DOCX file to the `file` input. 3. In the block settings, select your desired Output Text Format. 4. Run your flow. The block will extract and output the text content. ## Error Handling * If the input file is missing or invalid, the block will return an error. * If the file lacks a media type, the block will throw an error. * If a FileProvider is needed to load from URL but not available, the block will throw an error. * If there are issues reading the file (e.g., file permissions, corrupted file), the block will fail and provide error details. > [!WARNING] > > Only PDF and DOCX files are currently supported. Ensure your input files are in one of these formats and have valid media types. ## FAQ > [accordion] What file types are supported? > > The Read Text block currently supports: > > * PDF files (application/pdf) > * Microsoft Word documents (.doc and .docx) > [accordion] How does the Markdown output differ from Text? > > When set to Markdown output, the block will preserve formatting and structure from the original document in markdown syntax. Text output provides raw text content without formatting. > [accordion] How does the block handle large files? > > The block includes retry logic for processing large files, with configurable timeout and retry settings. For extremely large files, consider potential memory usage and processing time implications. ## See Also * [File Block](/block-reference/data/file) * [Text To File](/block-reference/draft/text-to-file) # Transcribe Audio Source: https://docs.odella.ai/block-reference/loaders/transcribe-audio Transcribes speech from an audio file or audio data using an LLM. ## Transcribe Audio Transcribes speech from an audio file or audio data using an LLM. Accepts either audio data type or file data type as input. ## Block metadata | Field | Value | | - | - | | Block ID | `transcribeAudio` | | Display name | Transcribe Audio | | Group | Loaders | # Abort Flow Block Source: https://docs.odella.ai/block-reference/logic/abort Stop the execution of the entire flow immediately, either successfully or with an error ![Abort Flow Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/abort_flow_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=b85255e77157c009e8257ddfc9ac43c1) ## Overview The Abort Flow Block is used to stop the execution of the entire flow immediately. It can either "successfully" abort the flow (early-exit), or "error" abort the flow. This block is useful for stopping the flow under certain conditions or for handling errors. ## Inputs **data** `any` The message to abort the graph with. If provided as a string when error aborting, this will be used as the error message. **successfully** `boolean` Whether to successfully abort the graph (early-exit), or error abort the graph. Only available when "Use Successfully Input" is enabled in settings. ## Outputs This block does not have any outputs. ## Editor Settings **Successfully Abort** `boolean` (default: true) Whether to successfully abort the graph (early-exit), or error abort the graph. Can be overridden by the "successfully" input if "Use Successfully Input" is enabled. **Use Successfully Input** `boolean` (default: false) When enabled, adds a "successfully" input port that can override the "Successfully Abort" setting. **Error Message** `string` The error message to use when error aborting (when not successfully aborting). Only used if no message is provided via the data input. ## Example: Successfully aborting a flow 1. Add an Abort Flow block to your flow. 2. Make sure the "Successfully Abort" setting is checked. 3. Connect any block to the `data` input of the Abort Flow block. 4. Run your flow. The flow will abort immediately after the Abort Flow block is processed. ## Example: Aborting a flow with an error 1. Add an Abort Flow block to your flow. 2. Uncheck the "Successfully Abort" setting. 3. Optionally, enter an error message in the "Error Message" setting. 4. Connect any block to the `data` input of the Abort Flow block. 5. Run your flow. The flow will abort with an error message. ## Error Handling The Abort Flow Block does not produce any errors itself. However, it causes the entire flow to stop executing when it is processed, either successfully or with an error. When error aborting, the error message is determined in this order: 1. The trimmed string value from the `data` input, if provided 2. The "Error Message" setting value, if configured 3. Default message: "Graph aborted with error" > [!WARNING] > > Be cautious when using this block, as it will immediately stop the execution of your entire flow. ## FAQ > [accordion] What happens if I connect a non-string value to the `data` input? > > When error aborting, non-string values will be ignored for the error message. The block will fall back to using the configured "Error Message" setting or the default error message. > [accordion] What happens if I connect a block to the `successfully` input but 'Use Successfully Input' is disabled? > > The `successfully` input port won't be available and the block will use the "Successfully Abort" setting value instead. > [accordion] What happens if I don't connect anything to the `data` input or leave the 'Error Message' setting empty? > > When error aborting, the flow will be aborted with the default error message "Graph aborted with error". ## See Also * [If Block](/block-reference/logic/if-else) * [If/Else Block](/block-reference/logic/if-else) * [Race Inputs Block](/block-reference/logic/race-inputs) # Checklist Source: https://docs.odella.ai/block-reference/logic/checklist Evaluates messages against a list of conditions. ## Checklist Evaluates messages against a list of conditions. All conditions must be satisfied for the messages to be routed to the success output. If any condition fails, the messages are routed to the failure output. ## Block metadata | Field | Value | | - | - | | Block ID | `checklist` | | Display name | Checklist | | Group | Logic | # Coalesce Block Source: https://docs.odella.ai/block-reference/logic/coalesce Returns the first non-null value from a list of inputs, similar to SQL's COALESCE function ![Coalesce Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/coalesce_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=302f75c709c0dd90cfa45f1cb660a2a5) ## Overview The Coalesce Block functions similarly to the `COALESCE` function in SQL, returning the first non-null value from a list of inputs. In Odella, "null" includes values that appear as "Not Ran" in the UI - blocks that have been excluded from the run due to control flow processing. This block is particularly useful when working with a set of blocks where only one will run, allowing you to return the output of the first block that actually executes. See the examples section for more information on using this with a [Match Block](/block-reference/logic/match). ## Inputs **conditional** `boolean` If connected, this can be used to run the coalesce block conditionally. If not connected, it's treated like any other input. If this input is control-flow-excluded, the entire block will be control-flow-excluded. **input\[i]** `any` One of the inputs to check for nullness. The first non-null input will be passed to the output port. The number of inputs is dynamic based on how many are connected. Each input is numbered sequentially starting from 1. ## Outputs **output** `any` The value of the first non-null input. If all inputs are null or control-flow-excluded, the output will be control-flow-excluded. ## Editor Settings This block has no configurable editor settings. ## Example: Default Values / Null Checks You can use a Coalesce Block to perform null checks and set default values for a parameter. 1. Create an If block but do not connect to its input, so it will not run. 2. Connect the output of the If block to the Coalesce block. 3. Connect a Text block with a hardcoded value to the 2nd input of the Coalesce block. 4. Run the flow. The output of the Coalesce block will be the value of the Text block, since the If block was not run. ## Example: Getting a Single Value from a Match Block 1. Create a [Match Block](/block-reference/logic/match) with a few different cases, say `1`, `2`, and `3`. 2. For each case, use an [If Block](/block-reference/logic/if-else) to transform each case into a unique value, say `A`, `B`, and `C`. Use a [Text Block](/block-reference/data/text) connected to the `value` port of the If Blocks to set the value passed through for each case. 3. Connect the outputs of each If block to one of the inputs on a Coalesce block. 4. Connect an input to the Match block so that only one of the cases will run. 5. Run the flow. The output of the Coalesce block will be the value of the If block that ran. This pattern is common when working with a Match block - you can get a unique value for each case using an If block, which is not dependent on the value passed into the Match block itself. ## Error Handling The Coalesce block cannot error in normal operation. ## FAQ > [accordion] Will an empty string be passed over? > > No, an empty string is not considered nullable for the Coalesce Block. If you want to skip over empty strings, use an If Block to check for empty strings and return null if the string is empty. > [accordion] How are inputs numbered? > > Input ports are numbered sequentially starting from 1 (input1, input2, etc). The number of input ports automatically adjusts based on the highest numbered port that has a connection. ## See Also * [Match Block](/block-reference/logic/match) * [If Block](/block-reference/logic/if-else) * [If/Else Block](/block-reference/logic/if-else) # Compare Block Source: https://docs.odella.ai/block-reference/logic/compare Perform comparison operations between two input values ![Compare Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/compare_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=7b1fd599371e4a7992bc09b8b30de0b1) ## Overview The Compare Block allows you to perform comparison operations between two input values. It supports various comparison functions including equality, inequality, less than, greater than, and logical operations such as AND, OR, XOR, NAND, NOR, and XNOR. ## Inputs **A** `any` The first value for comparison. Required. **B** `any` The second value for comparison. Required. **Comparison Function** `string` The comparison function to use. Only available when "Use Comparison Function Input" is enabled in settings. ## Outputs **Output** `boolean` The result of the comparison operation. ## Editor Settings **Comparison Function** `string` (default: ==) The comparison function to be used for the operation. Available options are: * `==`: Equal to * `!=`: Not equal to * `<`: Less than * `>`: Greater than * `<=`: Less than or equal to * `>=`: Greater than or equal to * `and`: Logical AND * `or`: Logical OR * `xor`: Logical XOR * `nand`: Logical NAND * `nor`: Logical NOR * `xnor`: Logical XNOR **Use Comparison Function Input** `boolean` (default: false) When enabled, adds a "Comparison Function" input port that can override the comparison function setting. ## Example: Compare two numbers 1. Create a Compare Block and set the `Comparison Function` to `>`. 2. Create two Number Blocks, one with the value `5` and the other with the value `3`. 3. Connect the Number Blocks to the `A` and `B` inputs of the Compare Block respectively. 4. Run the flow. The output of the Compare Block will be `true`, because 5 is greater than 3. ## Error Handling If input A is not provided: * For `==` comparison: Returns `true` if B is also not provided, `false` otherwise * For `!=` comparison: Returns `true` if B is provided, `false` otherwise * For all other comparisons: Returns `false` If the inputs are not of the same type, the block will attempt to coerce the second input (`B`) to the type of the first input (`A`). ## FAQ > [accordion] What happens if the inputs are not of the same type? > > If the inputs are not of the same type, the block will attempt to coerce the second input (`B`) to the type of the first input (`A`). If the coercion is not possible, the comparison will be performed with the original values. > [accordion] Can I use the Compare Block to compare arrays or objects? > > Yes, you can use the Compare Block to compare arrays or objects. The comparison will be performed using a deep equality check that compares all nested values. ## See Also * [If Block](/block-reference/logic/if-else) * [Match Block](/block-reference/logic/match) * [Code Block](/block-reference/advanced/code) # Delay Block Source: https://docs.odella.ai/block-reference/logic/delay Introduce a timed delay in the execution of your workflow ![Delay Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/delay_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=bfe4edfc1bf843f95742ed095c732f6e) ## Overview The Delay Block introduces a specified pause in the execution of your workflow. It accepts any number of inputs and, after the set delay, passes these input values to the outputs without modification. This block is particularly useful for controlling the timing and pacing of your workflow execution. ## Inputs **Delay (ms)** `number` The delay time in milliseconds. This input is only available if the "Use Delay Input" setting is enabled. **Input \[i]** `any` The ith input that will be passed to the corresponding output. The number of inputs is dynamic based on the connections made to the block. ## Outputs **Output \[i]** `any` The ith output from the execution of the delay block. Each output corresponds to its respective input and is returned after the specified delay. The number of outputs matches the number of inputs minus 1. ## Editor Settings **Delay (ms)** `number` (default: 0) The delay time in milliseconds. This value is used if the "Use Delay Input" setting is disabled. **Use Delay Input** `boolean` (default: false) If enabled, adds a "Delay (ms)" input port that can override the delay time specified in settings. ## Example: Delaying a Message 1. Add a Text block to your flow and set its value to "Hello, World!". 2. Add a Delay block and set its "Delay" setting to 5000 (5 seconds). 3. Connect the output of the Text block to the first input of the Delay block. 4. Run the flow. You'll notice that the output of the Delay block appears after a 5-second pause. ## Error Handling The Delay block is designed to handle inputs robustly and doesn't generate errors under normal circumstances. If a negative delay time is provided, it will be treated as zero, resulting in immediate execution. ## FAQ > [accordion] What happens if I set the delay time to zero? > > If the delay time is set to zero, the Delay block will pass the input to the output immediately, effectively acting as a pass-through block. > [accordion] Can I use the Delay block to throttle API calls? > > Yes, the Delay block can be used to throttle API calls. For instance, if you have a workflow that makes frequent API calls, you can use the Delay block to ensure that calls are not made more often than a specified interval. ## See Also * [Passthrough Block](./passthrough) * [Race Inputs Block](./race-inputs) # If/Else Block Source: https://docs.odella.ai/block-reference/logic/if-else Choose between two different values based on a condition ![If/Else Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/if_else_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=92b36d245ad93ffc3646358c59bbc3d4) ## Overview The If/Else Block is a control flow block that allows you to choose between two different values based on a condition. It evaluates a condition and outputs either a "true" value or a "false" value depending on the result. ## Inputs **If** `any` If this is truthy, the `true` value will be passed through the output port. Otherwise, the `false` value will be passed through the output port. An unconnected port is considered false. A `Not Ran` value is considered false. Required. **True** `any` The value to pass through the output port if the condition is truthy. **False** `any` The value to pass through the output port if the condition is not truthy. ## Outputs **Output** `any` The `true` or `false` value, depending on the `if` condition. ## Editor Settings **Don't run unconnected ports** `boolean` (default: true) If enabled, unconnected input ports are control-flow-excluded. If disabled (legacy behavior), unconnected ports will pass through undefined values. ## Example: Choose between two values based on a condition 1. Create a Bool Block and set its value to `true`. 2. Create two Text Blocks with values `Hello` and `World`. 3. Create an If/Else Block. Connect the Bool Block to `If`, `Hello` to `True`, and `World` to `False`. 4. Run the flow. The output should be `Hello`. 5. Change the Bool Block to `false` and run again. The output should now be `World`. ## Error Handling The If/Else block will not throw an error under normal circumstances. If both the true and false values are unconnected or control-flow-excluded, the output will be control-flow-excluded. ## FAQ > [accordion] What is considered truthy in Odella? > > The following values are considered truthy: > > * Boolean `true` > * Any non-zero number > * Any non-empty string > * Any non-empty Array > * Any object with a truthy value > * Any function > > The following are considered falsy: > > * Boolean `false` > * Zero > * Empty string > * Empty array > * null/undefined > * The string value `"false"` > * `Not Ran` values > [accordion] What happens if the `If` input is `Not Ran`? > > If the `If` input is `Not Ran`, the `False` value will be passed through instead. If the `False` value is not connected and "Don't run unconnected ports" is enabled, then the result will be control-flow-excluded. > [accordion] Can I use the If/Else Block to choose between two different types of values? > > Yes, you can use the If/Else Block to choose between two different types of values. For example, you can use it to choose between a string and a number based on a condition. The output type will match whichever value (true or false) is passed through. ## See Also * [If Block](/block-reference/logic/if-else) * [Match Block](/block-reference/logic/match) * [Coalesce Block](/block-reference/logic/coalesce) * [Control Flow](/workflow/control-flow) # Match Block Source: https://docs.odella.ai/block-reference/logic/match Route control flow based on string matching against regular expressions ![Match Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/match_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=60e0c1c7b87c3bb1e9209e30ca0664ac) ## Overview The Match Block is used to route control flow based on matching a string input against a series of regular expressions. Each regular expression corresponds to an output of the block. This block is particularly useful for directing workflow based on the content of a string, such as checking for specific keywords in a user's message. ## Key Features * Match string input against multiple regular expressions * Option to run either the first matching output or all matching outputs * Fallback 'Unmatched' output for when no match is found * Flexible value passing through matched outputs ## Inputs **Test** `string` *required* The value that will be tested against each of the cases. Non-string inputs will be coerced to strings. **Value** `any` The value passed through to the output port that matches. If unconnected, the test value will be passed through. ## Outputs **Case \[i]** `any` The value (or test if value is unconnected) passed through if the test value matches the corresponding regex case. The number of these outputs is dynamic based on the number of configured cases. Each output is labeled with its corresponding regex pattern, or "Case N" if the pattern is empty. **Unmatched** `any` The value (or test if value is unconnected) passed through if no regexes match. Will not run if any match is found. ## Editor Settings **Exclusive** `boolean` (default: false) If enabled, only the first matching branch will be ran. If disabled, all matching cases will run. **Cases** `string[]` The list of regular expressions to match against. Each case corresponds to an output port. ## Example: Route control flow based on AI input 1. Create a Chat Block with a prompt asking about preference for cats or dogs. 2. Connect the Chat Block's `Message` output to a Match Block's `Test` input. 3. Set up the Match Block with regex cases for "cats" and "dogs". 4. Create three pairs of If Blocks and Text Blocks for different outcomes. 5. Connect the Match Block's outputs to the corresponding If Blocks. 6. Run the flow to see the routing based on the AI's response. ## Error Handling The Match Block will error if the `Test` input is not provided. If no match is found, the `Unmatched` output will be executed. ## FAQ > [accordion] Can multiple cases match at once? > > Yes, multiple cases can match simultaneously. All corresponding output ports will be executed unless the 'Exclusive' setting is enabled. > [accordion] Can I use the Match Block with numbers or lists? > > Yes, but inputs will be coerced into strings for matching. For lists, each string is typically placed on its own line for testing. ## See Also * [If Block](/block-reference/logic/if-else) * [If/Else Block](/block-reference/logic/if-else) * [Loops guide](/workflow/loops) * [Coalesce Block](/block-reference/logic/coalesce) * [Control Flow](/workflow/control-flow) # Passthrough Block Source: https://docs.odella.ai/block-reference/logic/passthrough Pass input values through without modification ![Passthrough Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/passthrough_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=0d63f12b78d8aa1b374b51c88084db6b) ## Overview The Passthrough Block is a simple utility that passes input values to outputs without any modifications. It's useful for scenarios where you need to route values through specific paths in your flow without altering them, such as grouping values from different branches or controlling wire flow. ## Key Features * Dynamically creates input and output ports based on connections * Passes values through without modification * Hidden by default in the block menu * Useful for organizing complex flows ## Inputs **Input \[i]** `any` The ith input to be passed through. The number of inputs is dynamic based on the connections made to the block. Each input port is labeled as "Input 1", "Input 2", etc. ## Outputs **Output \[i]** `any` The ith output from the passthrough. Each output corresponds to its respective input, passing through the exact same value. The number of outputs is always one less than the number of inputs. ## Editor Settings **Hidden** `boolean` (default: true) Whether the block is hidden in the block menu. This block is hidden by default since it's primarily used internally. **Width** `number` (default: 175) The width of the block in pixels. ## Example: Grouping Values 1. Create multiple branches in your flow that produce different values. 2. Add a Passthrough Block at the point where you want to group these values. 3. Connect the outputs from different branches to the Passthrough Block's inputs. 4. The Passthrough Block will now group these values without modifying them. ## Error Handling The Passthrough Block does not perform any error handling. It simply passes through whatever values it receives on its inputs to the corresponding outputs. If an input is control-flow-excluded, the corresponding output will also be control-flow-excluded. ## Technical Details * The block dynamically creates input ports based on the highest numbered connected input port plus one * The number of output ports is always one less than the number of input ports * Input ports are named "input1", "input2", etc. * Output ports are named "output1", "output2", etc. * The block belongs to the "Logic" group in the block menu ## FAQ > [accordion] What happens if an input is missing or null? > > If an input is missing or null, the corresponding output will also be missing or null. The Passthrough Block does not modify or validate inputs in any way. > [accordion] Can the Passthrough Block be used to delay execution? > > No, the Passthrough Block does not introduce any delay. For timed delays, consider using the Delay Block instead. > [accordion] Why is this block hidden by default? > > The Passthrough Block is primarily used internally for organizing flows and is hidden by default to avoid cluttering the block menu. However, it can still be used by directly creating it in your flow. ## See Also * [If Block](/block-reference/logic/if-else) * [Match Block](/block-reference/logic/match) * [Coalesce Block](/block-reference/logic/coalesce) * [Race Inputs Block](/block-reference/logic/race-inputs) # Race Inputs Block Source: https://docs.odella.ai/block-reference/logic/race-inputs Handle multiple inputs and output the value of the first input to finish ![Race Inputs Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/race_inputs_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=497f1c6ec0d2427e08984426d8176e91) ## Overview The Race Inputs Block is used to handle multiple inputs and output the value of the first input to finish, force-cancelling the other inputs. This block is particularly useful when you have multiple operations that can potentially fulfill the same requirement, and you want to use the result of the operation that finishes first. ## Key Features * Dynamically creates input ports based on connections * Outputs the first completed input value * Cancels remaining inputs after first completion * Hidden by default in the block menu * Belongs to the Logic group ## Inputs **Input \[i]** `any` The ith input to be raced. The number of inputs is dynamic based on the connections made to the block. Each input port is labeled as "Input 1", "Input 2", etc. ## Outputs **Result** `any` The value of the first input to finish. If no inputs finish or all inputs are control-flow-excluded, this output will be control-flow-excluded. ## Editor Settings **Hidden** `boolean` (default: true) Whether the block is hidden in the block menu. This block is hidden by default. **Width** `number` (default: 300) The width of the block in pixels. ## Example: Race two Chats 1. Create a new flow and add two Chat Blocks. 2. Add a Prompt Block with a quick-to-answer prompt like "What is your favorite color?" Connect it to the first Chat Block's `Prompt` input. 3. Add another Prompt Block with a longer prompt like "Describe in detail the story of Hamlet." Connect it to the second Chat Block's `Prompt` input. 4. Connect both Chat Block outputs to a Race Inputs block. 5. Run the flow. The first Chat will finish quickly, and the Race Inputs block will output its response. The second Chat Block gets canceled. ## Error Handling The Race Inputs Block will not error if none of the inputs finish. Instead, the `Result` output will be control-flow-excluded. If all inputs are control-flow-excluded, the output will also be control-flow-excluded. ## Technical Details * Input ports are dynamically created based on the highest numbered connected input port plus one * Input ports are named "input1", "input2", etc. * The output port is named "result" ## FAQ > [accordion] What happens if none of the inputs finish? > > If none of the inputs finish, the Race Inputs Block will not error. The `Result` output will be control-flow-excluded. > [accordion] Can I use the Race Inputs Block with inputs of different data types? > > Yes, the Race Inputs Block can handle inputs of any data type. > [accordion] What happens if one of the inputs errors? > > If one of the inputs errors, the Race Inputs Block will not be affected. It will still output the value of the first input to finish, regardless of whether other inputs error. ## See Also * [HTTP Call Block](/block-reference/advanced/http-call) * [If Block](/block-reference/logic/if-else) * [Match Block](/block-reference/logic/match) * [Coalesce Block](/block-reference/logic/coalesce) # Route Source: https://docs.odella.ai/block-reference/logic/route Routes messages to different outputs based on LLM evaluation of multiple conditions. ## Route Routes messages to different outputs based on LLM evaluation of multiple conditions. Each option has a prompt that describes when messages should be routed to that output. The LLM will evaluate the messages against each option's criteria and route accordingly. ## Block metadata | Field | Value | | - | - | | Block ID | `route` | | Display name | Route | | Group | Logic | # Switch Block Source: https://docs.odella.ai/block-reference/logic/switch Route control flow based on a boolean condition ![Switch Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/switch_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=f90de2011e7c64f247d5ea4454ac4e93) ## Overview The Switch Block is a control flow block that routes the input value to different outputs based on a boolean condition. It evaluates the condition and directs the value to either the True or False output port accordingly. ## Key Features * Routes values based on a condition * Control flow excluded values for unmatched paths ## Inputs **Condition** `any` If this is truthy, the value will be passed through the True port. Otherwise, it will be passed through the False port. An unconnected port is considered false. **Value** `any` The value to pass through the True or False port. If unconnected, it will be undefined. ## Outputs **True** `any` The `value` passed through if the condition is truthy. Control-flow-excluded if condition is falsy. **False** `any` The `value` passed through if the condition is falsy. Control-flow-excluded if condition is truthy. ## Editor Settings **Don't run unconnected value** `boolean` (default: true) If enabled, unconnected value input is control-flow-excluded. If disabled (legacy behavior), unconnected value will pass through undefined. **Width** `number` (default: 150) The width of the block in pixels. ## Example: Route a message based on a condition 1. Create a Bool Block and set its value to `true`. 2. Create a Text Block with the value "Hello, World!". 3. Create a Switch Block. Connect the Bool Block to `Condition` and the Text Block to `Value`. 4. Add two Text Blocks to display the output, one connected to True and one to False. 5. Run the flow. The "Hello, World!" message should appear in the Text Block connected to True. 6. Change the Bool Block to `false` and run again. The message should now appear in the Text Block connected to False. ## Error Handling The Switch block will not throw an error under normal circumstances. The following values are considered falsy: * Boolean `false` * Empty string * Empty array * Control-flow-excluded values * Undefined/unconnected inputs * Empty chat messages ## FAQ > [accordion] What happens if the Value input is not provided? > > If "Don't run unconnected value" is enabled (default), the value will be control-flow-excluded. If disabled, undefined will be passed through. > [accordion] Can I use complex conditions with the Switch block? > > The Switch block accepts any input type for the condition and coerces it to a boolean. For complex conditions, you may want to evaluate them before the Switch block. ## See Also * [If/Else Block](/block-reference/logic/if-else) * [Match Block](/block-reference/logic/match) * [Bool Block](/block-reference/data/boolean) # Chunk Block Source: https://docs.odella.ai/block-reference/modifiers/chunk Split a string into an array of strings based on token count ![Chunk Block Screenshot](https://mintcdn.com/odella/MNHyQg3-ZFMTYSp3/block-reference/assets/chunk_light.png?fit=max\&auto=format\&n=MNHyQg3-ZFMTYSp3\&q=85\&s=a2216c5f4df93d0e6f1f391e3d325e9a) ## Overview The Chunk Block is used to split a string into an array of strings based on a token count. This is particularly useful for handling large text inputs that exceed token limits in Language Models (LLMs), or for truncating strings to specific token counts. ## Inputs **input** `string` *required* The string to be split into chunks. Non-string inputs will be coerced to strings. **model** `string` The AI model to use for tokenization. Only available when "Use Model Input" is enabled in settings. ## Outputs **chunks** `string[]` An array containing all the chunks after splitting the input string. **first** `string` The first chunk from the chunks array. Useful for truncating text from the start. **last** `string` The last chunk from the chunks array. Useful for truncating text from the end. **indexes** `number[]` A list of sequential numbers starting from 1, one for each chunk. Useful for filtering or zipping with the chunks array. **count** `number` The total number of chunks created. ## Editor Settings **AI Model** `string` (default: gpt-3.5-turbo) The model to use for tokenizing the text. Different models may tokenize text differently. Can be overridden by the "model" input if "Use Model Input" is enabled. **Use Model Input** `boolean` (default: false) When enabled, adds a "model" input port that can override the "AI Model" setting. **Number of tokens per chunk** `number` (default: 1024) The target number of tokens for each chunk. The actual chunk sizes may vary slightly to maintain text coherence. **Overlap (in %)** `number` (default: 0) The percentage of overlap between consecutive chunks. For example, with a 50% overlap and 1000 tokens per chunk, each chunk will share approximately 500 tokens with the next chunk. This helps maintain context between chunks. ## Example: Chunking a Long Text 1. Create a Text Block with a long piece of text. 2. Add a Chunk Block and connect the Text Block to its input. 3. Configure the desired token count and overlap in the settings. 4. Run the flow. The text will be split into chunks based on your settings. ## Error Handling The Chunk Block will automatically coerce non-string inputs into strings. No other notable error handling behavior. ## FAQ > [accordion] Why use chunking for LLMs? > > Chunking is useful to avoid hitting token count limits in LLMs. You can split a long string into multiple chunks, process each chunk separately, and then combine the results. > [accordion] How does the overlap feature work? > > The overlap percentage determines how much text is shared between consecutive chunks. For example, with 1000 tokens per chunk and 50% overlap, each chunk will share approximately 500 tokens with the next chunk. This helps maintain context and coherence between chunks. ## See Also * [Batching](/workflow/batching) * [Chat Block](/block-reference/ai/ai) * [Text Block](/block-reference/data/text) # Convert File Source: https://docs.odella.ai/block-reference/modifiers/convert-file Converts a file between PDF and DOCX formats. ## Convert File Converts a file between PDF and DOCX formats. ## Block metadata | Field | Value | | - | - | | Block ID | `convertFile` | | Display name | Convert File | | Group | Files, Modifiers | # Convert Format Source: https://docs.odella.ai/block-reference/modifiers/convert-format Converts data to a text format. ## Convert Format Converts data to a text format. * **JSON** — converts the input to a JSON string * **YAML** — converts the input to a YAML string ## Block metadata | Field | Value | | - | - | | Block ID | `convertFormat` | | Display name | Convert Format | | Group | Modifiers | # Destructure Source: https://docs.odella.ai/block-reference/modifiers/destructure Destructures the input value by extracting values at the specified paths. The paths use JSONPath notation to navigate through the value. ## Destructure Destructures the input value by extracting values at the specified paths. The paths use JSONPath notation to navigate through the value. ## Block metadata | Field | Value | | - | - | | Block ID | `destructure` | | Display name | Destructure | | Group | Objects | # Extract from Text Source: https://docs.odella.ai/block-reference/modifiers/extract-from-text Extracts structured data from text. Supports multiple formats: ## Extract from Text Extracts structured data from text. Supports multiple formats: * **JSON** — finds and parses the first JSON object or array * **YAML** — finds and parses YAML by a root property name * **Code Blocks** — extracts fenced code blocks from markdown * **Tables** — extracts tables from markdown * **Pattern** — extracts text using a regular expression ## Block metadata | Field | Value | | - | - | | Block ID | `extractFromText` | | Display name | Extract from Text | | Group | Modifiers | # Filter Block Source: https://docs.odella.ai/block-reference/modifiers/filter Filter an array based on boolean conditions ![Filter Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/filter_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=cd9cb3f0d7619da8e6499f87a3a02f2f) ## Overview The Filter Block allows you to filter an array based on a corresponding array of boolean values. It takes an array of any data type and an array of boolean values of the same length, then outputs a new array containing only the elements where the corresponding boolean value is `true`. This block is particularly useful for filtering arrays based on specific conditions, especially when combined with other blocks like [Compare](/block-reference/logic/compare) in a batched operation. ## Inputs **array** `any[]` *required* The array to be filtered. Non-array inputs will be coerced into an array. **include** `boolean[]` *required* An array of boolean values indicating whether to include each element in the array. The length of this array should match the length of the array input. ## Outputs **filtered** `any[]` The filtered array, containing only the elements where the corresponding boolean value in the include input was `true`. The output maintains the data type of the input array. ## Example: Filter numbers greater than 3 1. Create an Array Block with values `[1, 2, 3, 4, 5]`. 2. Add a Compare Block, set comparison to `>`, and enable batching. 3. Create a Number Block with value `3`. 4. Connect the Array Block to Compare Block's `A` input, and Number Block to `B` input. 5. Add a Filter Block, connect Array Block to `array` input and Compare Block's `Result` to `include` input. 6. Run the flow. The Filter Block's `filtered` output should be `[4, 5]`. ## Error Handling The Filter Block will error if: * The `array` or `include` inputs are not provided * The lengths of the input arrays do not match ## FAQ > [accordion] What happens if the lengths of the array and include inputs do not match? > > The Filter Block will error. The lengths of the array and include inputs should always match. > [accordion] Can I use the Filter Block to filter an array of objects? > > Yes, you can use the Filter Block to filter an array of any data type, including objects. Just make sure to provide an array of boolean values indicating whether to include each object in the filtered array. ## See Also * [Array Block](/block-reference/data/array) * [Compare Block](/block-reference/logic/compare) * [Number Block](/block-reference/data/number) * [Get Value Block](/block-reference/modifiers/get-value) * [Evaluate Block](/block-reference/advanced/code) * [Coalesce Block](/block-reference/logic/coalesce) * [Join Block](/block-reference/modifiers/join) # Flatten Block Source: https://docs.odella.ai/block-reference/modifiers/flatten Flatten nested arrays into a single-level array ![Flatten Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/flatten_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=c22c67b861a9256e65d158b3b7809dc2) ## Overview The Flatten Block is designed to simplify complex nested array structures by flattening them into a single-level array. This block is particularly useful when dealing with multi-dimensional arrays or when you need to process all elements of a nested structure in a linear fashion. ## Key Features * Flattens nested arrays one level deep * Preserves the order of elements from the original nested structure * Handles arrays containing both nested arrays and non-array elements ## Inputs **input** `any[][]` *required* The nested array structure to be flattened. Must be a nested array (array of arrays). Non-nested arrays or other types will result in an error. ## Outputs **output** `any[]` The resulting flattened array containing all elements from the input, with one level of nesting removed. ## Example: Flattening a Nested Array 1. Create an Array Block with a nested array structure, e.g., `[[1, 2], [3, 4], [5, 6]]`. 2. Add a Flatten Block and connect the Array Block to its `input`. 3. Run the flow. The Flatten Block's `output` will be `[1, 2, 3, 4, 5, 6]`. ## Error Handling * If no input is provided, the block will error with "Input is required" * If the input is not a nested array (array of arrays), the block will error with "Input is not a nested array" * The block will only flatten one level deep - for deeper nesting, multiple Flatten blocks can be chained ## FAQ > [accordion] Does the Flatten Block work with objects? > > No, the Flatten Block is designed to work only with nested arrays. It will error if given objects or other non-array inputs. > [accordion] How deep does the flattening go? > > The Flatten Block only flattens one level deep. For example, `[[1, [2, 3]], [4, 5]]` becomes `[1, [2, 3], 4, 5]`. To flatten deeper levels, chain multiple Flatten blocks together. ## See Also * [Array Block](/block-reference/data/array) * [Map Block](/block-reference/modifiers/flatten) * [Filter Block](/block-reference/modifiers/filter) # Get Value Source: https://docs.odella.ai/block-reference/modifiers/get-value Gets a value from an object using a path expression. ## Get Value Gets a value from an object using a path expression. Use JSONPath notation to navigate through the object, for example: * `$.name` — get the "name" field * `$.items[0]` — get the first item * `$.users[*].email` — get all user emails ## Block metadata | Field | Value | | - | - | | Block ID | `getValue` | | Display name | Get Value | | Group | Modifiers | # Hash Block Source: https://docs.odella.ai/block-reference/modifiers/hash Calculate MD5 or SHA hash of input data for equivalency comparisons ![Hash Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/hash_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=3fa9673c66c605cf2970672a2ccbdf43) ## Overview The Hash Block calculates the MD5 or SHA hash of incoming data. This block is particularly useful for performing equivalency comparisons, data integrity checks, or generating unique identifiers based on content. ## Key Features * Support for multiple hash algorithms (MD5, SHA-1, SHA-256, SHA-512) * Converts input to string before hashing * Outputs hash value as a string ## Inputs **input** `string` *required* The data to be hashed. Required. Non-string inputs will be coerced to strings. ## Outputs **hash** `string` The calculated hash value of the input data. ## Editor Settings **algorithm** `string` (default: sha256) The hash algorithm to use. Options: * `md5`: MD5 algorithm * `sha1`: SHA-1 algorithm * `sha256`: SHA-256 algorithm * `sha512`: SHA-512 algorithm ## Example: Generating a Hash for Data Comparison 1. Create a Text Block with some sample data, e.g., "Hello, World!". 2. Add a Hash Block and connect the Text Block's output to its `input`. 3. Configure the Hash Block to use SHA-256 algorithm. 4. Run the flow to see the generated hash value. ## Error Handling * If the input is undefined or null, the block will error * Invalid algorithm selections will result in an error ## FAQ > [accordion] Which hash algorithm should I use? > > The choice of algorithm depends on your specific use case. MD5 is faster but less secure, while SHA-256 and SHA-512 provide stronger security but are slightly slower. For most general purposes, SHA-256 is a good balance of security and performance. > [accordion] How are non-string inputs handled? > > All inputs are coerced to strings before hashing. Numbers, objects, and arrays will be converted to their string representations automatically. ## See Also * [Compare Block](/block-reference/logic/compare) * [Encrypt Block](/block-reference/modifiers/hash) * [Decrypt Block](/block-reference/modifiers/hash) # Index Block Source: https://docs.odella.ai/block-reference/modifiers/index Retrieve values from an array at specified indices ![Index Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/index_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=92c081e9c197ba7733c309f74f2e425d) ## Overview The Index Block allows you to retrieve values from an array at specified indices. It can return a single value when given a single index or multiple values when provided with an array of indices. This block is particularly useful for extracting specific elements from arrays or for reordering array elements based on a set of indices. ## Key Features * Retrieve a single value at a specified index * Extract multiple values using an array of indices * Supports negative indices for accessing elements from the end of the array * Option to invert the selection to get all values except those at specified indices ## Inputs **array** `any[]` *required* The input array from which to retrieve values. **indicies** `number | number[]` *required* The index or array of indices to retrieve. Can be a single number or an array of numbers. ## Outputs **output** `any | any[]` The value(s) retrieved from the input array at the specified index/indices. If a single index is provided or only one value is selected, this will be a single value. If multiple indices are provided, this will be an array of values. If no values are selected, this output will be control-flow-excluded. ## Editor Settings **invert** `boolean` (default: false) When enabled, inverts the selection to return all values except those at the specified indices. ## Example: Extracting Specific Elements from an Array 1. Create an Array Block with values `[10, 20, 30, 40, 50]`. 2. Add an Index Block and connect the Array Block to its `array` input. 3. Create a Number Block with value `2` (or an Array Block with values `[0, 2, 4]`) and connect it to the Index Block's `indicies` input. 4. Run the flow. The Index Block's `output` will be `30` (or `[10, 30, 50]` if using an array of indices). ## Error Handling * If an index is out of range (less than 0 or greater than array length), the block will throw an error * If the array input is not an array, the block will throw an error * If no values are selected, the output will be control-flow-excluded ## FAQ > [accordion] Can I use negative indices? > > Yes, negative indices are supported. They count from the end of the array, so -1 refers to the last element, -2 to the second-to-last, and so on. > [accordion] What happens if I provide duplicate indices? > > If you provide an array of indices with duplicates, the block will return the corresponding values, including duplicates. For example, with input array `[10, 20, 30]` and indices `[0, 1, 1]`, the output will be `[10, 20, 20]`. > [accordion] How does the invert option work? > > When invert is enabled, the block will return all values from the array except those at the specified indices. For example, with input array `[10, 20, 30, 40, 50]` and indices `[1, 3]`, the output with invert enabled would be `[10, 30, 50]`. ## See Also * [Array Block](/block-reference/data/array) * [Filter Block](/block-reference/modifiers/filter) * [Map Block](/block-reference/modifiers/flatten) # Join Block Source: https://docs.odella.ai/block-reference/modifiers/join Concatenate an array of strings into a single string using a specified delimiter ![Join Block Screenshot](https://mintcdn.com/odella/I7v1Fbrp2kx7rLoj/block-reference/assets/join_light.png?fit=max\&auto=format\&n=I7v1Fbrp2kx7rLoj\&q=85\&s=4d6d95f931172433564f791a4e335ceb) ## Overview The Join Block concatenates an array of strings into a single string using a specified delimiter. It's useful for formatting lists of items or joining lines of text. The block supports special characters as delimiters and can flatten input arrays before joining. ## Key Features * Concatenates multiple strings or array elements into a single string * Supports custom delimiters, including special characters like newline and tab * Can flatten nested arrays before joining * Coerces non-string inputs into strings ## Inputs **input1** `string | any[]` The first string or array to be joined. Additional numbered inputs (input2, input3, etc.) are created dynamically based on connections. **joinString** `string` The delimiter used to join the inputs. Only available when "Use Join String Input" is enabled. ## Outputs **output** `string` The resulting joined string. ## Editor Settings **flatten** `boolean` (default: true) When enabled, flattens any array inputs before joining them. **joinString** `string` (default: \n) The string used as a delimiter to join the inputs. Supports escape characters like \n (newline), \t (tab). **useJoinStringInput** `boolean` (default: false) When enabled, allows the join string to be provided via an input port instead of being set in the settings. ## Example: Join an array of strings with a newline 1. Create an Array Block with values `["apple", "banana", "cherry"]`. 2. Add a Join Block and set the Join String to `\n` in the settings. 3. Connect the Array Block to the Join Block's `input1`. 4. Run the flow. The output should be: ``` apple banana cherry ``` ## Error Handling The Join Block generally doesn't error. If an input is not provided, it outputs an empty string. ## FAQ > [accordion] Can I use special characters as the Join String? > > Yes, you can use special characters like newline (`\n`), tab (`\t`), and space (` `) as the Join String. Enter them literally in the Join String field in the settings. > [accordion] Can I join an array of non-string values? > > Yes, you can join an array of any data type. The values will be coerced into strings before joining. > [accordion] Can I use a dynamic Join String? > > Yes, enable the "Use Join String Input" setting to create a new input port for the Join String. ## See Also * [Split Text Block](/block-reference/modifiers/chunk) * [Array Block](/block-reference/data/array) * [Text Block](/block-reference/data/text) * [Code Block](/block-reference/advanced/code) # Merge PDFs Source: https://docs.odella.ai/block-reference/modifiers/merge-pdf Merges multiple PDF files into a single PDF document. ## Merge PDFs Merges multiple PDF files into a single PDF document. The files will be merged in the order they are provided. Supports up to 10 input ports, each accepting either a single file or an array of files. ## Block metadata | Field | Value | | - | - | | Block ID | `mergePDF` | | Display name | Merge PDFs | | Group | Modifiers | # Pop Block Source: https://docs.odella.ai/block-reference/modifiers/pop Remove and return the first or last element from an array ![Pop Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/pop_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=78c2b187e647ec2a69ab02d66de80230) ## Overview The Pop Block removes either the first or last element from an array and outputs both the removed element and the remaining array. By default, it pops the last element. This block is useful for processing array elements one by one in a loop. ## Key Features * Removes and returns the first or last element of an array * Outputs both the popped element and the remaining array * Configurable to pop from the front or back of the array * Useful for iterative array processing ## Inputs **array** `any[]` *required* The array to pop from. Required. Non-array inputs will not be coerced. ## Outputs **lastItem** `any` The popped element. Will be labeled as "First" if popping from front, "Last" if popping from back. **restOfArray** `any[]` The remaining elements of the array after popping. ## Editor Settings **fromFront** `boolean` (default: false) If enabled, the first element of the array will be popped instead of the last. ## Example: Pop the last element from an array 1. Create an Array Block with values `["John", "Doe", "30", "Engineer"]`. 2. Add a Pop Block and connect the Array Block to its `array` input. 3. Run the flow. The `Last` output should be `"Engineer"` and the `Rest` output should be `["John", "Doe", "30"]`. ## Example: Pop the first element from an array 1. Create an Array Block with values `["John", "Doe", "30", "Engineer"]`. 2. Add a Pop Block, enable the `Pop from front` setting, and connect the Array Block to its `array` input. 3. Run the flow. The `First` output should be `"John"` and the `Rest` output should be `["Doe", "30", "Engineer"]`. ## Error Handling The Pop Block will error if: * The `array` input is not provided * The input is not an array * The input array is empty ## FAQ > [accordion] Can I pop multiple elements from an array at once? > > No, the Pop Block can only pop one element at a time. To remove multiple elements, use multiple Pop Blocks in sequence. > [accordion] Can I use the Pop Block to pop elements from a string? > > No, the Pop Block only works with arrays. For string manipulation, consider using a Code Block with custom JavaScript. > [accordion] What if the array is empty? > > The Pop Block will error if the array is empty. Use an If Block to check if the array is empty before popping from it. ## See Also * [Array Block](/block-reference/data/array) * [Slice Block](/block-reference/modifiers/slice) * [Code Block](/block-reference/advanced/code) * [Loops guide](/workflow/loops) # Shuffle Block Source: https://docs.odella.ai/block-reference/modifiers/shuffle Randomize the order of elements in an array ![Shuffle Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/shuffle_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=81b2b41307545ed58486a3fc4ea97252) ## Overview The Shuffle Block randomizes the order of elements in an array. It's like shuffling a deck of cards - you give it a list of items, and it mixes them up into a random order. This is useful when you want to randomize a playlist, create random selections, or add variety to any ordered list. ## Key Features * Randomly reorders any list of items * Creates a new shuffled list (keeps your original list unchanged) * Works with any type of items (numbers, text, objects, etc.) * Automatically handles single items by treating them as a one-item list ## Inputs **array** `any[]` *required* The list of items you want to shuffle. If you input a single item instead of a list, it will be treated as a one-item list. ## Outputs **shuffled** `any[]` A new list containing all your input items in a random order. ## Example: Shuffle a List of Numbers 1. Create an Array Block with numbers `[1, 2, 3, 4, 5]` 2. Add a Shuffle Block and connect the Array Block to its `array` input 3. Run the flow. The Shuffle Block's `shuffled` output will contain the same numbers in a random order, like `[3, 1, 5, 2, 4]` ## Error Handling * If nothing is connected to the input, the block will output an empty list * If you input a single item instead of a list, it will work fine - it just treats it as a one-item list ## FAQ > [accordion] Can I shuffle a list of anything, not just numbers? > > Yes! You can shuffle lists of any type of items - text, numbers, objects, or even mixed content. > [accordion] Does shuffling change my original list? > > No, your original list stays exactly the same. The Shuffle Block creates a new list with the items in a random order. > [accordion] How random is the shuffle? > > The shuffle is random enough for most everyday purposes (like shuffling songs or cards), but shouldn't be used for security or gambling purposes where you need true randomness. ## See Also * [Array Block](/block-reference/data/array) * [Filter Block](/block-reference/modifiers/filter) * [Join Block](/block-reference/modifiers/join) * [Code Block](/block-reference/advanced/code) * [RNG Block](/block-reference/modifiers/shuffle) # Slice Block Source: https://docs.odella.ai/block-reference/modifiers/slice Extract a portion of an array based on specified start index and count ![Slice Block Screenshot](https://mintcdn.com/odella/PGZ7enNCqh0mvwj_/block-reference/assets/slice_light.png?fit=max\&auto=format\&n=PGZ7enNCqh0mvwj_\&q=85\&s=3ee8380a0e0b5c68ea14b0850e23c8cc) ## Overview The Slice Block extracts a portion of an array. It takes an array as input and outputs a new array that starts at a specified index and contains a specified number of elements. This block is useful for manipulating arrays, such as extracting a subset of data from a larger dataset. ## Key Features * Extract a subset of elements from an array * Configurable start index and count * Option to provide start and count values via input ports * Handles empty/undefined inputs gracefully ## Inputs **input** `any[]` *required* The array to be sliced. **start** `number` The index at which to start the slice. Only available when "Use Start Input" is enabled. **count** `number` The number of elements to include in the slice. Only available when "Use Count Input" is enabled. ## Outputs **output** `any[]` The sliced array containing the extracted elements from the input array. ## Editor Settings **start** `number` (default: 0) The index at which to start the slice. If not provided, defaults to 0. **count** `number` The number of elements to include in the slice. If not provided, includes all elements from start to end. **useStartInput** `boolean` (default: false) When enabled, allows the start index to be provided via an input port instead of being set in the settings. **useCountInput** `boolean` (default: false) When enabled, allows the count to be provided via an input port instead of being set in the settings. ## Example: Slice an array 1. Create an Array Block with values `[1, 2, 3, 4, 5]`. 2. Add a Slice Block and set the `Start` to `2` and the `Count` to `2`. 3. Connect the Array Block to the Slice Block's `input`. 4. Run the flow. The Slice Block's `output` should be `[3, 4]`. ## Error Handling * The block will error if the `input` is not provided or is not an array * If start or count inputs are enabled but not connected, the block will use the default values * Using a negative count will result in an error ## FAQ > [accordion] What happens if the Start is greater than the length of the array? > > The Slice Block will return an empty array. > [accordion] What happens if the Count is greater than the number of elements in the array? > > The Slice Block will return all elements from the Start to the end of the array. > [accordion] Can I use negative numbers for the Start and Count? > > You can use negative numbers for the Start to count from the end of the array. However, using a negative number for the Count will result in an error. ## See Also * [Array Block](/block-reference/data/array) * [Get Value Block](/block-reference/modifiers/get-value) * [Code Block](/block-reference/advanced/code) * [Split Text Block](/block-reference/modifiers/chunk) * [Join Block](/block-reference/modifiers/join) # Schedule Source: https://docs.odella.ai/block-reference/triggers/trigger-schedule Run workflow on a schedule using cron expressions. Configure the cron expression and timezone to schedule when the workflow should execute. ## Schedule Run workflow on a schedule using cron expressions. Configure the cron expression and timezone to schedule when the workflow should execute. ## Block metadata | Field | Value | | - | - | | Block ID | `trigger:schedule` | | Display name | Schedule | | Group | Triggers | # Oneleet security 2026 10 31 Source: https://docs.odella.ai/docs/oneleet-security-2026-10-31 # Oneleet dependency remediation — October 31, 2026 Generated lockfiles cover the currently published patches without blanket latest-version updates. Source changes do not close monitored-main alerts until approved integration/provider refresh (and artifact rebuild where relevant). fast-uri >=3.1.9, QS >=6.16.1, Undici 7 >=7.30.1 and follow-redirects >=1.16.2. The Undici 7 advisory surfaced during this remediation pass; it is included rather than left for a later scanner refresh. ## Validation All three generated-lock/override regression tests passed. Full Mintlify build was not run. ## Remaining gates Develop and main have divergent ancestry. This branch deliberately preserves develop; no force reset, unrelated doc merge or default-branch change was performed. Approved main integration must retain the newer documentation commits. Existing React peer warnings remain visible, not hidden. # Create and configure stores Source: https://docs.odella.ai/documents/create-and-configure Create a Document Store, define AI-extracted metadata, choose an ingestion model, and connect sync sources. Creating a Document Store turns a collection of files into a structured, searchable knowledge vault. The setup flow is designed to help you decide what the store is for, where documents come from, what AI should extract, and how the store should be processed. > [!NOTE] > > This guide describes standard Document Stores for knowledge and extraction. > Create protected signing-record stores through [E-signing > setup](/templates/05_e-signing); they do not accept ordinary uploads or sync > imports. ## When to create a new store Create a separate store when the documents share a clear business purpose, audience, or governance boundary. Good examples include: * A contract library * A policy and procedure vault * A matter or project document set * An invoice and purchase order store * An HR records store * A board papers or meeting minutes store Avoid creating one large catch-all vault for unrelated material. Smaller, focused stores are easier to search, connect to workers, and govern. ## Step 1: General settings Start by giving the store a clear identity. | Field | What it does | | - | - | | **Name** | The store name shown in the library, breadcrumbs, and selection menus. | | **Description** | Explains what belongs in the store and how the store should be used. | Good descriptions help teammates and AI Employees understand whether the store is relevant to a task. ## Step 2: Sync sources You can connect cloud folders during setup or skip this step and upload files manually later. Supported sync sources include: * **Google Drive** * **OneDrive** When you connect a folder, configure: | Setting | What it does | | - | - | | **Connection Name** | Human-readable name for the synced folder. | | **Description** | Optional context about what the folder contains. | | **Include subfolders** | Imports files from nested folders as well as the selected folder. | | **Sync existing files** | Imports current files immediately. New files continue to sync automatically. | Use sync sources for folders that should stay current over time. Use manual upload for one-off batches or ad hoc files. ## Step 3: Metadata columns Columns define the structured metadata AI should extract from every document. These columns appear in the document table and can be searched, filtered, sorted, reviewed, and exported. Use columns for business fields you actually care about, such as: * Contract value * Effective date * Renewal terms * Vendor * Policy owner * Deadline * Parties * Matter number * Key decisions * Action items ### Built-in templates You can start from a document type template or build a custom schema. Templates include: * Invoices & Bills * Employment Contracts * Contracts & Agreements * Receipts & Expenses * Real Estate * HR Documents * Policies & Procedures * Medical Records * Legal & Court Filings * Meeting Notes * Project Documents * Tax Documents * Bank Statements * Purchase Orders * Training & Certs * Insurance * Custom ### Column design tips * Keep columns focused on information you will use. * Prefer clear business names, such as **Renewal Terms** or **Approved By**. * Add useful descriptions so AI knows exactly what to extract. * Avoid duplicating system fields like file name, document ID, status, MIME type, or timestamps. * Start smaller if unsure. You can add columns later and choose whether to process existing files. > [!NOTE] > > When changing columns later, choose **New files only**, **Fill existing files > too**, or **Rename labels only**. Only the reprocessing option re-runs > extraction on existing documents and is billed per page. See [Store > settings](/documents/settings-and-integrations#change-metadata-columns). ## Step 4: AI model Choose the model used to extract metadata from documents. The model affects extraction quality, speed, and cost. Faster models generally cost less. Stronger models can improve extraction quality for complex or messy documents. The model selector shows the resolved model and estimated cost per 1,000 pages where available. ## Step 5: Review and create Before creating the store, review: * Store name and description * Connected sync sources * Metadata columns * AI model selection Once created, the store opens to its document table, where you can upload files, review processing status, search content, and manage documents. ## Best practices * Create stores around clear domains or business processes. * Use descriptions to tell people what belongs in the store. * Connect cloud folders only when the source should stay synced. * Design metadata columns around decisions, reporting, and retrieval. * Choose stronger extraction models for documents with complex structure or high accuracy requirements. * Reprocess schemas deliberately because it can consume credits. # Manage documents Source: https://docs.odella.ai/documents/manage-documents Upload, search, preview, export, download, and delete documents in a Document Store. ## Work With Documents in a Vault Each Document Store opens to a document table. The table combines the original files, processing status, and AI-extracted metadata columns you configured for the store. This is where you upload new files, monitor processing, search across content, review extracted fields, preview documents, and export or download results. > [!NOTE] > > These upload, search, reprocessing, and deletion instructions apply to > standard stores. [Signing-record > stores](/documents/settings-and-integrations#signing-record-stores) hold > protected signed copies and evidence, with no manual upload, sync, AI > indexing, or deletion. ## Adding Documents You can add documents in three ways: > [card] Upload manually > > Click **Add Documents** and choose files from your computer. > [card] Drag and drop > > Drop supported files directly into the document table. > [card] Sync folders > > Import documents automatically from connected Google Drive or OneDrive > folders. Supported upload types include common document, Office, spreadsheet, presentation, text, CSV, HTML, Markdown, RTF, and EPUB files. The current manual uploader accepts supported files up to **50MB** each. Follow the limit displayed by your account if it differs. When files are uploaded, they are queued and processed. The table shows processing states while metadata extraction runs. ## Document Table The document table is the main working surface for a store. | Feature | What it does | | - | - | | **AI-extracted columns** | Shows metadata fields defined by the store schema. | | **Search** | Uses hybrid search across metadata and document content. | | **Filter** | Filters rows by available columns. | | **Sort** | Sorts rows by selected columns. | | **Refresh** | Reloads the latest document state. | | **Pagination** | Displays documents in pages, with row counts in the footer. | | **Row selection** | Selects one or more documents for bulk actions. | ## Search and Retrieval Document search uses hybrid retrieval across document text and metadata. This means you can search for exact business fields, document names, and semantic concepts from the file content. Examples: * “leases expiring next quarter” * “Acme vendor invoices” * “documents mentioning termination for convenience” * “policies owned by security” * “meeting notes with budget action items” If no results match, clear the search to return to the full table. ## Previewing Documents Click a document to open it in a document preview. The table remains available, and open previews appear as closable tabs. | File type | Behaviour | | - | - | | **PDF** | Opens in the built-in PDF viewer with download and print controls. | | **DOCX** | Opens in the built-in document viewer. | | **Other supported files** | Shows a download prompt if browser preview is unavailable. | | **Text-only synced files** | Shows that the original file is not stored if the sync strategy did not retain it. | Preview tabs are useful when you need to check the source document while comparing extracted metadata in the table. ## Bulk Actions Select one or more rows to take action on documents. | Action | What it does | | - | - | | **Export** | Downloads selected metadata as a CSV. | | **Download** | Downloads selected original files in bulk. | | **Delete** | Removes selected documents from the store. | > [!WARNING] > > Deleting documents removes them from the store. Export metadata or download > files before deleting anything you need to preserve. ## Processing Status Uploaded and synced files are processed before their metadata is fully available. While processing, documents may show queued or in-progress states. For a failed document, inspect the reported error and correct the source or provider connection. Use the available reprocessing action where permitted. Before re-uploading or re-syncing, check whether the original document is already present to avoid duplicate records. ## Best Practices * Upload related documents into focused stores instead of mixing unrelated material. * Check processing status after large uploads or sync imports. * Use search for semantic discovery and filters for structured review. * Export CSV metadata when you need reporting or spreadsheet analysis. * Preview source files when reviewing important AI-extracted fields. * Delete carefully; use bulk actions only after confirming the selected rows. # Overview Source: https://docs.odella.ai/documents/overview Understand Document Stores: searchable knowledge vaults for files, metadata, workflows, and AI Employees. ## Turn Documents Into Searchable Knowledge Document Stores are searchable knowledge vaults for your organization. Upload or sync files, extract structured metadata with AI, search across content and columns, and make trusted source material available to workflows and AI Employees. > [card] Searchable Knowledge Vaults > > Store document collections as governed knowledge bases with table views, > metadata, and search. > [card] AI-Extracted Metadata > > Define columns such as dates, parties, values, owners, deadlines, or > summaries and let AI fill them from each document. > [card] Cloud Folder Sync > > Connect Google Drive or OneDrive folders so documents can be imported and > kept up to date. > [card] Workforce Ready > > Add stores to AI Employees as Knowledge capabilities so they can retrieve > the right context during work. ## Signing requests and records Documents also includes [Signing requests](/documents/signing-records). Track prepared and sent requests there; completed PDFs and evidence are filed in protected signing stores. These stores do not support ordinary uploads, sync, AI indexing, or deletion. See [E-signing](/templates/05_e-signing) to prepare templates and invitations. ## What Document Stores Are For Use a Document Store when you want a governed collection of files to become searchable, structured, and useful to automation. Common use cases include: * Contract and agreement libraries * Invoices, purchase orders, and receipts * Policies, procedures, and compliance records * Legal filings and matter documents * HR records and employment documents * Project documentation and status reports * Training, insurance, medical, tax, and financial records ## Store Library The Document Stores home page has two views: | View | What it contains | | - | - | | **My Vaults** | Account stores visible to you, subject to their access rules and store type. Standard stores can be connected as worker knowledge. | | **Public Stores** | Shared public datasets or resources that can be browsed when available. | You can search stores by name, subtitle, or description, and create a new private vault from the library.