View as Markdown
FlowiseAI icon

FlowiseAI ACTION

Make Prediction

Calculates an output based on your created flow in Flowise. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's FlowiseAI account once, then configure and run Make Prediction 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: "flowiseai-make-prediction",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    flowiseai: { authProvisionId: "apn_xxxxxxx" },
    flowId: "Flow 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.

Make Prediction inputs
Property Type Description
flowId Flow ID string
The unique identifier of the flow you'd like to use for computations.
Required
question Question string
User's question. E.g. Hey, how are you?
Required
history History object
Provide list of history messages to the flow. Only works when using Short Term Memory. E.g. [ { "message": "Hello, how can I assist you?", "type": "apiMessage" }, { "type": "userMessage", "message": "Hello I am Bob" }, { "type": "apiMessage", "message": "Hello Bob! how can I assist you?" } ]
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
flowiseai-make-prediction
Version
0.0.2
App
FlowiseAI
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes