View as Markdown
Wonderchat icon

Wonderchat ACTION

Ask Question

Ask a question to a WonderChat chatbot and receive a response. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Wonderchat 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: "wonderchat-ask-question",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    wonderchat: { authProvisionId: "apn_xxxxxxx" },
    chatbotId: "Chatbot ID",
    question: "Question",
  },
})

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
chatbotId Chatbot ID string
The ID of the chatbot you want to chat with. Can be found in the URL or share link of the chatbot.
Required
question Question string
The question you wish to ask your chatbot
Required
chatlogId Chatlog ID string
The ID of your current chat session for conversation continuity. Found under the Chatlog Details in the WonderChat UI.
Optional
context Context string
Additional custom context about the chat session (e.g., user information)
Optional
contextUrl Context URL string
URL of the page the user is on to provide additional context
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
wonderchat-ask-question
Version
0.0.1
App
Wonderchat
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes