Tools

Tool actions help you process data, interact with external services, and handle various tasks within your workflow. Each tool is designed for a specific purpose, making it easy to build powerful workflows without complex coding.

Extract text

The extractText action pulls text content from various document formats like PDFs, Word documents, or PowerPoint presentations. When you feed a document into this action, it processes the content while maintaining its structure, making it ready for analysis or further processing in your workflow.

Convert to images

The convertToImages action transforms document pages into images that can be processed by AI models. This is particularly useful when working with PDFs that you want to analyze visually or when you need to feed document content into image-processing models.

Scrape website

Use the scrapeWebsite action to extract content from web pages. This action can pull text from a given URL and, if needed, follow and extract content from linked pages as well. You can control how deep it should go and what content to extract.

Request URL

The requestUrl action lets you make HTTP requests to external services. You can configure:

  • The HTTP method (GET, POST, etc.)

  • Request headers and authentication

  • Request body and parameters

  • How to handle the response

This action is essential for integrating external APIs and services into your workflow.

Query database

With the queryDatabase action, you can execute SQL queries against your connected databases. The action handles the connection details and returns the results in a format that's easy to use in subsequent actions. You can use parameters in your queries to make them dynamic based on workflow data.

Learn more about managing your database connections →

Search knowledge base

The searchKnowledgeBase action performs similarity searches in your vector stores. Provide a natural language description of what you're looking for, and it will find the most relevant content. This is powerful for:

  • Finding relevant documentation

  • Retrieving similar examples

  • Matching content based on meaning rather than exact words

After retrieving the content from your knowledge base, you can use it within your Prompt action to perform what is known as Retrieval Augmented Generation (RAG).

Learn more about the Prompt action →

Run code

The runCode action gives you the flexibility to execute custom JavaScript code. This is useful when you need specific data transformations or logic that isn't covered by other actions. Your code has access to:

  • Data from previous actions

  • Built-in libraries for data processing

  • Custom functions and utilities

Converge

Use the converge action when you have multiple branches coming together and need to specify which outputs to use. This action helps you manage data flow by selecting and combining outputs from different paths in your workflow.

The converge action is particularly useful in workflows with:

  • Parallel processing paths

  • Conditional branches

  • Multiple data sources

Last updated