View as Markdown
Yespo icon

Yespo ACTION

Generate Event

Sends an event to the specified user. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Yespo account once, then configure and run Generate Event 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: "yespo-generate-event",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    yespo: { authProvisionId: "apn_xxxxxxx" },
    eventTypeKey: "Event Type Key",
    keyValue: "Key Value",
  },
})

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.

Generate Event inputs
Property Type Description
eventTypeKey Event Type Key string
Event type ID key. If no such event type exists with such a key, a new one is created. All characters are allowed except < ;' \ / | " ` ' ^ ? ! , >
Required
keyValue Key Value string
Event key. Determines event uniqueness. The key must contain a unique value for each contact (for example, email, phone number, external contact id, etc.)
Optional
params Params object
event parameters represented as an object of "key" - "value" pairs. The parameter keys are arbitrary.
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
yespo-generate-event
Version
0.0.2
App
Yespo
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes