← Zoho Campaigns + Weglot integrations

Translate Text with Weglot API on New Campaign from Zoho Campaigns API

Pipedream makes it easy to connect APIs for Weglot, Zoho Campaigns and 2,700+ other apps remarkably fast.

Trigger workflow on
New Campaign from the Zoho Campaigns API
Next, do this
Translate Text with the Weglot 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

This integration creates a workflow with a Zoho Campaigns trigger and Weglot action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Campaign trigger
    1. Connect your Zoho Campaigns account
    2. Configure timer
  3. Configure the Translate Text action
    1. Connect your Weglot account
    2. Select a From Language
    3. Select a To Language
    4. Configure Words
    5. Configure Request URL
    6. Optional- Select a Word Type
    7. Optional- Configure Title
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are 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.

Trigger

Description:Emit new event when a new campaign is created.
Version:0.0.2
Key:zoho_campaigns-new-campaign

Zoho Campaigns Overview

The Zoho Campaigns API opens up a world of possibilities for email marketing automation within Pipedream, allowing you to manage contacts, campaigns, and reports programmatically. You can connect Zoho Campaigns with other apps to create workflows that automate various tasks, such as synchronizing subscriber lists, triggering campaigns based on specific actions or events, and analyzing campaign performance with custom metrics.

Trigger Code

import common from "../common/common.mjs";

export default {
  ...common,
  type: "source",
  key: "zoho_campaigns-new-campaign",
  name: "New Campaign",
  description: "Emit new event when a new campaign is created.",
  version: "0.0.2",
  methods: {
    ...common.methods,
    _emitEvent(campaign) {
      this.$emit(campaign, {
        id: campaign.campaign_key,
        summary: campaign.campaign_name,
        ts: campaign.created_time_gmt,
      });
    },
  },
  async run() {
    let page = 0;
    let startIndex = this._getStartIndex();

    while (true) {
      const res = await this.app.listRecentCampaigns(page, startIndex);

      if (res.status === "error" || res.recent_campaigns.length === 0) {
        break;
      }

      for (const campaign of res.recent_campaigns) {
        this._emitEvent(campaign);
      }
      startIndex += res.recent_campaigns.length;
      page++;
    }

    this._setStartIndex(startIndex);
  },
};

Trigger 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
Zoho CampaignsappappThis component uses the Zoho Campaigns app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer

Trigger Authentication

Zoho Campaigns uses OAuth authentication. When you connect your Zoho Campaigns account, Pipedream will open a popup window where you can sign into Zoho Campaigns and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zoho Campaigns API.

Pipedream requests the following authorization scopes when you connect your account:

ZohoCampaigns.campaign.READZohoCampaigns.campaign.CREATEZohoCampaigns.campaign.UPDATEZohoCampaigns.contact.CREATEZohoCampaigns.contact.UPDATEZohoCampaigns.contact.READZohoCampaigns.userinfo.READ

About Zoho Campaigns

Marketing platform built exclusively for email marketing—you bring in and manage the email database of your leads and contacts and send marketing emails to them.

Action

Description:Translate text using Weglot. [See the documentation](https://developers.weglot.com/api/reference#translate)
Version:0.0.1
Key:weglot-translate-text

Weglot Overview

The Weglot API allows for real-time translation of website content, simplifying the process of making a website multilingual. On Pipedream, you can use the Weglot API to craft workflows that automate translation tasks, manage language databases, or even synchronize content across different platforms. This API could be a game changer for businesses looking to globalize their online presence without the manual overhead.

Action Code

import weglot from "../../weglot.app.mjs";
import constants from "../../common/constants.mjs";

export default {
  key: "weglot-translate-text",
  name: "Translate Text",
  description: "Translate text using Weglot. [See the documentation](https://developers.weglot.com/api/reference#translate)",
  version: "0.0.1",
  type: "action",
  props: {
    weglot,
    fromLanguage: {
      propDefinition: [
        weglot,
        "language",
      ],
      label: "From Language",
    },
    toLanguage: {
      propDefinition: [
        weglot,
        "language",
      ],
      label: "To Language",
    },
    words: {
      type: "string[]",
      label: "Words",
      description: "Sentences to translate",
    },
    requestUrl: {
      type: "string",
      label: "Request URL",
      description: "URL where the request comes from",
    },
    wordType: {
      type: "integer",
      label: "Word Type",
      description: "Used to provide context over where the text we wish to translate comes from. Any general text node is of WordType `1`.",
      default: 1,
      options: constants.WORD_TYPES,
      optional: true,
    },
    title: {
      type: "string",
      label: "Title",
      description: "Title of the page where the sentences come from",
      optional: true,
    },
  },
  async run({ $ }) {
    const words = this.words.map((word) => ({
      w: word,
      t: this.wordType,
    }));

    const response = await this.weglot.translateText({
      data: {
        l_from: this.fromLanguage,
        l_to: this.toLanguage,
        words,
        request_url: this.requestUrl,
        title: this.title,
      },
      $,
    });

    if (response) {
      $.export("$summary", "Successfully translated text.");
    }

    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
WeglotweglotappThis component uses the Weglot app.
From LanguagefromLanguagestringSelect a value from the drop down menu.
To LanguagetoLanguagestringSelect a value from the drop down menu.
Wordswordsstring[]

Sentences to translate

Request URLrequestUrlstring

URL where the request comes from

Word TypewordTypeintegerSelect a value from the drop down menu:{ "value": 1, "label": "TEXT - General text (used most of the time)" }{ "value": 2, "label": "VALUE - The value of an input tag's value attribute" }{ "value": 3, "label": "PLACEHOLDER - The value of an input tag's placeholder attribute" }{ "value": 4, "label": "META_CONTENT - The value of a meta tags' content attribute" }{ "value": 5, "label": "IFRAME_SRC - The src link to a page used in an iframe" }{ "value": 6, "label": "IMG_SRC - The srcvalue of an img tag" }{ "value": 7, "label": "IMG_ALT - The alt value of an img tag" }{ "value": 8, "label": "PDF_HREF - A URL pointing to a PDF document" }{ "value": 9, "label": "PAGE_TITLE - Text from title tag" }{ "value": 10, "label": "EXTERNAL_LINK - External links when dashboard option is enabled" }
Titletitlestring

Title of the page where the sentences come from

Action Authentication

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

To retrieve your API Key,

  • Navigate to your Weglot account and sign in
  • Click the drop down on the top left and select one of your projects.
  • Go to “Settings” > “Setup”

About Weglot

The fastest and easiest way to translate your website and reach a wider audience!

More Ways to Connect Weglot + Zoho Campaigns

Translate Text with Weglot API on New Contact from Zoho Campaigns API
Zoho Campaigns + Weglot
 
Try it
New Campaign from the Zoho Campaigns API

Emit new event when a new campaign is created.

 
Try it
New Contact from the Zoho Campaigns API

Emit new event when a new contact is created.

 
Try it
Add Contact to Mailing List with the Zoho Campaigns API

You can use this API to add contacts to your mailing lists. See the documentation

 
Try it
Create Campaign with the Zoho Campaigns API

You can create a campaign using this API. Using this API, you can set the campaign name, subject line, sender address; choose the intended mailing list.. See the documentation

 
Try it
Translate Text with the Weglot API

Translate text using Weglot. 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
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.
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.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
Pinterest
Pinterest
Pinterest is a visual discovery engine for finding ideas like recipes, home and style inspiration, and more.
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
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.
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
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.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.