View as Markdown
Speak AI icon

Speak AI ACTION

Run AI Chat

Ask a question about Speak AI media and get the answer back. Scope the question to specific media files, to a whole folder, or to both. Answers are only as good as the prompt, so be specific about the output wanted. Media must finish analyzing first. See the documentation.
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Speak AI account once, then configure and run Run AI Chat 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: "speak_ai-run-ai-chat",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    speak_ai: { authProvisionId: "apn_xxxxxxx" },
    prompt: "Prompt",
    folderId: "Folder 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.

Run AI Chat inputs
Property Type Description
prompt Prompt string
The question or instruction for the AI to answer about the media, e.g. Summarize the key action items from this transcript. Be as descriptive as possible to get an accurate answer
Required
folderId Folder ID string
A Speak AI folder ID, for example 905c208f1c07. Get it from the folderId field returned by Speak AI. Answer the prompt from every media file in this folder. Set this, Media IDs, or both.
Optional Dynamic
mediaIds Media IDs string[]
One or more Speak AI media IDs to answer the prompt from, e.g. f8eb3c22bec3. Returned as mediaId by Upload Media and by every media trigger in this app
Optional Dynamic
assistantType Assistant Type string
The assistant persona used to answer the prompt: general (default), researcher for academic analysis, marketer for content, sales for deal insights, or recruiter for hiring
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
speak_ai-run-ai-chat
Version
0.0.2
App
Speak AI
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes