View as Markdown
DocsBot AI icon

DocsBot AI ACTION

Ask Question

Ask a question to a specific bot in a specific team. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's DocsBot AI account once, then configure and run Ask Question 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: "docsbot_ai-ask-question",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    docsbot_ai: { authProvisionId: "apn_xxxxxxx" },
    teamId: "Team ID",
    botId: "Bot ID",
  },
})

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.

Ask Question inputs
Property Type Description
teamId Team ID string
The ID of the team
Required Dynamic
botId Bot ID string
The ID of the bot
Required Dynamic
question Question string
The question to ask the bot (2 to 2000 characters)
Required
fullSource Full Source boolean
Whether the full source content should be returned
Optional
format Format string
How to format the answer
Optional
history Chat History string[]
The chat history array
Optional
metadata Metadata object
A user identification object with arbitrary metadata about the the user. Will be saved to the question history log. Keys referrer, email, and name are shown in question history logs
Optional

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
docsbot_ai-ask-question
Version
0.0.3
App
DocsBot AI
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes