View as Markdown
Nifty icon

Nifty ACTION

Create Message

Sends a new message in a team's discussion. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Nifty account once, then configure and run Create 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: "nifty-create-message",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    nifty: { authProvisionId: "apn_xxxxxxx" },
    projectId: "Project ID",
    text: "Text",
  },
})

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.

Create Message inputs
Property Type Description
projectId Project ID string
The unique identifier for the project
Required Dynamic
text Text string
The content of the message.
Required
messageLocation Message Location string
Where the message will be posted.
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
nifty-create-message
Version
0.0.3
App
Nifty
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes