View as Markdown
Easy-Peasy.AI icon

Easy-Peasy.AI ACTION

Generate Text

Generates text outputs for the templates. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Easy-Peasy.AI account once, then configure and run Generate Text 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: "easy_peasy_ai-generate-text",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    easy_peasy_ai: { authProvisionId: "apn_xxxxxxx" },
    preset: "Template",
    keywords: "Keywords",
  },
})

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 Text inputs
Property Type Description
preset Template string
The template name to use for generating content.
Required
keywords Keywords string
Keywords to use for generating content. Eg. Write an email to potential investors about my startup. (maxlength: 1000)
Required
tone Tone string
The tone of the generated content. Eg. friendly, funny, cheerful.
Optional
extra1 Extra 1 string
Background Information (maxlength: 1000). Eg. I am a software engineer.
Optional
extra2 Extra 2 string
Background Information (maxlength: 1000). Eg. I am starting a new business.
Optional
extra3 Extra 3 string
Background Information (maxlength: 1000). Eg. I am a student.
Optional
outputs Outputs integer
The number of outputs to generate. Eg. 1.
Optional
language Language string
The language of the generated content. Eg. English.
Optional
shouldUseGPT4 Use GPT-4 boolean
Use advanced AI model? Use the GPT-4 model for generating content.
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
easy_peasy_ai-generate-text
Version
0.0.3
App
Easy-Peasy.AI
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes