View as Markdown
Decision Journal icon

Decision Journal ACTION

Create Review Decision

Creates a review for a decision in Decision Journal. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Decision Journal account once, then configure and run Create Review Decision 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: "decision_journal-create-review-decision",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    decision_journal: { authProvisionId: "apn_xxxxxxx" },
    decisionId: "Decision ID",
    accuracyScore: 10,
  },
})

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 Review Decision inputs
Property Type Description
decisionId Decision ID string
The unique identifier for a decision
Required Dynamic
accuracyScore Accuracy Score integer
The accuracy score of the review. A number between 0 and 10
Required
actualOutcome Actual Outcome string
The actual outcome of the decision
Required
learningsAndReview Learnings and Review string
The learnings and review notes
Required
status Status string
The status of a decision or review
Required
skillLuckWeight Skill-Luck Weight string
A number between 0 and 1 representing the weight of skill vs luck in the outcome
Optional
monthsToNextReview Months to Next Review integer
The number of months until the next review of the decision
Optional
outcomeEstimates Outcome Estimates string[]
An array of outcome estimates in JSON string format. For each estimate, the format is {"text": "A description of an outcome estimate", "probability": "0.50", "itHappened": true }
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
decision_journal-create-review-decision
Version
0.0.2
App
Decision Journal
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes