← Async Interview + Mews integrations

Fetch Customers with Mews API on New Interview Response from Async Interview API

Pipedream makes it easy to connect APIs for Mews, Async Interview and 2,800+ other apps remarkably fast.

Trigger workflow on
New Interview Response from the Async Interview API
Next, do this
Fetch Customers with the Mews 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 Async Interview trigger and Mews 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 Interview Response trigger
    1. Connect your Async Interview account
    2. Configure timer
  3. Configure the Fetch Customers action
    1. Connect your Mews account
    2. Optional- Configure Created Start (UTC)
    3. Optional- Configure Created End (UTC)
    4. Optional- Configure Updated Start (UTC)
    5. Optional- Configure Updated End (UTC)
    6. Optional- Configure Deleted Start (UTC)
    7. Optional- Configure Deleted End (UTC)
    8. Optional- Select one or more Activity States
    9. Optional- Select one or more Customer IDs
    10. Optional- Select one or more Company IDs
    11. Optional- Select one or more Emails
    12. Optional- Configure First Names
    13. Optional- Configure Last Names
    14. Optional- Configure Extent - Customers
    15. Optional- Configure Extent - Addresses
  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 interview response is received.
Version:0.0.1
Key:async_interview-new-interview-response

Async Interview Overview

The Async Interview API enables automation around video interview processes. With this API, you can craft workflows on Pipedream that manipulate interview data, initiate new interviews, and respond to events within the Async Interview platform. Pipedream's serverless architecture allows you to connect with hundreds of apps to streamline recruitment workflows, analyze interview data, or enhance the candidate experience with personalized interactions.

Trigger Code

import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
import asyncInterview from "../../async_interview.app.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  key: "async_interview-new-interview-response",
  name: "New Interview Response",
  description: "Emit new event when a new interview response is received.",
  version: "0.0.1",
  type: "source",
  dedupe: "unique",
  props: {
    asyncInterview,
    db: "$.service.db",
    timer: {
      type: "$.interface.timer",
      default: {
        intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
      },
    },
  },
  methods: {
    _getLastId() {
      return this.db.get("lastId") || 0;
    },
    _setLastId(lastId) {
      this.db.set("lastId", lastId);
    },
    generateMeta(event) {
      return {
        id: event.id,
        summary: `New interview response with ID ${event.id}`,
        ts: Date.parse(event.datetime),
      };
    },
    async startEvent(maxResults = 0) {
      const lastId = this._getLastId();

      let data = await this.asyncInterview.listInterviewResponses();

      data = data.filter((item) => item.id > lastId).reverse();

      if (maxResults && (data.length > maxResults)) data.length = maxResults;
      if (data.length) this._setLastId(data[0].id);

      for (const item of data.reverse()) {
        this.$emit(item, this.generateMeta(item));
      }
    },
  },
  hooks: {
    async deploy() {
      await this.startEvent(25);
    },
  },
  async run() {
    await this.startEvent();
  },
  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
Async InterviewasyncInterviewappThis component uses the Async Interview app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer

Trigger Authentication

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

About Async Interview

Async Interview is the world’s most advanced video interviewing platform, offering pre-recorded interviews customized to meet any recruitment scenario.

Action

Description:Retrieve customers using Mews Connector API. [See the documentation](https://mews-systems.gitbook.io/connector-api/operations/customers#get-all-customers)
Version:0.0.2
Key:mews-fetch-customers

Mews Overview

The Mews API is a gateway for developers to interact with the Mews hospitality platform, allowing for innovative connections and automations between hotel management systems and other software tools. By using Pipedream, you can create custom workflows that automate repetitive tasks, integrate with numerous third-party services, and manipulate data to suit specific needs within the hospitality industry. The combination of Mews' API and Pipedream's serverless execution model paves the way for enhanced guest experiences, optimized operations, and real-time data handling.

Action Code

import app from "../../mews.app.mjs";

export default {
  name: "Fetch Customers",
  description: "Retrieve customers using Mews Connector API. [See the documentation](https://mews-systems.gitbook.io/connector-api/operations/customers#get-all-customers)",
  key: "mews-fetch-customers",
  version: "0.0.2",
  type: "action",
  props: {
    app,
    createdStartUtc: {
      propDefinition: [
        app,
        "createdStartUtc",
      ],
    },
    createdEndUtc: {
      propDefinition: [
        app,
        "createdEndUtc",
      ],
    },
    updatedStartUtc: {
      propDefinition: [
        app,
        "updatedStartUtc",
      ],
    },
    updatedEndUtc: {
      propDefinition: [
        app,
        "updatedEndUtc",
      ],
    },
    deletedStartUtc: {
      propDefinition: [
        app,
        "deletedStartUtc",
      ],
    },
    deletedEndUtc: {
      propDefinition: [
        app,
        "deletedEndUtc",
      ],
    },
    activityStates: {
      type: "string[]",
      label: "Activity States",
      description: "Whether to return only active, only deleted or both records.",
      optional: true,
      options: [
        "Active",
        "Deleted",
      ],
    },
    customerIds: {
      type: "string[]",
      label: "Customer IDs",
      description: "Unique identifiers of Customers. Required if no other filter is provided. Max 1000 items.",
      optional: true,
      propDefinition: [
        app,
        "customerId",
      ],
    },
    companyIds: {
      type: "string[]",
      label: "Company IDs",
      description: "Unique identifier of the Company the customer is associated with. Max 1 item.",
      optional: true,
      propDefinition: [
        app,
        "companyId",
      ],
    },
    emails: {
      type: "string[]",
      label: "Emails",
      description: "Emails of the Customers. Max 1000 items.",
      optional: true,
      propDefinition: [
        app,
        "customerId",
        () => ({
          mapper: (customer) => ({
            label: `${customer.FirstName} ${customer.LastName}`,
            value: customer.Email,
          }),
        }),
      ],
    },
    firstNames: {
      type: "string[]",
      label: "First Names",
      description: "First names of the Customers. Max 1000 items.",
      optional: true,
    },
    lastNames: {
      type: "string[]",
      label: "Last Names",
      description: "Last names of the Customers. Max 1000 items.",
      optional: true,
    },
    extentCustomers: {
      type: "boolean",
      label: "Extent - Customers",
      description: "Whether to include customer data in the response.",
      optional: true,
      default: true,
    },
    extentAddresses: {
      type: "boolean",
      label: "Extent - Addresses",
      description: "Whether to include address data in the response.",
      optional: true,
      default: false,
    },
  },
  async run({ $ }) {
    const {
      app,
      createdStartUtc,
      createdEndUtc,
      updatedStartUtc,
      updatedEndUtc,
      deletedStartUtc,
      deletedEndUtc,
      activityStates,
      customerIds,
      companyIds,
      emails,
      firstNames,
      lastNames,
      extentCustomers,
      extentAddresses,
    } = this;

    const items = await app.paginate({
      requester: app.customersGetAll,
      requesterArgs: {
        $,
        data: {
          ...(createdStartUtc || createdEndUtc) && {
            CreatedUtc: {
              StartUtc: createdStartUtc,
              EndUtc: createdEndUtc,
            },
          },
          ...(updatedStartUtc || updatedEndUtc) && {
            UpdatedUtc: {
              StartUtc: updatedStartUtc,
              EndUtc: updatedEndUtc,
            },
          },
          ...(deletedStartUtc || deletedEndUtc) && {
            DeletedUtc: {
              StartUtc: deletedStartUtc,
              EndUtc: deletedEndUtc,
            },
          },
          Extent: {
            Customers: extentCustomers,
            Addresses: extentAddresses,
          },
          ActivityStates: activityStates,
          CustomerIds: customerIds,
          CompanyIds: companyIds,
          Emails: emails,
          FirstNames: firstNames,
          LastNames: lastNames,
        },
      },
      resultKey: "Customers",
    });

    $.export("$summary", `Successfully fetched ${items.length} customer${items.length !== 1
      ? "s"
      : ""}`);
    return items;
  },
};

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
MewsappappThis component uses the Mews app.
Created Start (UTC)createdStartUtcstring

Start of the interval in which Customer was created. ISO 8601 format. Eg. 2025-01-01T00:00:00Z

Created End (UTC)createdEndUtcstring

End of the interval in which Customer was created. ISO 8601 format. Max 3 months interval. Eg. 2025-01-01T00:00:00Z

Updated Start (UTC)updatedStartUtcstring

Start of the interval in which Customer was updated. ISO 8601 format. Eg. 2025-01-01T00:00:00Z

Updated End (UTC)updatedEndUtcstring

End of the interval in which Customer was updated. ISO 8601 format. Max 3 months interval. Eg. 2025-01-01T00:00:00Z

Deleted Start (UTC)deletedStartUtcstring

Start of the interval in which Customer was deleted. ISO 8601 format. ActivityStates value 'Deleted' should be provided with this filter. Eg. 2025-01-01T00:00:00Z

Deleted End (UTC)deletedEndUtcstring

End of the interval in which Customer was deleted. ISO 8601 format. Max 3 months interval. Eg. 2025-01-01T00:00:00Z

Activity StatesactivityStatesstring[]Select a value from the drop down menu:ActiveDeleted
Customer IDscustomerIdsstring[]Select a value from the drop down menu.
Company IDscompanyIdsstring[]Select a value from the drop down menu.
Emailsemailsstring[]Select a value from the drop down menu.
First NamesfirstNamesstring[]

First names of the Customers. Max 1000 items.

Last NameslastNamesstring[]

Last names of the Customers. Max 1000 items.

Extent - CustomersextentCustomersboolean

Whether to include customer data in the response.

Extent - AddressesextentAddressesboolean

Whether to include address data in the response.

Action Authentication

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

About Mews

An innovative hospitality management cloud that empowers the modern hotelier to improve performance, maximize revenue, and provide remarkable guest experiences.

More Ways to Connect Mews + Async Interview

Cancel Reservation with Mews API on New Interview Response from Async Interview API
Async Interview + Mews
 
Try it
Create Reservation with Mews API on New Interview Response from Async Interview API
Async Interview + Mews
 
Try it
Fetch Reservations with Mews API on New Interview Response from Async Interview API
Async Interview + Mews
 
Try it
Fetch Order Items with Mews API on New Interview Response from Async Interview API
Async Interview + Mews
 
Try it
Fetch Products with Mews API on New Interview Response from Async Interview API
Async Interview + Mews
 
Try it
New Interview Response from the Async Interview API

Emit new event when a new interview response is received.

 
Try it
New Closed Bill from the Mews API

Emit new event when a bill is closed

 
Try it
New Company from the Mews API

Emit new event when a company is created. See the documentation

 
Try it
New Customer from the Mews API

Emit new event when a customer is created. See the documentation

 
Try it
New Order Item Created from the Mews API

Emit new order items as they are created (polling). See the documentation

 
Try it
Add Customer with the Mews API

Adds a new customer to the system. See the documentation

 
Try it
Add Customer File with the Mews API

Add a customer file to the Mews system. See the documentation

 
Try it
Add Reservation Companion with the Mews API

Add a customer as a companion to a reservation. See the documentation

 
Try it
Add Reservation Product with the Mews API

Add a product to a reservation. See the documentation

 
Try it
Cancel Reservation with the Mews API

Cancel a reservation in Mews.

 
Try it

Explore Other Apps

1
-
24
of
2,800+
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.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
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.
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.