← Google Calendar + ConvertAPI integrations

Convert Web URL to Specified Format with ConvertAPI API on New Upcoming Event Alert from Google Calendar API

Pipedream makes it easy to connect APIs for ConvertAPI, Google Calendar and 2,500+ other apps remarkably fast.

Trigger workflow on
New Upcoming Event Alert from the Google Calendar API
Next, do this
Convert Web URL to Specified Format with the ConvertAPI 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 ConvertAPI 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 Upcoming Event Alert trigger
    1. Connect your Google Calendar account
    2. Connect your Google Calendar account
    3. Optional- Select a Calendar ID
    4. Optional- Select one or more Event Types
    5. Configure Minutes Before
  3. Configure the Convert Web URL to Specified Format action
    1. Connect your ConvertAPI account
    2. Configure URL
    3. Select a Format To
    4. Optional- Configure File Name
    5. Optional- Configure Timeout
    6. Optional- Configure Conversion Delay
    7. Optional- Configure Auth Username
    8. Optional- Configure Auth Password
    9. Optional- Configure Ad Block
    10. Optional- Configure Cookie Consent Block
    11. Optional- Configure Cookies
    12. Optional- Configure JavaScript
    13. Optional- Configure Wait Element
    14. Optional- Configure User JS
    15. Optional- Configure User CSS
    16. Optional- Configure Hide Elements
    17. Optional- Select a CSS Media Type
    18. Optional- Configure Image Width
    19. Optional- Configure Image Height
    20. Optional- Configure Image Quality
    21. Optional- Configure Crop Element
    22. Optional- Configure Crop X
    23. Optional- Configure Crop Y
    24. Optional- Configure Crop Width
    25. Optional- Configure Crop Height
    26. Optional- Configure Zoom
    27. Optional- Configure Load Lazy Content
    28. Optional- Configure Viewport Width
    29. Optional- Configure Viewport Height
    30. Optional- Configure Respect Viewport
    31. Optional- Configure Scale
    32. Optional- Select a Page Orientation
    33. Optional- Select a Page Size
    34. Optional- Configure Page Width
    35. Optional- Configure Page Height
    36. Optional- Configure Margin Top
    37. Optional- Configure Margin Right
    38. Optional- Configure Margin Bottom
    39. Optional- Configure Margin Left
    40. Optional- Configure Page Range
    41. Optional- Configure Background
    42. Optional- Select a Fixed Elements
    43. Optional- Configure ShowElements
    44. Optional- Configure Avoid Break Elements
    45. Optional- Configure Break Before Elements
    46. Optional- Configure Break After Elements
    47. Optional- Configure Compress PDF
  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 based on a time interval before an upcoming event in the calendar. This source uses Pipedream's Task Scheduler. [See the documentation](https://pipedream.com/docs/examples/waiting-to-execute-next-step-of-workflow/#step-1-create-a-task-scheduler-event-source) for more information and instructions for connecting your Pipedream account.
Version:0.0.10
Key:google_calendar-upcoming-event-alert

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 taskScheduler from "../../../pipedream/sources/new-scheduled-tasks/new-scheduled-tasks.mjs";
import googleCalendar from "../../google_calendar.app.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  key: "google_calendar-upcoming-event-alert",
  name: "New Upcoming Event Alert",
  description: `Emit new event based on a time interval before an upcoming event in the calendar. This source uses Pipedream's Task Scheduler.
    [See the documentation](https://pipedream.com/docs/examples/waiting-to-execute-next-step-of-workflow/#step-1-create-a-task-scheduler-event-source) 
    for more information and instructions for connecting your Pipedream account.`,
  version: "0.0.10",
  type: "source",
  props: {
    pipedream: taskScheduler.props.pipedream,
    googleCalendar,
    db: "$.service.db",
    http: "$.interface.http",
    calendarId: {
      propDefinition: [
        googleCalendar,
        "calendarId",
      ],
    },
    eventTypes: {
      propDefinition: [
        googleCalendar,
        "eventTypes",
      ],
    },
    time: {
      type: "integer",
      label: "Minutes Before",
      description: "Number of minutes to trigger before the start of the calendar event.",
      min: 0,
      reloadProps: true,
    },
  },
  async additionalProps() {
    const props = {};
    if (this.time > 0) {
      props.timer = {
        type: "$.interface.timer",
        description: "Poll the API to schedule alerts for any newly created events",
        default: {
          intervalSeconds: 60 * this.time,
        },
      };
    }
    return props;
  },
  hooks: {
    async deactivate() {
      const ids = this._getScheduledEventIds();
      if (!ids?.length) {
        return;
      }
      for (const id of ids) {
        if (await this.deleteEvent({
          body: {
            id,
          },
        })) {
          console.log("Cancelled scheduled event");
        }
      }
      this._setScheduledEventIds();
    },
  },
  methods: {
    ...taskScheduler.methods,
    _getScheduledEventIds() {
      return this.db.get("scheduledEventIds");
    },
    _setScheduledEventIds(ids) {
      this.db.set("scheduledEventIds", ids);
    },
    _getScheduledCalendarEventIds() {
      return this.db.get("scheduledCalendarEventIds");
    },
    _setScheduledCalendarEventIds(ids) {
      this.db.set("scheduledCalendarEventIds", ids);
    },
    _hasDeployed() {
      const result = this.db.get("hasDeployed");
      this.db.set("hasDeployed", true);
      return result;
    },
    subtractMinutes(date, minutes) {
      return date.getTime() - minutes * 60000;
    },
    async getCalendarEvents() {
      const calendarEvents = [];
      const params = {
        returnOnlyData: false,
        calendarId: this.calendarId,
        eventTypes: this.eventTypes,
      };
      do {
        const {
          data: {
            items, nextPageToken,
          },
        } = await this.googleCalendar.listEvents(params);
        if (items?.length) {
          calendarEvents.push(...items);
        }
        params.pageToken = nextPageToken;
      } while (params.pageToken);
      return calendarEvents;
    },
  },
  async run(event) {
    // self subscribe only on the first time
    if (!this._hasDeployed()) {
      await this.selfSubscribe();
    }

    const scheduledEventIds = this._getScheduledEventIds() || [];

    // incoming scheduled event
    if (event.$channel === this.selfChannel()) {
      const remainingScheduledEventIds = scheduledEventIds.filter((id) => id !== event["$id"]);
      this._setScheduledEventIds(remainingScheduledEventIds);
      this.emitEvent(event, `Upcoming ${event.summary} event`);
      return;
    }

    // schedule new events
    const scheduledCalendarEventIds = this._getScheduledCalendarEventIds() || {};
    const calendarEvents = await this.getCalendarEvents();

    for (const calendarEvent of calendarEvents) {
      const startTime = calendarEvent.start
        ? (new Date(calendarEvent.start.dateTime || calendarEvent.start.date))
        : null;
      if (!startTime
        || startTime.getTime() < Date.now()
        || scheduledCalendarEventIds[calendarEvent.id])
      {
        continue;
      }
      const later = new Date(this.subtractMinutes(startTime, this.time));

      const scheduledEventId = this.emitScheduleEvent(calendarEvent, later);
      scheduledEventIds.push(scheduledEventId);
      scheduledCalendarEventIds[calendarEvent.id] = true;
    }
    this._setScheduledEventIds(scheduledEventIds);
    this._setScheduledCalendarEventIds(scheduledCalendarEventIds);
  },
  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 CalendarpipedreamappThis component uses the Google Calendar app.
Google CalendargoogleCalendarappThis component uses the Google Calendar app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
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.
Calendar IDcalendarIdstringSelect a value from the drop down menu.
Event TypeseventTypesstring[]Select a value from the drop down menu:defaultfocusTimeoutOfOfficeworkingLocation
Minutes Beforetimeinteger

Number of minutes to trigger before the start of the calendar event.

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:Converts a website page to a specified format. [See the documentation](https://v2.convertapi.com/info/openapi)
Version:0.0.1
Key:convertapi-convert-web-url

ConvertAPI Overview

ConvertAPI is a powerhouse for online file conversion, enabling you to transform files from one format to another effortlessly. It supports a plethora of file types, from common ones like PDFs and DOCs to more obscure formats. With ConvertAPI on Pipedream, you can automate file conversion tasks, seamlessly integrating them into workflows that trigger on events from other apps or schedules. Imagine converting incoming email attachments, processing uploaded documents, or archiving files in a different format—all happening automatically, in the background.

Action Code

import FormData from "form-data";
import {
  CSS_MEDIA_TYTPE_OPTIONS,
  FIXED_ELEMENTS_OPTIONS,
  FORMAT_TO_OPTIONS,
  PAGE_ORIENTATION_OPTIONS,
  PAGE_SIZE_OPTIONS,
} from "../../common/constants.mjs";
import { saveFile } from "../../common/utils.mjs";
import convertapi from "../../convertapi.app.mjs";

export default {
  key: "convertapi-convert-web-url",
  name: "Convert Web URL to Specified Format",
  description: "Converts a website page to a specified format. [See the documentation](https://v2.convertapi.com/info/openapi)",
  version: "0.0.1",
  type: "action",
  props: {
    convertapi,
    url: {
      type: "string",
      label: "URL",
      description: "The website URL to be converted to a specified format.",
    },
    formatTo: {
      type: "string",
      label: "Format To",
      description: "The format you want to convert the URL to.",
      options: FORMAT_TO_OPTIONS,
    },
    fileName: {
      type: "string",
      label: "File Name",
      description: "Converted output file name without extension. The extension will be added automatically.",
      optional: true,
    },
    timeout: {
      type: "string",
      label: "Timeout",
      description: "Conversion timeout in seconds.",
      optional: true,
    },
    conversionDelay: {
      type: "integer",
      label: "Conversion Delay",
      description: "Delay in seconds before page load and file creation. Sometimes useful to let web page fully load.",
      optional: true,
    },
    authUsername: {
      type: "string",
      label: "Auth Username",
      description: "HTTP authentication username. Could be used if conversion web page is protected with HTTP authentication.",
      optional: true,
    },
    authPassword: {
      type: "string",
      label: "Auth Password",
      description: "HTTP authentication password. Could be used if conversion web page is protected with HTTP authentication.",
      optional: true,
    },
    adBlock: {
      type: "boolean",
      label: "Ad Block",
      description: "Block ads in converting page.",
      optional: true,
    },
    cookieConsentBlock: {
      type: "boolean",
      label: "Cookie Consent Block",
      description: "Tries to remove EU regulation required cookie warnings from web pages.",
      optional: true,
    },
    cookies: {
      type: "string",
      label: "Cookies",
      description: "Set additional cookies for the page request. Exaple: cookiename1=cookievalue1; cookiename2=cookievalue2; cookiename3=cookievalue3",
      optional: true,
    },
    javaScript: {
      type: "boolean",
      label: "JavaScript",
      description: "Allow web pages to run JavaScript.",
      optional: true,
    },
    waitElement: {
      type: "string",
      label: "Wait Element",
      description: "Element selector string of the DOM element. Converter will wait for this element to appear in DOM before conversion begins.",
      optional: true,
    },
    userJs: {
      type: "string",
      label: "User JS",
      description: "Execute provided JavaScript before conversion begins.",
      optional: true,
    },
    userCss: {
      type: "string",
      label: "User CSS",
      description: "Apply additional CSS before conversion begins.",
      optional: true,
    },
    hideElements: {
      type: "string",
      label: "Hide Elements",
      description: "Element selector string of the DOM elements that need to be hidden during conversion.",
      optional: true,
    },
    cssMediaType: {
      type: "string",
      label: "CSS Media Type",
      description: "Use CSS media type in conversion process.",
      options: CSS_MEDIA_TYTPE_OPTIONS,
      optional: true,
      default: "screen",
    },
    imageWidth: {
      type: "integer",
      label: "Image Width",
      description: "Image width in pixels.",
      hidden: true,
      optional: true,
    },
    imageHeight: {
      type: "integer",
      label: "Image Height",
      description: "Image height in pixels.",
      hidden: true,
      optional: true,
    },
    imageQuality: {
      type: "integer",
      label: "Image Quality",
      description: "Set output image quality.",
      default: 75,
      hidden: true,
      optional: true,
    },
    cropElement: {
      type: "string",
      label: "Crop Element",
      description: "Element selector string of the DOM element that should be converted. Element will be cropped from the document.",
      hidden: true,
      optional: true,
    },
    cropX: {
      type: "integer",
      label: "Crop X",
      description: "Screenshot crop X offset.",
      hidden: true,
      optional: true,
    },
    cropY: {
      type: "integer",
      label: "Crop Y",
      description: "Screenshot crop Y offset.",
      hidden: true,
      optional: true,
    },
    cropWidth: {
      type: "integer",
      label: "Crop Width",
      description: "Screenshot crop width.",
      hidden: true,
      optional: true,
    },
    cropHeight: {
      type: "integer",
      label: "Crop Height",
      description: "Screenshot crop height.",
      hidden: true,
      optional: true,
    },
    zoom: {
      type: "integer",
      label: "Zoom",
      description: "Set the default zoom level of webpages.",
      hidden: true,
      optional: true,
    },
    loadLazyContent: {
      type: "boolean",
      label: "Load Lazy Content",
      description: "Load page images that loads only when they are visible.",
      hidden: true,
      optional: true,
    },
    viewportWidth: {
      type: "integer",
      label: "Viewport Width",
      description: "Sets browser viewport width.",
      hidden: true,
      default: 1366,
      optional: true,
    },
    viewportHeight: {
      type: "integer",
      label: "Viewport Height",
      description: "Sets browser viewport height.",
      hidden: true,
      default: 1024,
      optional: true,
    },
    respectViewport: {
      type: "boolean",
      label: "Respect Viewport",
      description: "If true, the converter will generate PDF as the content looks like in the browser. If is set to false, the converter acts like Chrome print to PDF function.",
      hidden: true,
      optional: true,
    },
    scale: {
      type: "integer",
      label: "Scale",
      description: "Set web page scale value in percentage.",
      hidden: true,
      default: 100,
      optional: true,
    },
    pageOrientation: {
      type: "string",
      label: "Page Orientation",
      description: "PDF page orientation",
      hidden: true,
      options: PAGE_ORIENTATION_OPTIONS,
      optional: true,
    },
    pageSize: {
      type: "string",
      label: "Page Size",
      description: "PDF Page Size",
      hidden: true,
      options: PAGE_SIZE_OPTIONS,
      optional: true,
    },
    pageWidth: {
      type: "integer",
      label: "Page Width",
      description: "Custom page width in millimeters (mm). This option override PageSize option.",
      hidden: true,
      optional: true,
    },
    pageHeight: {
      type: "integer",
      label: "Page Height",
      description: "Custom page height in millimeters (mm). This option override PageSize option.",
      hidden: true,
      optional: true,
    },
    marginTop: {
      type: "integer",
      label: "Margin Top",
      description: "Set the page top margin in millimeters (mm).",
      hidden: true,
      optional: true,
    },
    marginRight: {
      type: "integer",
      label: "Margin Right",
      description: "Set the page right margin in millimeters (mm).",
      hidden: true,
      optional: true,
    },
    marginBottom: {
      type: "integer",
      label: "Margin Bottom",
      description: "Set the page bottom margin in millimeters (mm).",
      hidden: true,
      optional: true,
    },
    marginLeft: {
      type: "integer",
      label: "Margin Left",
      description: "Set the page left margin in millimeters (mm).",
      hidden: true,
      optional: true,
    },
    pageRange: {
      type: "string",
      label: "Page Range",
      description: "Set page range. Example 1-10 or 1,2,5.",
      hidden: true,
      optional: true,
    },
    background: {
      type: "boolean",
      label: "Background",
      description: "Convert web page background.",
      hidden: true,
      optional: true,
    },
    fixedElements: {
      type: "string",
      label: "Fixed Elements",
      description: "Change fixed elements CSS 'position' property to adapt page for conversion",
      options: FIXED_ELEMENTS_OPTIONS,
      hidden: true,
      optional: true,
    },
    showElements: {
      type: "string",
      label: "ShowElements",
      description: "Element selector string of the DOM elements that should be visible during conversion. Other elements will be hidden.",
      hidden: true,
      optional: true,
    },
    avoidBreakElements: {
      type: "string",
      label: "Avoid Break Elements",
      description: "CSS selector for the elements that pages should not break.",
      hidden: true,
      optional: true,
    },
    breakBeforeElements: {
      type: "string",
      label: "Break Before Elements",
      description: "CSS selector for the elements that should apply page break before it.",
      hidden: true,
      optional: true,
    },
    breakAfterElements: {
      type: "string",
      label: "Break After Elements",
      description: "CSS selector for the elements that should apply page break after it.",
      hidden: true,
      optional: true,
    },
    compressPDF: {
      type: "boolean",
      label: "Compress PDF",
      description: "It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",
      hidden: true,
      optional: true,
    },
  },
  async additionalProps(props) {
    const isJpg = this.formatTo === "jpg";

    props.imageWidth.hidden = !isJpg;
    props.imageHeight.hidden = !isJpg;
    props.type.hidden = !isJpg;
    props.cropElement.hidden = !isJpg;
    props.cropX.hidden = !isJpg;
    props.cropY.hidden = !isJpg;
    props.cropWidth.hidden = !isJpg;
    props.cropHeight.hidden = !isJpg;
    props.zoom.hidden = !isJpg;

    props.loadLazyContent.hidden = isJpg;
    props.viewportWidth.hidden = isJpg;
    props.viewportHeight.hidden = isJpg;
    props.respectViewport.hidden = isJpg;
    props.scale.hidden = isJpg;
    props.pageOrientation.hidden = isJpg;
    props.pageSize.hidden = isJpg;
    props.pageWidth.hidden = isJpg;
    props.pageHeight.hidden = isJpg;
    props.marginTop.hidden = isJpg;
    props.marginRight.hidden = isJpg;
    props.marginBottom.hidden = isJpg;
    props.marginLeft.hidden = isJpg;
    props.pageRange.hidden = isJpg;
    props.background.hidden = isJpg;
    props.fixedElements.hidden = isJpg;
    props.showElements.hidden = isJpg;
    props.avoidBreakElements.hidden = isJpg;
    props.breakBeforeElements.hidden = isJpg;
    props.breakAfterElements.hidden = isJpg;
    props.compressPDF.hidden = isJpg;

    return {};
  },
  async run({ $ }) {
    try {
      const data = new FormData();

      data.append("Url", this.url);
      if (this.fileName) data.append("FileName", this.fileName);
      if (this.timeout) data.append("Timeout", this.timeout);
      if (this.conversionDelay) data.append("ConversionDelay", this.conversionDelay);
      if (this.authUsername) data.append("AuthUsername", this.authUsername);
      if (this.authPassword) data.append("AuthPassword", this.authPassword);
      if (this.adBlock) data.append("AdBlock", `${this.adBlock}`);
      if (this.cookieConsentBlock) data.append("CookieConsentBlock", `${this.cookieConsentBlock}`);
      if (this.cookies) data.append("Cookies", this.cookies);
      if (this.javaScript) data.append("JavaScript", `${this.javaScript}`);
      if (this.waitElement) data.append("WaitElement", this.waitElement);
      if (this.userJs) data.append("UserJs", this.userJs);
      if (this.userCss) data.append("UserCss", this.userCss);
      if (this.hideElements) data.append("HideElements", this.hideElements);
      if (this.cssMediaType) data.append("CssMediaType", this.cssMediaType);

      if (this.formatTo === "jpg") {
        if (this.imageWidth) data.append("ImageWidth", this.imageWidth);
        if (this.imageHeight) data.append("ImageHeight", this.imageHeight);
        if (this.type) data.append("Type", this.type);
        if (this.cropElement) data.append("CropElement", this.cropElement);
        if (this.cropX) data.append("CropX", this.cropX);
        if (this.cropY) data.append("CropY", this.cropY);
        if (this.cropWidth) data.append("CropWidth", this.cropWidth);
        if (this.cropHeight) data.append("CropHeight", this.cropHeight);
        if (this.zoom) data.append("Zoom", this.zoom);
      } else {
        if (this.loadLazyContent) data.append("LoadLazyContent", `${this.loadLazyContent}`);
        if (this.viewportWidth) data.append("ViewportWidth", this.viewportWidth);
        if (this.viewportHeight) data.append("ViewportHeight", this.viewportHeight);
        if (this.respectViewport) data.append("RespectViewport", `${this.respectViewport}`);
        if (this.scale) data.append("Scale", this.scale);
        if (this.pageOrientation) data.append("PageOrientation", this.pageOrientation);
        if (this.pageSize) data.append("PageSize", this.pageSize);
        if (this.pageWidth) data.append("PageWidth", this.pageWidth);
        if (this.pageHeight) data.append("PageHeight", this.pageHeight);
        if (this.marginTop) data.append("MarginTop", this.marginTop);
        if (this.marginRight) data.append("MarginRight", this.marginRight);
        if (this.marginBottom) data.append("MarginBottom", this.marginBottom);
        if (this.marginLeft) data.append("MarginLeft", this.marginLeft);
        if (this.pageRange) data.append("PageRange", this.pageRange);
        if (this.background) data.append("Background", `${this.background}`);
        if (this.fixedElements) data.append("FixedElements", this.fixedElements);
        if (this.showElements) data.append("ShowElements", this.showElements);
        if (this.avoidBreakElements) data.append("AvoidBreakElements", this.avoidBreakElements);
        if (this.breakBeforeElements) data.append("BreakBeforeElements", this.breakBeforeElements);
        if (this.breakAfterElements) data.append("BreakAfterElements", this.breakAfterElements);
        if (this.compressPDF) data.append("CompressPDF", `${this.compressPDF}`);
      }

      const { Files } = await this.convertapi.convertWebToFormat({
        $,
        formatTo: this.formatTo,
        data,
        headers: data.getHeaders(),
        timeout: this.timeout ? 2000 * Number(this.timeout) : undefined,
      });

      await saveFile(Files);
      const filename = Files[0].FileName;

      $.export("$summary", `Successfully converted URL to ${this.formatTo} and saved in /tmp directory as **${filename}**.`);
      return {
        filepath: `/tmp/${filename}`,
      };
    } catch (e) {
      throw new Error(e);
    }
  },
};

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
ConvertAPIconvertapiappThis component uses the ConvertAPI app.
URLurlstring

The website URL to be converted to a specified format.

Format ToformatTostringSelect a value from the drop down menu:jpgpdf
File NamefileNamestring

Converted output file name without extension. The extension will be added automatically.

Timeouttimeoutstring

Conversion timeout in seconds.

Conversion DelayconversionDelayinteger

Delay in seconds before page load and file creation. Sometimes useful to let web page fully load.

Auth UsernameauthUsernamestring

HTTP authentication username. Could be used if conversion web page is protected with HTTP authentication.

Auth PasswordauthPasswordstring

HTTP authentication password. Could be used if conversion web page is protected with HTTP authentication.

Ad BlockadBlockboolean

Block ads in converting page.

Cookie Consent BlockcookieConsentBlockboolean

Tries to remove EU regulation required cookie warnings from web pages.

Cookiescookiesstring

Set additional cookies for the page request. Exaple: cookiename1=cookievalue1; cookiename2=cookievalue2; cookiename3=cookievalue3

JavaScriptjavaScriptboolean

Allow web pages to run JavaScript.

Wait ElementwaitElementstring

Element selector string of the DOM element. Converter will wait for this element to appear in DOM before conversion begins.

User JSuserJsstring

Execute provided JavaScript before conversion begins.

User CSSuserCssstring

Apply additional CSS before conversion begins.

Hide ElementshideElementsstring

Element selector string of the DOM elements that need to be hidden during conversion.

CSS Media TypecssMediaTypestringSelect a value from the drop down menu:printscreen

Action Authentication

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

You can get your API Secret on your Profile Page under the Authentication section on the left sidebar.

About ConvertAPI

ConvertAPI is a high-performance online files conversion and manipulation service for developers. It can be integrated into any application or platform in just a few minutes, scales up to handle any amount of traffic, uses little resources and supports 200+ conversion actions.

More Ways to Connect ConvertAPI + Google Calendar

Convert File with ConvertAPI API on New Cancelled Event from Google Calendar API
Google Calendar + ConvertAPI
 
Try it
Convert Base64 Encoded File with ConvertAPI API on New Cancelled Event from Google Calendar API
Google Calendar + ConvertAPI
 
Try it
Convert File with ConvertAPI API on New Ended Event from Google Calendar API
Google Calendar + ConvertAPI
 
Try it
Convert Base64 Encoded File with ConvertAPI API on New Ended Event from Google Calendar API
Google Calendar + ConvertAPI
 
Try it
Convert File with ConvertAPI API on New Calendar Created from Google Calendar API
Google Calendar + ConvertAPI
 
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. This source uses Pipedream's Task Scheduler. See the documentation for more information and instructions for connecting your Pipedream account.

 
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
List Calendars with the Google Calendar API

Retrieve a list of calendars from Google Calendar. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,500+
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.