View as Markdown
Ortto icon

Ortto ACTION

Create Custom Activity

Creates a unique activity for a person. Can optionally initialize a new record beforehand. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Ortto account once, then configure and run Create Custom Activity 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: "ortto-create-custom-activity",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ortto: { authProvisionId: "apn_xxxxxxx" },
    activityId: "Activity Id",
    attributes: "Attributes",
  },
})

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 Custom Activity inputs
Property Type Description
activityId Activity Id string
The Id of the activity definition. To find Activity ID, login into your Ortto app > CDP > Activities > Select an activity, then you can find the Activity ID in the browser URL as https://ortto.app/{Org}/activities/{Activity_ID}/overview. For example, if your Activity URL is https://ortto.app/pipedreamtest/activities/act::s/overview, then your Activity ID is act::s
Required
attributes Attributes object
An object with the attributes. To find Activity attributes, login into your Ortto app > CDP > Activities > Select an activity > Developer.
Required
fields Fields object
The object containing the fields for a person associated with the event.
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
ortto-create-custom-activity
Version
0.0.2
App
Ortto
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes