← Utopian Labs

Initiate Copywriting Run with Utopian Labs API

Pipedream makes it easy to connect APIs for Utopian Labs and 2,700+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Initiate Copywriting Run with the Utopian Labs API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

Create a workflow to Initiate Copywriting Run with the Utopian Labs API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Initiate Copywriting Run action
    1. Connect your Utopian Labs account
    2. Select a Agent
    3. Configure Lead
    4. Optional- Select a Language
    5. Optional- Configure Minimum Research Steps
    6. Optional- Configure Maximum Research Steps
    7. Optional- Configure Context
    8. Optional- Configure Additional Options
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Initiate Copywriting Run with Utopian Labs API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Utopian Labs
 
Try it
Initiate Copywriting Run with Utopian Labs API on New Submission from Typeform API
Typeform + Utopian Labs
 
Try it
Initiate Copywriting Run with Utopian Labs API on New Submission (Instant) from Jotform API
Jotform + Utopian Labs
 
Try it
Initiate Copywriting Run with Utopian Labs API on New Scheduled Tasks from Pipedream API
Pipedream + Utopian Labs
 
Try it
Initiate Copywriting Run with Utopian Labs API on New Download Counts from npm API
npm + Utopian Labs
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Initiate Copywriting Run on Utopian Labs
Description:Initiate a copywriting run of the R1-Copywriting agent. [See the documentation](https://docs.utopianlabs.ai/copywriting#initiate-a-copywriting-run)
Version:0.0.1
Key:utopian_labs-initiate-copywriting-run

Code

import { LANGUAGE_CODE_OPTIONS } from "../../common/constants.mjs";
import {
  parseObjectEntries, parseStringAsJSON,
} from "../../common/utils.mjs";
import utopianLabs from "../../utopian_labs.app.mjs";

export default {
  key: "utopian_labs-initiate-copywriting-run",
  name: "Initiate Copywriting Run",
  description: "Initiate a copywriting run of the R1-Copywriting agent. [See the documentation](https://docs.utopianlabs.ai/copywriting#initiate-a-copywriting-run)",
  version: "0.0.1",
  type: "action",
  props: {
    utopianLabs,
    agent: {
      propDefinition: [
        utopianLabs,
        "agent",
      ],
      options: [
        {
          label: "r1-copywriting - the default research agent, which has access to a larger set of research sources",
          value: "r1-copywriting",
        },
        {
          label: "r1-copywriting-light - the light research agent, more affordable",
          value: "r1-copywriting-light",
        },
      ],
    },
    lead: {
      propDefinition: [
        utopianLabs,
        "lead",
      ],
      description: "The lead to write a sales message for. [See the documentation](https://docs.utopianlabs.ai/types#the-lead-type) for more information. Example: `{ \"company\": { \"website\": \"https://pipedream.com/\" } }`",
    },
    language: {
      type: "string",
      label: "Language",
      description: "The langauge to write the copy in (defaults to `en-US`)",
      optional: true,
      options: LANGUAGE_CODE_OPTIONS,
    },
    minResearchSteps: {
      propDefinition: [
        utopianLabs,
        "minResearchSteps",
      ],
    },
    maxResearchSteps: {
      propDefinition: [
        utopianLabs,
        "maxResearchSteps",
      ],
    },
    context: {
      propDefinition: [
        utopianLabs,
        "context",
      ],
    },
    additionalOptions: {
      propDefinition: [
        utopianLabs,
        "additionalOptions",
      ],
      description: "Additional parameters to send in the request. [See the documentation](https://docs.utopianlabs.ai/copywriting#initiate-a-copywriting-run) for all available parameters. Values will be parsed as JSON where applicable.",
    },
  },
  async run({ $ }) {
    const response = await this.utopianLabs.initiateRun({
      agent: this.agent,
      lead: parseStringAsJSON(this.lead),
      language: this.language,
      min_research_steps: this.minResearchSteps,
      max_research_steps: this.maxResearchSteps,
      context: this.context,
      ...parseObjectEntries(this.additionalOptions),
    });
    $.export("$summary", `Successfully initiated run (ID: ${response.id})`);
    return response;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Utopian LabsutopianLabsappThis component uses the Utopian Labs app.
AgentagentstringSelect a value from the drop down menu:{ "label": "r1-copywriting - the default research agent, which has access to a larger set of research sources", "value": "r1-copywriting" }{ "label": "r1-copywriting-light - the light research agent, more affordable", "value": "r1-copywriting-light" }
Leadleadobject

The lead to write a sales message for. See the documentation for more information. Example: { "company": { "website": "https://pipedream.com/" } }

LanguagelanguagestringSelect a value from the drop down menu:{ "label": "English (United States)", "value": "en-US" }{ "label": "English (United Kingdom)", "value": "en-UK" }{ "label": "English (Australia)", "value": "en-AU" }{ "label": "Dutch (Netherlands)", "value": "nl" }{ "label": "German (Germany)", "value": "de" }{ "label": "Luxembourgish (Luxembourg)", "value": "lb" }{ "label": "French (France)", "value": "fr" }{ "label": "Spanish (Spain and Latin America)", "value": "es" }{ "label": "Portuguese (Portugal)", "value": "pt" }{ "label": "Italian (Italy)", "value": "it" }{ "label": "Greek (Greece)", "value": "gr" }{ "label": "Russian (Russia)", "value": "ru" }{ "label": "Turkish (Turkey)", "value": "tr" }{ "label": "Danish (Denmark)", "value": "da" }{ "label": "Swedish (Sweden)", "value": "sv" }{ "label": "Finnish (Finland)", "value": "fi" }{ "label": "Icelandic (Iceland)", "value": "is" }{ "label": "Norwegian (Norway)", "value": "no" }{ "label": "Chinese (China)", "value": "zh" }{ "label": "Japanese (Japan)", "value": "ja" }{ "label": "Hindi (India)", "value": "hi" }{ "label": "Thai (Thailand)", "value": "th" }{ "label": "Vietnamese (Vietnam)", "value": "vi" }{ "label": "Burmese (Myanmar)", "value": "my" }{ "label": "Korean (Korea)", "value": "ko" }{ "label": "Estonian (Estonia)", "value": "et" }{ "label": "Lithuanian (Lithuania)", "value": "lt" }{ "label": "Latvian (Latvia)", "value": "lv" }{ "label": "Macedonian (North Macedonia)", "value": "mk" }{ "label": "Indonesian (Indonesia)", "value": "id" }{ "label": "Czech (Czech Republic)", "value": "cs" }{ "label": "Polish (Poland)", "value": "pl" }{ "label": "Slovenian (Slovenia)", "value": "sl" }{ "label": "Slovak (Slovakia)", "value": "sk" }{ "label": "Bulgarian (Bulgaria)", "value": "bg" }{ "label": "Bosnian (Bosnia)", "value": "bs" }{ "label": "Hungarian (Hungary)", "value": "hu" }{ "label": "Ukrainian (Ukraine)", "value": "uk" }{ "label": "Serbian (Serbia)", "value": "sr" }{ "label": "Romanian (Romania)", "value": "ro" }{ "label": "Albanian (Albania)", "value": "sq" }{ "label": "Armenian (Armenia)", "value": "hy" }{ "label": "Hebrew (Israel)", "value": "he" }{ "label": "Arabic (Various)", "value": "ar" }
Minimum Research StepsminResearchStepsinteger

Optionally limit the agent to a minimum amount of research steps (default is 0)

Maximum Research StepsmaxResearchStepsinteger

Optionally limit the agent to a maximum amount of research steps (default is 5)

Contextcontextstring

The context for the run. This is a free-form string that will be used to guide the agent's research

Additional OptionsadditionalOptionsobject

Additional parameters to send in the request. See the documentation for all available parameters. Values will be parsed as JSON where applicable.

Authentication

Utopian Labs uses API keys for authentication. When you connect your Utopian Labs account, Pipedream securely stores the keys so you can easily authenticate to Utopian Labs APIs in both code and no-code steps.

About Utopian Labs

AI agents and models that you can use directly in your current sales process.

More Ways to Use Utopian Labs

Actions

Get Run Status with the Utopian Labs API

Retrieve the status of an initiated run. See the documentation

 
Try it
Initiate Classification Run with the Utopian Labs API

Initiate a classification run of the R1-Classification agent. See the documentation

 
Try it
Initiate Qualification Run with the Utopian Labs API

Initiate a qualification run of the R1-Qualification agent. See the documentation

 
Try it
Initiate Research Run with the Utopian Labs API

Initiate a research run of the R1 agent. See the documentation

 
Try it
Initiate Timing Run with the Utopian Labs API

Initiate a timing run of the R1-Timing agent. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,700+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Premium
Salesforce
Salesforce
Cloud-based customer relationship management (CRM) platform that helps businesses manage sales, marketing, customer support, and other business activities, ultimately aiming to improve customer relationships and streamline operations.
Premium
HubSpot
HubSpot
HubSpot's CRM platform contains the marketing, sales, service, operations, and website-building software you need to grow your business.
Premium
Zoho CRM
Zoho CRM
Zoho CRM is an online Sales CRM software that manages your sales, marketing, and support in one CRM platform.
Premium
Stripe
Stripe
Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Premium
WooCommerce
WooCommerce
WooCommerce is the open-source ecommerce platform for WordPress.
Premium
Snowflake
Snowflake
A data warehouse built for the cloud
Premium
MongoDB
MongoDB
MongoDB is an open source NoSQL database management program.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.