View as Markdown
Chat Data icon

Chat Data ACTION

Create Chatbot

Create a chatbot with the specified properties. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Chat Data account once, then configure and run Create Chatbot 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: "chat_data-create-chatbot",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    chat_data: { authProvisionId: "apn_xxxxxxx" },
    chatbotName: "Chatbot Name",
    sourceText: "Source Text",
  },
})

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.

Create Chatbot inputs
Property Type Description
chatbotName Chatbot Name string
Name of the Chatbot
Required
sourceText Source Text string
Text data for the chatbot, subject to character limits based on your plan. Relevant only if the model is custom-data-upload
Optional
urlsToScrape URLs to Scrape string[]
A list of URLs is for text content extraction by Chat Data, i.e.: https://www.chat-data.com. Relevant only if the model is custom-data-upload
Optional
customBackend Custom Backend string
The URL of a customized backend for the chatbot
Optional
model Model string
The chatbot defaults to custom-data-upload if the model parameter is not provided
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
chat_data-create-chatbot
Version
0.0.2
App
Chat Data
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes