View as Markdown
DailyBot icon

DailyBot ACTION

Send Message

Dispatches a message to designated users or groups in DailyBot. Required are the message content and recipients' IDs, and channels or rooms are optional targets. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's DailyBot account once, then configure and run Send Message 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: "dailybot-send-message",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    dailybot: { authProvisionId: "apn_xxxxxxx" },
    targetUsers: ["Target User IDs"],
    targetTeams: ["Target Teams IDs"],
  },
})

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.

Send Message inputs
Property Type Description
targetUsers Target User IDs string[]
The IDs of the target users.
Optional Dynamic
targetTeams Target Teams IDs string[]
The IDs of the target teams. All members involved in those teams will receive the message.
Optional Dynamic
messageContent Message Content string
The content of the message.
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
dailybot-send-message
Version
0.0.2
App
DailyBot
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes