View as Markdown
Cloze icon

Cloze ACTION

Create Note

Creates a note in Cloze. See the documentation.
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Cloze account once, then configure and run Create Note 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: "cloze-create-note",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    cloze: { authProvisionId: "apn_xxxxxxx" },
    uniqueId: "Unique ID",
    source: "Source",
  },
})

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 Note inputs
Property Type Description
uniqueId Unique ID string
A unique identifier for this content record. This will often be the unique Id in an external system so that updates can be matched up with the record in Cloze.
Required
source Source string
The source that this content record originally came from (Eg. todoist.com). Must be a valid domain.
Required
date Date string
When the content should show up in the timeline. Can be a string or a UTC timestamp in ms since the epoch. Eg. 2021-01-01 or 1609459200000.
Optional
from From string
From address for this content record (the address of the person created the record). This can be an email address, phone number, social handle or app link (Eg. na16.salesforce.com:006j000000Pkp1d)
Optional
subject Subject string
Subject of the communication record.
Optional
body Body string
Body text of the communication record.
Required
additionalData Additional Data object
Additional details for the note in JSON format. See the documentation.
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
cloze-create-note
Version
0.0.3
App
Cloze
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes