← Google Calendar + UniOne integrations

Send Email with UniOne API on New Created or Updated Event (Instant) from Google Calendar API

Pipedream makes it easy to connect APIs for UniOne, Google Calendar and 3,000+ other apps remarkably fast.

Trigger workflow on
New Created or Updated Event (Instant) from the Google Calendar API
Next, do this
Send Email with the UniOne 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 Google Calendar trigger and UniOne 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 Created or Updated Event (Instant) trigger
    1. Connect your Google Calendar account
    2. Optional- Select one or more Calendars
    3. Optional- Configure Emit only for new events
    4. Configure Push notification renewal schedule
  3. Configure the Send Email action
    1. Connect your UniOne account
    2. Optional- Configure Recipients
    3. Optional- Select a Template ID
    4. Optional- Select one or more Tags
    5. Optional- Configure Skip Unsubscribe
    6. Optional- Select a Global Language
    7. Optional- Select a Template Engine
    8. Optional- Configure Global Substitutions
    9. Optional- Configure Global Metadata
    10. Configure Body
    11. Configure Subject
    12. Optional- Configure From Email
    13. Optional- Configure From Name
    14. Optional- Configure Reply To
    15. Optional- Configure Reply To Name
    16. Optional- Configure Track Links
    17. Optional- Configure Track Read
    18. Optional- Configure Bypass Global
    19. Optional- Configure Bypass Unavailable
    20. Optional- Configure Bypass Unsubscribed
    21. Optional- Configure Bypass Complained
    22. Optional- Configure Idempotence Key
    23. Optional- Configure Headers
    24. Optional- Configure Send At
    25. Optional- Configure Unsubscribe URL
  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 Google Calendar events is created or updated (does not emit cancelled events)
Version:0.1.16
Key:google_calendar-new-or-updated-event-instant

Google Calendar Overview

The Google Calendar API lets you dip into the powerhouse of scheduling, allowing for the reading, creation, and manipulation of events and calendars directly from your applications. Through Pipedream, you can seamlessly integrate Google Calendar into a myriad of workflows, automating event management, syncing with other services, setting up custom reminders, or even collating data for reporting. The key here is to streamline your calendar-related processes, ensuring that your time management is as efficient and automated as possible.

Trigger Code

import { v4 as uuid } from "uuid";
import sampleEmit from "./test-event.mjs";
import googleCalendar from "../../google_calendar.app.mjs";
import constants from "../../common/constants.mjs";

