View as Markdown
VectorShift icon

VectorShift ACTION

Add Data to Knowledge Base

Adds data to a knowledge base in VectorShift. See the documentation.
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's VectorShift account once, then configure and run Add Data to Knowledge Base from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "vectorshift-add-data-to-knowledge-base",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    vectorshift: { authProvisionId: "apn_xxxxxxx" },
    knowledgeBaseId: "Knowledge Base ID",
    url: "URL",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Add Data to Knowledge Base inputs
Property Type Description
knowledgeBaseId Knowledge Base ID string
The ID of the knowledge base
Required Dynamic
url URL string
URL to add to the knowledge base
Required
recursive Recursive boolean
Whether the scrape is recursive or not
Required
rescrapeFrequency Rescrape Frequency string
The frequency to rescrape the URL
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
vectorshift-add-data-to-knowledge-base
Version
0.0.2
App
VectorShift
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes