Documentation
HomeAPISign In
  • Getting Started
    • Overview
      • Core Concepts
      • Building your First Workflow
    • API Reference
  • Your Data
    • Brand Kits
    • Knowledge Bases
      • Add Data
        • Upload Files
        • Web Scrape
        • Import from Google Drive
        • Import from SQL Database
        • Import from Shopify
      • Knowledge Base Search
      • Knowledge Base Metadata
      • Knowledge Base API
  • Building Workflows
    • Workflow Concepts
      • Workflow Inputs
        • Input Types
      • Workflow Outputs
      • Variable Referencing
      • Liquid Templating
    • Workflow Steps
      • AI
        • Prompt LLM
          • Model Selection Guide
          • Prompting Guide
        • Transcribe Audio File
      • Web Research
        • Google Search
        • Web Page Scrape
      • Code
        • Run Code
        • Call API
        • Format JSON
        • Run SQL Query
        • Write Liquid Text
      • Flow
        • Condition
        • Iteration
        • Human Review
        • Content Comparison
        • Error
      • Data
        • Read from Grid
        • Write to Grid
        • Search Knowledge Base
        • Write to Knowledge Base
        • Get Knowledge Base File
      • AirOps
        • Workflow
        • Agent
      • Image & Video
        • Generate Image with API
        • Search Stock Images
        • Fetch Stock Image with ID
        • Resize Image
        • Screenshot from URL
        • Create OpenGraph Image
        • Create Video Avatar
      • SEO Research
        • Semrush
        • Data4SEO
      • Content Quality
        • Detect AI Content
        • Scan Content for Plagiarism
      • Content Processing
        • Convert Markdown to HTML
        • Convert PDF URL to Text
        • Group Keywords into Clusters
      • B2B Enrichment
        • Hunter.io
        • People Data Labs
      • CMS Integrations
        • Webflow
        • WordPress
        • Shopify
        • Contentful
        • Sanity
        • Strapi
      • Analytics Integrations
        • Google Search Console
      • Collaboration Integrations
        • Gmail
        • Google Docs
        • Google Sheets
        • Notion
        • Slack
    • Testing and Iteration
    • Publishing and Versioning
  • Running Workflows
    • Run Once
    • Run in Bulk (Grid)
    • Run via API
    • Run via Trigger
      • Incoming Webhook Trigger
      • Zapier
    • Run on a Schedule
    • Error Handling
  • Grids
    • Create a Grid
      • Import from Webflow
      • Import from Wordpress
      • Import from Semrush
      • Import from Google Search Console
    • Add Columns in the Grid
    • Run Workflows in the Grid
      • Add Workflow Column
      • Run Workflow Column
      • Map Workflow Outputs
      • Review Workflow Run Metadata
    • Review Content in the Grid
      • Review Markdown Content
      • Review HTML Content
      • Compare Content Difference
    • Publish to CMS from Grid
    • Pull Analytics in the Grid
    • Export as CSV
  • Copilot
    • Chat with Copilot
    • Edit Workflows with Copilot
    • Fix Errors with Copilot
  • Monitoring
    • Task Usage
    • Analytics
    • Alerts
    • Execution History
  • Your Workspace
    • Create a Workspace
    • Folders
    • Settings
    • Billing
    • Use your own LLM API Keys
    • Secrets
    • Team and Permissions
  • Chat Agents (Legacy)
    • Agent Quick Start
    • Chat Agents
    • Integrate Agents
      • Widget
      • Client Web SDK
  • About
    • Ethical AI and IP Production
    • Principles
    • Security and Compliance
Powered by GitBook
On this page
  • What is a Knowledge Base Write Step?
  • How to Configure the Knowledge Base Write Step
  • Select a Knowledge Base
  • Text
  • Metadata
  • Knowledge Base Write for Maintaining State

Was this helpful?

  1. Building Workflows
  2. Workflow Steps
  3. Data

Write to Knowledge Base

Add a document to a Knowledge Base

Last updated 9 months ago

Was this helpful?

What is a Knowledge Base Write Step?

The Knowledge Base Write step allows you add content to an existing Knowledge Base. You can add both searchable content which will be converted into embeddings and metadata content which can be retrieved and filtered on.

Learn how to set up an AirOps Knowledge Base .

How to Configure the Knowledge Base Write Step

Select a Knowledge Base

Select the name of your Knowledge Base from the dropdown.

Text

The file, text, or data you want to make searchable.

Metadata

Metadata that you want to assign to the embeddings in a JSON format such as:

{
    "title": "...",
    "description": "...",
    "tag": "..."
}

Metadata allows you toin the Knowledge Base Search Step

Knowledge Base Write for Maintaining State

One challenge in managing workflows with LLMs is ensuring continuity by keeping track of past decisions. For example, in creating a workflow that leverages a LLM to scour a website for "recent news" to suggest content ideas, it's crucial to have a mechanism in place for logging previous suggestions. This helps prevent the recurrence of ideas, maintaining the novelty and relevance of the content generated.

Knowledge Bases can we help with this. By implementing the following framework you can solve this issue :

Before starting, create a new, empty Knowledge Base. Then, in your workflow, add the following :

  1. Knowledge Base Search Step - Search Knowledge Bases for today's date. It will retrieve the most recent entries added to that Knowledge Base.

  2. LLM Step - Provide ~5-10 outputs from the Knowledge Base Search Step to your model with a prompt like "Here are outputs you have provided previously, please do not repeat any of these ideas:"

Any question, please contact us.

Knowledge Base Write Step - Write to the Knowledge Base with today's date (see for more info) in the search column and add the output in a metadata column. This will mean that only the date will be used when the Knowledge Base is searched.

here
Liquid docs