export default {
  key: "google_calendar-new-or-updated-event-instant",
  type: "source",
  name: "New Created or Updated Event (Instant)",
  description: "Emit new event when a Google Calendar events is created or updated (does not emit cancelled events)",
  version: "0.1.16",
  dedupe: "unique",
  props: {
    googleCalendar,
    db: "$.service.db",
    calendarIds: {
      propDefinition: [
        googleCalendar,
        "calendarId",
      ],
      type: "string[]",
      default: [
        "primary",
      ],
      label: "Calendars",
      description: "Select one or more calendars to watch (defaults to the primary calendar)",
    },
    newOnly: {
      label: "Emit only for new events",
      type: "boolean",
      description: "Emit new events only, and not updates to existing events (defaults to `false`)",
      optional: true,
      default: false,
    },
    http: "$.interface.http",
    timer: {
      label: "Push notification renewal schedule",
      description: "The Google Calendar API requires occasional renewal of push notification subscriptions. **This runs in the background, so you should not need to modify this schedule**.",
      type: "$.interface.timer",
      static: {
        intervalSeconds: constants.WEBHOOK_SUBSCRIPTION_RENEWAL_SECONDS,
      },
    },
  },
  hooks: {
    async deploy() {
      const events = [];
      const params = {
        maxResults: 25,
        orderBy: "updated",
        timeMin: new Date(new Date().setMonth(new Date().getMonth() - 1)).toISOString(), // 1 month ago
      };
      for (const calendarId of this.calendarIds) {
        params.calendarId = calendarId;
        const { items } = await this.googleCalendar.listEvents(params);
        events.push(...items);
      }
      events.sort((a, b) => (Date.parse(a.updated) > Date.parse(b.updated))
        ? 1
        : -1);
      for (const event of events.slice(-25)) {
        const meta = this.generateMeta(event);
        this.$emit(event, meta);
      }
    },
    async activate() {
      await this.makeWatchRequest();
    },
    async deactivate() {
      try {
        await this.stopWatchRequest();
      } catch (e) {
        console.log(`Error deactivating webhook. ${e}`);
      }
    },
  },
  methods: {
    setNextSyncToken(calendarId, nextSyncToken) {
      this.db.set(`${calendarId}.nextSyncToken`, nextSyncToken);
    },
    getNextSyncToken(calendarId) {
      return this.db.get(`${calendarId}.nextSyncToken`);
    },
    setChannelId(calendarId, channelId) {
      this.db.set(`${calendarId}.channelId`, channelId);
    },
    getChannelId(calendarId) {
      return this.db.get(`${calendarId}.channelId`);
    },
    setResourceId(calendarId, resourceId) {
      this.db.set(`${calendarId}.resourceId`, resourceId);
    },
    getResourceId(calendarId) {
      return this.db.get(`${calendarId}.resourceId`);
    },
    setExpiration(calendarId, expiration) {
      this.db.set(`${calendarId}.expiration`, expiration);
    },
    getExpiration(calendarId) {
      return this.db.get(`${calendarId}.expiration`);
    },
    /**
     * A utility method to compute whether the provided event is newly created
     * or not. Since the Google Calendar API does not provide a specific way to
     * determine this, this method estimates the result based on the `created`
     * and `updated` timestamps: if they are more than 2 seconds apart, then we
     * assume that the event is not new.
     *
     * @param {Object} event - The calendar event being processed
     * @returns {Boolean} True if the input event is a newly created event, or
     * false otherwise
     */
    _isNewEvent(event) {
      const {
        created,
        updated,
      } = event;
      const createdTimestampMilliseconds = Date.parse(created);
      const updatedTimestampMilliseconds = Date.parse(updated);
      const diffMilliseconds = Math.abs(
        updatedTimestampMilliseconds - createdTimestampMilliseconds,
      );
      const maxDiffMilliseconds = 2000;
      return diffMilliseconds <= maxDiffMilliseconds;
    },
    /**
     * A utility method to compute whether the provided event is relevant to the
     * event source (and as a consequence must be processed) or not.
     *
     * @param {Object} event - The calendar event being processed
     * @returns {Boolean} True if the input event must be processed, or false
     * otherwise (i.e. if the event must be skipped)
     */
    isEventRelevant(event) {
      return !this.newOnly || this._isNewEvent(event);
    },
    generateMeta(event) {
      const {
        id,
        summary,
        updated: tsString,
      } = event;
      const ts = Date.parse(tsString);
      return {
        id: `${id}-${ts}`,
        summary,
        ts,
      };
    },
    async makeWatchRequest() {
      // Make watch request for this HTTP endpoint
      for (const calendarId of this.calendarIds) {
        const watchResp =
          await this.googleCalendar.watchEvents({
            calendarId,
            requestBody: {
              id: uuid(),
              type: "web_hook",
              address: this.http.endpoint,
            },
          });

        // Initial full sync. Get next sync token
        const nextSyncToken = await this.googleCalendar.fullSync(calendarId);

        this.setNextSyncToken(calendarId, nextSyncToken);
        this.setChannelId(calendarId, watchResp.id);
        this.setResourceId(calendarId, watchResp.resourceId);
        this.setExpiration(calendarId, watchResp.expiration);
      }
    },
    async stopWatchRequest() {
      for (const calendarId of this.calendarIds) {
        const id = this.getChannelId(calendarId);
        const resourceId = this.getResourceId(calendarId);
        if (id && resourceId) {
          const { status } =
            await this.googleCalendar.stopChannel({
              returnOnlyData: false,
              requestBody: {
                id,
                resourceId,
              },
            });
          if (status === 204) {
            console.log("webhook deactivated");
            this.setNextSyncToken(calendarId, null);
            this.setChannelId(calendarId, null);
            this.setResourceId(calendarId, null);
            this.setExpiration(calendarId, null);
          } else {
            console.log("There was a problem deactivating the webhook");
          }
        }
      }
    },
    getSoonestExpirationDate() {
      let min;
      for (const calendarId of this.calendarIds) {
        const expiration = parseInt(this.db.get(`${calendarId}.expiration`));
        if (!min || expiration < min) {
          min = expiration;
        }
      }
      return new Date(min);
    },
    getCalendarIdForChannelId(incomingChannelId) {
      for (const calendarId of this.calendarIds) {
        if (this.db.get(`${calendarId}.channelId`) === incomingChannelId) {
          return calendarId;
        }
      }
      return null;
    },
  },
  async run(event) {
    let calendarId = null; // calendar ID matching incoming channel ID

    // refresh watch
    if (event.interval_seconds) {
      // get time
      const now = new Date();
      const intervalMs = event.interval_seconds * 1000;
      // get expiration
      const expireDate = this.getSoonestExpirationDate();

      // if now + interval > expiration, refresh watch
      if (now.getTime() + intervalMs > expireDate.getTime()) {
        await this.stopWatchRequest();
        await this.makeWatchRequest();
      }
    } else {
      // Verify channel ID
      const incomingChannelId = event?.headers?.["x-goog-channel-id"];
      calendarId = this.getCalendarIdForChannelId(incomingChannelId);
      if (!calendarId) {
        console.log(
          `Unexpected channel ID ${incomingChannelId}. This likely means there are multiple, older subscriptions active.`,
        );
        return;
      }

      // Check that resource state === exists
      const state = event?.headers?.["x-goog-resource-state"];
      switch (state) {
      case "exists":
        // there's something to emit, so keep going
        break;
      case "not_exists":
        console.log("Resource does not exist. Exiting.");
        return;
      case "sync":
        console.log("New channel created");
        return;
      default:
        console.log(`Unknown state: ${state}`);
        return;
      }
    }

    // Fetch and emit events
    const checkCalendarIds = calendarId
      ? [
        calendarId,
      ]
      : this.calendarIds;
    for (const calendarId of checkCalendarIds) {
      const syncToken = this.getNextSyncToken(calendarId);
      let nextSyncToken = null;
      let nextPageToken = null;
      while (!nextSyncToken) {
        try {
          const { data: syncData = {} } = await this.googleCalendar.listEvents({
            returnOnlyData: false,
            calendarId,
            syncToken,
            pageToken: nextPageToken,
            maxResults: 2500,
          });

          nextPageToken = syncData.nextPageToken;
          nextSyncToken = syncData.nextSyncToken;

          const { items: events = [] } = syncData;
          events
            .filter(this.isEventRelevant, this)
            .forEach((event) => {
              const { status } = event;
              if (status === "cancelled") {
                console.log("Event cancelled. Exiting.");
                return;
              }
              const meta = this.generateMeta(event);
              this.$emit(event, meta);
            });
        } catch (error) {
          if (error === "Sync token is no longer valid, a full sync is required.") {
            console.log("Sync token invalid, resyncing");
            nextSyncToken = await this.googleCalendar.fullSync(calendarId);
            break;
          } else {
            throw error;
          }
        }
      }

      this.setNextSyncToken(calendarId, nextSyncToken);
    }
  },
  sampleEmit,
};

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
Google CalendargoogleCalendarappThis component uses the Google Calendar app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
CalendarscalendarIdsstring[]Select a value from the drop down menu.
Emit only for new eventsnewOnlyboolean

