Skip to content

Mission 3: Combine with Your Flows

Estimated time: 10 minutes


Learning Objective

Learn how to integrate AI Agents into Flows by connecting different BLOX components. You will understand how to automate the process of adding documents to your AI Agent, enabling more efficient and scalable workflows.


Dataset

Download the required document: Titancraft_Company_Profile.pdf


Prerequisites

Please refer to the Navigation Guide to familiarize yourself with the platform interface.

Understanding Flow Structure

If you're new to Flows and BLOX, we recommend reviewing Mission 2: First Flow to understand the basics of working with logic flows.


BLOX Used in This Mission

BLOX Components

BLOX used in this mission
  • Basics/Input - For file upload
  • AI/Create AI Agent - For document integration

Step-by-Step Instructions

1. Create a New Flow

In the folder, click on the "Add Item" button.

2. Name Your Flow

Add a new Flow and call it "AI Flow".

3. Add BLOX Components

Open the Flow. Right-click on the flow canvas to call the Smart Assistant, then search for and add:

  • "Create AI Agent" BLOX

  • "Input" BLOX

Add BLOX Components

Add "Create AI Agent" and "Input" BLOX to the Flow

4. Configure the Input BLOX

  1. Give the "Input" BLOX a name
  2. Open the options
  3. Choose "File" as the input type

Configure Input BLOX

Configure the Input BLOX with File type

5. Configure the Create AI Agent BLOX

  1. Click on the "Create AI Agent" BLOX
  2. Enable with the eye symbol that files can be connected
  3. Set "Document Database" to your AI agent

Configure Create AI Agent BLOX

Configure the Create AI Agent BLOX - enable file connection and set Document Database

6. Connect the BLOX

Connect the two BLOX as shown in the picture below.

Connected BLOX

Connected BLOX components

7. Test the Flow

Upload a PDF file in the "Input" BLOX to test. The Flow should automatically add the PDF document to the AI Agent.

New Documents Added

New documents successfully added to AI Agent

How It Works

  1. File Input - The Input BLOX receives a PDF file
  2. Connection - The file is passed to the Create AI Agent BLOX
  3. Document Upload - The AI Agent automatically processes and indexes the document
  4. Knowledge Base Update - The agent's knowledge is enhanced with the new document

Benefits of Flow Integration

  • Automation - No manual document uploads required
  • Scalability - Process multiple documents automatically
  • Integration - Connect with other data sources and workflows
  • Efficiency - Streamline the document training process
  • Consistency - Ensure all documents are processed uniformly

Future Possibilities

API Integration

Later you'll learn how to create APIs in Module 6. Once you have learned that, you will be able to seamlessly integrate the document upload process into your workflows for even greater automation and flexibility.


Use Cases

Scenario Application
Automated Updates Automatically add new company documents to AI Agent
Batch Processing Upload multiple PDFs at once via workflow
Integration Connect document management systems to AI Agent
Scheduled Updates Trigger document uploads on a schedule

Summary

You've successfully learned how to:

✓ Create Flows for AI Agent automation

✓ Use the Input BLOX for file uploads

✓ Configure the Create AI Agent BLOX

✓ Connect BLOX components together

✓ Automate document uploads to AI Agents

✓ Understand the benefits of workflow integration


Well done! Now let's move on to the next mission!