Emit new events only, and not updates to existing events (defaults to false)

N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
Push notification renewal scheduletimer$.interface.timer

The Google Calendar API requires occasional renewal of push notification subscriptions. This runs in the background, so you should not need to modify this schedule.

Trigger Authentication

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

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

https://www.googleapis.com/auth/calendar.eventshttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.settings.readonlyemailprofile

About 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.

Action

Description:Send an email using UniOne. [See the documentation](https://docs.unione.io/en/web-api-ref#email-send)
Version:0.0.1
Key:unione-send-email

UniOne Overview

UniOne is an email service provider that offers a broad range of features for sending and managing email campaigns. Through its API, you can programmatically send transactional emails, organize mailing lists, track email delivery statuses, and analyze recipient engagements. When integrated on Pipedream, UniOne becomes a part of your serverless workflow, enabling you to automate email operations with various triggers and actions from other apps.

Action Code

import {
  GLOBAL_LANGUAGE_OPTIONS,
  TEMPLATE_ENGINE_OPTIONS,
} from "../../common/constants.mjs";
import { parseObject } from "../../common/utils.mjs";
import app from "../../unione.app.mjs";

export default {
  key: "unione-send-email",
  name: "Send Email",
  description: "Send an email using UniOne. [See the documentation](https://docs.unione.io/en/web-api-ref#email-send)",
  version: "0.0.1",
  annotations: {
    destructiveHint: false,
    openWorldHint: true,
    readOnlyHint: false,
  },
  type: "action",
  props: {
    app,
    recipients: {
      type: "string[]",
      label: "Recipients",
      description: "Array of recipient objects with email, substitutions (merge tags), and metadata. Each recipient can have: email (required), substitutions (object, optional), metadata (object, optional). If provided, this takes precedence over 'To' prop. Example: [{ \"email\": \"recipient@example.com\", \"substitutions\": { \"from_name\": \"John Doe\", \"subject\": \"Hello, {name}!\" }, \"metadata\": { \"company\": \"Example Inc.\" } }]. [See the documentation](https://docs.unione.io/en/web-api-ref#email-send)",
      optional: true,
    },
    templateId: {
      propDefinition: [
        app,
        "templateId",
      ],
      optional: true,
    },
    tags: {
      propDefinition: [
        app,
        "tags",
      ],
      optional: true,
    },
    skipUnsubscribe: {
      type: "boolean",
      label: "Skip Unsubscribe",
      description: "Whether to skip or not appending default unsubscribe footer. You should [ask support](https://cp.unione.io/en/support?_gl=1*1afrczd*_ga*MTgyNTM0MDM4OS4xNzYyODkzNzky*_ga_37TV6WM09S*czE3NjI4OTM3OTIkbzEkZzEkdDE3NjI4OTQ1NTAkajQ5JGwwJGg4ODQyOTkzMzQ.) to approve.",
      optional: true,
    },
    globalLanguage: {
      type: "string",
      label: "Global Language",
      description: "The language of the unsubscribe footer and unsubscribe page.",
      options: GLOBAL_LANGUAGE_OPTIONS,
      optional: true,
    },
    templateEngine: {
      type: "string",
      label: "Template Engine",
      description: "The [template engine](https://docs.unione.io/en/template-engines) for handling the substitutions(merge tags).",
      optional: true,
      options: TEMPLATE_ENGINE_OPTIONS,
    },
    globalSubstitutions: {
      type: "object",
      label: "Global Substitutions",
      description: "Object for passing the substitutions(merge tags) common for all recipients - e.g., company name. If the substitution names are duplicated in recipient 'substitutions', the values of the variables will be taken from the recipient 'substitutions'. Example: { \"body\": { \"html\": \"Hello, {name}!\", \"plaintext\": \"Hello, {name}!\", \"amp\": \"Hello, {name}!\"}, \"subject\": \"Hello, {name}!\", \"from_name\": \"John Doe\", \"options\": { \"unsubscribe_url\": \"https://example.com/unsubscribe\" } }.",
      optional: true,
    },
    globalMetadata: {
      type: "object",
      label: "Global Metadata",
      description: "Object for passing the metadata common for all the recipients, such as 'key': 'value'. Max key quantity: 10. Max key length: 64 symbols. Max value length: 1024 symbols.",
      optional: true,
    },
    body: {
      type: "object",
      label: "Body",
      description: "Contains HTML/plaintext/AMP parts of the email. Either html or plaintext part is required. Example: { \"html\": \"Hello, {name}!\", \"plaintext\": \"Hello, {name}!\", \"amp\": \"Hello, {name}!\" }.",
    },
    subject: {
      type: "string",
      label: "Subject",
      description: "Email subject",
    },
    fromEmail: {
      type: "string",
      label: "From Email",
      description: "Sender's email. Required only if `Template ID` prop is empty.",
      optional: true,
    },
    fromName: {
      type: "string",
      label: "From Name",
      description: "Sender's name",
      optional: true,
    },
    replyTo: {
      type: "string",
      label: "Reply To",
      description: "Reply-to email (in case it's different to sender's email)",
      optional: true,
    },
    replyToName: {
      type: "string",
      label: "Reply To Name",
      description: "Reply-To name (if `Reply To` email is specified and you want to display not only this email but also the name)",
      optional: true,
    },
    trackLinks: {
      type: "boolean",
      label: "Track Links",
      description: "If true, click tracking is on (default). If false, click tracking is off. To use track_links = false, you need to ask UniOne support to enable this feature.",
      optional: true,
    },
    trackRead: {
      type: "boolean",
      label: "Track Read",
      description: "If true, read tracking is on (default). If false, read tracking is off. To use track_read = false, you need to ask support to enable this feature.",
      optional: true,
    },
    bypassGlobal: {
      type: "boolean",
      label: "Bypass Global",
      description: "If true, the global unavailability list will be ignored. Even if the address was found to be unreachable while sending other UniOne users' emails, or its owner has issued complaints, the message will still be sent. The setting may be ignored for certain addresses.",
      optional: true,
    },
    bypassUnavailable: {
      type: "boolean",
      label: "Bypass Unavailable",
      description: "If true, the current list of unsubscribed addresses for this account or project will be ignored. Works only if `Bypass Global` is set to true. The setting is available only for users that have been granted the right to omit the unsubscribe link (to request, please contact [support](https://cp.unione.io/en/support?_gl=1*1msqb8a*_ga*MTgyNTM0MDM4OS4xNzYyODkzNzky*_ga_37TV6WM09S*czE3NjI4OTM3OTIkbzEkZzEkdDE3NjI4OTQ1NTAkajQ5JGg4ODQyOTkzMzQ.)).",
      optional: true,
    },
    bypassUnsubscribed: {
      type: "boolean",
      label: "Bypass Unsubscribed",
      description: "If true, the current list of unsubscribed addresses for this account or project will be ignored. Works only if `Bypass Global` is set to true. The setting is available only for users that have been granted the right to omit the unsubscribe link.",
      optional: true,
    },
    bypassComplained: {
      type: "boolean",
      label: "Bypass Complained",
      description: "If true, the user's or project's complaint list will be ignored. Works only if `Bypass Global` is set to true. The setting is available only for users that have been granted the right to omit the unsubscribe link.",
      optional: true,
    },
    idempotenceKey: {
      type: "string",
      label: "Idempotence Key",
      description: "A string of up to 64 characters containing a unique message key. This can be used to prevent occasional message duplicates. If you send another API request with the same message key within the next minute, it will be declined. We can generate a message key for each letter automatically; to enable this option, please contact our [tech support](https://cp.unione.io/en/support?_gl=1*dahmdm*_ga*MTgyNTM0MDM4OS4xNzYyODkzNzky*_ga_37TV6WM09S*czE3NjI4OTM3OTIkbzEkZzEkdDE3NjI4OTQ1NTAkajQ5JGwwJGg4ODQyOTkzMzQ.).",
      optional: true,
    },
    headers: {
      type: "object",
      label: "Headers",
      description: "Contains email headers, maximum 50. Only headers with “X-” name prefix are accepted, all other are ignored, for example X-UNIONE-Global-Language, X-UNIONE-Template-Engine. Standard headers “To,” “CC,” and “BCC” are passed without the “X-.” Yet, they are processed in a particular way and, as a result, have a number of restrictions. You can find more details about it [here](https://docs.unione.io/cc-and-bcc). If our support have approved omitting standard unsubscription block for you, you can also pass List-Unsubscribe, List-Subscribe, List-Help, List-Owner, List-Archive, In-Reply-To and References headers. Example: { \"X-UNIONE-Global-Language\": \"en\", \"X-UNIONE-Template-Engine\": \"velocity\" }.",
      optional: true,
    },
    sendAt: {
      type: "string",
      label: "Send At",
      description: "Date and time in 'YYYY-MM-DD hh:mm:ss' format in the UTC timezone. Allows schedule sending up to 24 hours in advance.",
      optional: true,
    },
    unsubscribeUrl: {
      type: "string",
      label: "Unsubscribe URL",
      description: "Custom unsubscribe link. Read more [here](https://docs.unione.io/en/unsubscribe-link).",
      optional: true,
    },
  },
  async run({ $ }) {
    if (!this.templateId && !this.fromEmail) {
      throw new Error("`From Email` is required when `Template ID` prop is not provided");
    }

    const response = await this.app.sendEmail({
      $,
      data: {
        message: {
          recipients: parseObject(this.recipients),
          template_id: this.templateId,
          tags: parseObject(this.tags),
          skip_unsubscribe: this.skipUnsubscribe
            ? 1
            : 0,
          global_language: parseObject(this.globalLanguage),
          template_engine: parseObject(this.templateEngine),
          global_substitutions: parseObject(this.globalSubstitutions),
          global_metadata: parseObject(this.globalMetadata),
          body: this.body && parseObject(this.body),
          subject: this.subject,
          from_email: this.fromEmail,
          from_name: this.fromName,
          reply_to: this.replyTo,
          reply_to_name: this.replyToName,
          track_links: this.trackLinks
            ? 1
            : 0,
          track_read: this.trackRead
            ? 1
            : 0,
          bypass_global: this.bypassGlobal
            ? 1
            : 0,
          bypass_unavailable: this.bypassUnavailable
            ? 1
            : 0,
          bypass_unsubscribed: this.bypassUnsubscribed
            ? 1
            : 0,
          bypass_complained: this.bypassComplained
            ? 1
            : 0,
          idempotence_key: this.idempotenceKey,
          headers: this.headers && parseObject(this.headers),
          options: {
            send_at: this.sendAt,
            unsubscribe_url: this.unsubscribeUrl,
          },
        },
      },
    });

    const recipientEmails = parseObject(this.recipients).map((r) => r.email || r)
      .join(", ");
    if (response.status === "success") {
      $.export("$summary", `Successfully sent email to ${recipientEmails}`);
    } else {
      $.export("$summary", `Email send request completed with status: ${response.status}`);
    }

    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
UniOneappappThis component uses the UniOne app.
Recipientsrecipientsstring[]

Array of recipient objects with email, substitutions (merge tags), and metadata. Each recipient can have: email (required), substitutions (object, optional), metadata (object, optional). If provided, this takes precedence over 'To' prop. Example: [{ "email": "recipient@example.com", "substitutions": { "from_name": "John Doe", "subject": "Hello, {name}!" }, "metadata": { "company": "Example Inc." } }]. See the documentation

Template IDtemplateIdstringSelect a value from the drop down menu.
Tagstagsstring[]Select a value from the drop down menu.
Skip UnsubscribeskipUnsubscribeboolean

Whether to skip or not appending default unsubscribe footer. You should ask support to approve.

Global LanguageglobalLanguagestringSelect a value from the drop down menu:{ "label": "Belarusian", "value": "be" }{ "label": "German", "value": "de" }{ "label": "English", "value": "en" }{ "label": "Spanish", "value": "es" }{ "label": "French", "value": "fr" }{ "label": "Italian", "value": "it" }{ "label": "Polish", "value": "pl" }{ "label": "Portuguese", "value": "pt" }{ "label": "Russian", "value": "ru" }{ "label": "Ukrainian", "value": "ua" }{ "label": "Kazakh", "value": "kz" }
Template EnginetemplateEnginestringSelect a value from the drop down menu:{ "label": "Simple", "value": "simple" }{ "label": "Velocity", "value": "velocity" }{ "label": "Liquid", "value": "liquid" }{ "label": "None", "value": "none" }
Global SubstitutionsglobalSubstitutionsobject

Object for passing the substitutions(merge tags) common for all recipients - e.g., company name. If the substitution names are duplicated in recipient 'substitutions', the values of the variables will be taken from the recipient 'substitutions'. Example: { "body": { "html": "Hello, {name}!", "plaintext": "Hello, {name}!", "amp": "Hello, {name}!"}, "subject": "Hello, {name}!", "from_name": "John Doe", "options": { "unsubscribe_url": "https://example.com/unsubscribe" } }.

Global MetadataglobalMetadataobject

Object for passing the metadata common for all the recipients, such as 'key': 'value'. Max key quantity: 10. Max key length: 64 symbols. Max value length: 1024 symbols.

Bodybodyobject

Contains HTML/plaintext/AMP parts of the email. Either html or plaintext part is required. Example: { "html": "Hello, {name}!", "plaintext": "Hello, {name}!", "amp": "Hello, {name}!" }.

Subjectsubjectstring

Email subject

From EmailfromEmailstring

Sender's email. Required only if Template ID prop is empty.

From NamefromNamestring

Sender's name

Reply ToreplyTostring

Reply-to email (in case it's different to sender's email)

Reply To NamereplyToNamestring

Reply-To name (if Reply To email is specified and you want to display not only this email but also the name)

Track LinkstrackLinksboolean

If true, click tracking is on (default). If false, click tracking is off. To use track_links = false, you need to ask UniOne support to enable this feature.

Track ReadtrackReadboolean

If true, read tracking is on (default). If false, read tracking is off. To use track_read = false, you need to ask support to enable this feature.

Bypass GlobalbypassGlobalboolean

If true, the global unavailability list will be ignored. Even if the address was found to be unreachable while sending other UniOne users' emails, or its owner has issued complaints, the message will still be sent. The setting may be ignored for certain addresses.

Bypass UnavailablebypassUnavailableboolean

If true, the current list of unsubscribed addresses for this account or project will be ignored. Works only if Bypass Global is set to true. The setting is available only for users that have been granted the right to omit the unsubscribe link (to request, please contact support).

Bypass UnsubscribedbypassUnsubscribedboolean

If true, the current list of unsubscribed addresses for this account or project will be ignored. Works only if Bypass Global is set to true. The setting is available only for users that have been granted the right to omit the unsubscribe link.

Bypass ComplainedbypassComplainedboolean

If true, the user's or project's complaint list will be ignored. Works only if Bypass Global is set to true. The setting is available only for users that have been granted the right to omit the unsubscribe link.

Idempotence KeyidempotenceKeystring

A string of up to 64 characters containing a unique message key. This can be used to prevent occasional message duplicates. If you send another API request with the same message key within the next minute, it will be declined. We can generate a message key for each letter automatically; to enable this option, please contact our tech support

Headersheadersobject

Contains email headers, maximum 50. Only headers with “X-” name prefix are accepted, all other are ignored, for example X-UNIONE-Global-Language, X-UNIONE-Template-Engine. Standard headers “To,” “CC,” and “BCC” are passed without the “X-.” Yet, they are processed in a particular way and, as a result, have a number of restrictions. You can find more details about it here. If our support have approved omitting standard unsubscription block for you, you can also pass List-Unsubscribe, List-Subscribe, List-Help, List-Owner, List-Archive, In-Reply-To and References headers. Example: { "X-UNIONE-Global-Language": "en", "X-UNIONE-Template-Engine": "velocity" }.

Send AtsendAtstring

Date and time in 'YYYY-MM-DD hh:mm:ss' format in the UTC timezone. Allows schedule sending up to 24 hours in advance.

Unsubscribe URLunsubscribeUrlstring

Custom unsubscribe link. Read more here

Action Authentication

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

About UniOne

The email delivery system you can rely on

More Ways to Connect UniOne + Google Calendar

Send Email with UniOne API on New Cancelled Event from Google Calendar API
Google Calendar + UniOne
 
Try it
Send Email with UniOne API on New Ended Event from Google Calendar API
Google Calendar + UniOne
 
Try it
Send Email with UniOne API on New Calendar Created from Google Calendar API
Google Calendar + UniOne
 
Try it
Send Email with UniOne API on New Event Matching a Search from Google Calendar API
Google Calendar + UniOne
 
Try it
Send Email with UniOne API on New Upcoming Event Alert from Google Calendar API
Google Calendar + UniOne
 
Try it
New Upcoming Event Alert from the Google Calendar API

Emit new event based on a time interval before an upcoming event in the calendar.

 
Try it
New Created or Updated Event (Instant) from the Google Calendar API

Emit new event when a Google Calendar events is created or updated (does not emit cancelled events)

 
Try it
New Calendar Created from the Google Calendar API

Emit new event when a calendar is created.

 
Try it
New Event Matching a Search from the Google Calendar API

Emit new event when a Google Calendar event is created that matches a search

 
Try it
New Cancelled Event from the Google Calendar API

Emit new event when a Google Calendar event is cancelled or deleted

 
Try it
Add Attendees To Event with the Google Calendar API

Add attendees to an existing event. See the documentation

 
Try it
Add Quick Event with the Google Calendar API

Create a quick event to the Google Calendar. See the documentation

 
Try it
Create Event with the Google Calendar API

Create an event in a Google Calendar. See the documentation

 
Try it
Delete an Event with the Google Calendar API

Delete an event from a Google Calendar. See the documentation

 
Try it
Get Current User with the Google Calendar API

Retrieve information about the authenticated Google Calendar account, including the primary calendar (summary, timezone, ACL flags), a list of accessible calendars, user-level settings (timezone, locale, week start), and the color palette that controls events and calendars. Ideal for confirming which calendar account is in use, customizing downstream scheduling, or equipping LLMs with the user’s context (timezones, available calendars) prior to creating or updating events. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

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.
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.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
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.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
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.
AWS
AWS
Premium
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Premium
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
Klaviyo
Klaviyo
Premium
Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.
Zendesk
Zendesk
Premium
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
Premium
Beta
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.