← Async Interview + Mews integrations

Fetch Order Items 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 Order Items 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 Order Items 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 Consumed Start (UTC)
    7. Optional- Configure Consumed End (UTC)
    8. Optional- Configure Canceled Start (UTC)
    9. Optional- Configure Canceled End (UTC)
    10. Optional- Configure Closed Start (UTC)
    11. Optional- Configure Closed End (UTC)
    12. Optional- Select one or more Enterprise IDs
    13. Optional- Select one or more Order Item IDs
    14. Select a Account Type
    15. Optional- Select one or more Account IDs
    16. Optional- Select one or more Service Order IDs
    17. Optional- Select one or more Service IDs
    18. Optional- Select one or more Bill IDs
    19. Optional- Configure Currency
    20. Optional- Select one or more Accounting States
    21. Optional- Select one or more Types
  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 order items using Mews Connector API. [See the documentation](https://mews-systems.gitbook.io/connector-api/operations/orderitems#get-all-order-items)
Version:0.0.2
Key:mews-fetch-order-items

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 Order Items",
  description: "Retrieve order items using Mews Connector API. [See the documentation](https://mews-systems.gitbook.io/connector-api/operations/orderitems#get-all-order-items)",
  key: "mews-fetch-order-items",
  version: "0.0.2",
  type: "action",
  props: {
    app,
    createdStartUtc: {
      description: "Start of the interval in which Order item was created. ISO 8601 format. Eg. `2025-01-01T00:00:00Z`",
      propDefinition: [
        app,
        "createdStartUtc",
      ],
    },
    createdEndUtc: {
      description: "End of the interval in which Order item was created. ISO 8601 format. Max 3 months interval. Eg. `2025-01-01T00:00:00Z`",
      propDefinition: [
        app,
        "createdEndUtc",
      ],
    },
    updatedStartUtc: {
      description: "Start of the interval in which Order item was updated. ISO 8601 format. Eg. `2025-01-01T00:00:00Z`",
      propDefinition: [
        app,
        "updatedStartUtc",
      ],
    },
    updatedEndUtc: {
      description: "End of the interval in which Order item was updated. ISO 8601 format. Max 3 months interval. Eg. `2025-01-01T00:00:00Z`",
      propDefinition: [
        app,
        "updatedEndUtc",
      ],
    },
    consumedStartUtc: {
      type: "string",
      label: "Consumed Start (UTC)",
      description: "Start of the interval in which Order item was consumed. ISO 8601 format. Eg. `2025-01-01T00:00:00Z`",
      optional: true,
    },
    consumedEndUtc: {
      type: "string",
      label: "Consumed End (UTC)",
      description: "End of the interval in which Order item was consumed. ISO 8601 format. Max 3 months interval. Eg. `2025-01-01T00:00:00Z`",
      optional: true,
    },
    canceledStartUtc: {
      type: "string",
      label: "Canceled Start (UTC)",
      description: "Start of the interval in which Order item was canceled. ISO 8601 format. Eg. `2025-01-01T00:00:00Z`",
      optional: true,
    },
    canceledEndUtc: {
      type: "string",
      label: "Canceled End (UTC)",
      description: "End of the interval in which Order item was canceled. ISO 8601 format. Max 3 months interval. Eg. `2025-01-01T00:00:00Z`",
      optional: true,
    },
    closedStartUtc: {
      type: "string",
      label: "Closed Start (UTC)",
      description: "Start of the interval in which Order item was closed. ISO 8601 format. Eg. `2025-01-01T00:00:00Z`",
      optional: true,
    },
    closedEndUtc: {
      type: "string",
      label: "Closed End (UTC)",
      description: "End of the interval in which Order item was closed. ISO 8601 format. Max 3 months interval. Eg. `2025-01-01T00:00:00Z`",
      optional: true,
    },
    enterpriseIds: {
      propDefinition: [
        app,
        "enterpriseIds",
      ],
    },
    orderItemIds: {
      propDefinition: [
        app,
        "orderItemIds",
      ],
    },
    accountType: {
      propDefinition: [
        app,
        "accountType",
      ],
    },
    accountIds: {
      type: "string[]",
      label: "Account IDs",
      description: "Unique identifiers of specific Accounts to which the order items belong to. Required if no other filter is provided. Max 100 items.",
      optional: true,
      propDefinition: [
        app,
        "accountId",
        ({ accountType }) => ({
          accountType,
        }),
      ],
    },
    serviceOrderIds: {
      type: "string[]",
      label: "Service Order IDs",
      description: "Unique identifiers of the service orders (product service orders or reservations). Required if no other filter is provided. Max 1000 items.",
      optional: true,
      propDefinition: [
        app,
        "reservationId",
      ],
    },
    serviceIds: {
      type: "string[]",
      label: "Service IDs",
      description: "Unique identifiers of the Services. Required if no other filter is provided. Max 1000 items.",
      optional: true,
      propDefinition: [
        app,
        "serviceId",
      ],
    },
    billIds: {
      type: "string[]",
      label: "Bill IDs",
      description: "Unique identifiers of the Bills to which order item is assigned. Required if no other filter is provided. Max 1000 items.",
      optional: true,
      propDefinition: [
        app,
        "billId",
      ],
    },
    currency: {
      type: "string",
      label: "Currency",
      description: "ISO-4217 code of the Currency the item costs should be converted to.",
      optional: true,
    },
    accountingStates: {
      type: "string[]",
      label: "Accounting States",
      description: "Accounting state of the item. Max 1000 items.",
      optional: true,
      options: [
        "Open",
        "Closed",
        "Deferred",
        "Canceled",
      ],
    },
    types: {
      type: "string[]",
      label: "Types",
      description: "Order item type, e.g. whether product order or space order. Max 1000 items.",
      optional: true,
      options: [
        "ProductOrder",
        "SpaceOrder",
      ],
    },
  },
  async run({ $ }) {
    const {
      app,
      createdStartUtc,
      createdEndUtc,
      updatedStartUtc,
      updatedEndUtc,
      consumedStartUtc,
      consumedEndUtc,
      canceledStartUtc,
      canceledEndUtc,
      closedStartUtc,
      closedEndUtc,
      enterpriseIds,
      orderItemIds,
      accountIds,
      serviceOrderIds,
      serviceIds,
      billIds,
      currency,
      accountingStates,
      types,
    } = this;

    const items = await app.paginate({
      requester: app.orderItemsGetAll,
      requesterArgs: {
        $,
        data: {
          ...(createdStartUtc || createdEndUtc) && {
            CreatedUtc: {
              StartUtc: createdStartUtc,
              EndUtc: createdEndUtc,
            },
          },
          ...(updatedStartUtc || updatedEndUtc) && {
            UpdatedUtc: {
              StartUtc: updatedStartUtc,
              EndUtc: updatedEndUtc,
            },
          },
          ...(consumedStartUtc || consumedEndUtc) && {
            ConsumedUtc: {
              StartUtc: consumedStartUtc,
              EndUtc: consumedEndUtc,
            },
          },
          ...(canceledStartUtc || canceledEndUtc) && {
            CanceledUtc: {
              StartUtc: canceledStartUtc,
              EndUtc: canceledEndUtc,
            },
          },
          ...(closedStartUtc || closedEndUtc) && {
            ClosedUtc: {
              StartUtc: closedStartUtc,
              EndUtc: closedEndUtc,
            },
          },
          EnterpriseIds: enterpriseIds,
          OrderItemIds: orderItemIds,
          AccountIds: accountIds,
          ServiceOrderIds: serviceOrderIds,
          ServiceIds: serviceIds,
          BillIds: billIds,
          Currency: currency,
          AccountingStates: accountingStates,
          Types: types,
        },
      },
      resultKey: "OrderItems",
    });

    $.export("$summary", `Successfully fetched ${items.length} order item${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 Order item was created. ISO 8601 format. Eg. 2025-01-01T00:00:00Z

Created End (UTC)createdEndUtcstring

End of the interval in which Order item 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 Order item was updated. ISO 8601 format. Eg. 2025-01-01T00:00:00Z

Updated End (UTC)updatedEndUtcstring

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

Consumed Start (UTC)consumedStartUtcstring

Start of the interval in which Order item was consumed. ISO 8601 format. Eg. 2025-01-01T00:00:00Z

Consumed End (UTC)consumedEndUtcstring

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

Canceled Start (UTC)canceledStartUtcstring

Start of the interval in which Order item was canceled. ISO 8601 format. Eg. 2025-01-01T00:00:00Z

Canceled End (UTC)canceledEndUtcstring

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

Closed Start (UTC)closedStartUtcstring

Start of the interval in which Order item was closed. ISO 8601 format. Eg. 2025-01-01T00:00:00Z

Closed End (UTC)closedEndUtcstring

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

Enterprise IDsenterpriseIdsstring[]Select a value from the drop down menu.
Order Item IDsorderItemIdsstring[]Select a value from the drop down menu.
Account TypeaccountTypestringSelect a value from the drop down menu:customercompany
Account IDsaccountIdsstring[]Select a value from the drop down menu.
Service Order IDsserviceOrderIdsstring[]Select a value from the drop down menu.
Service IDsserviceIdsstring[]Select a value from the drop down menu.
Bill IDsbillIdsstring[]Select a value from the drop down menu.
Currencycurrencystring

ISO-4217 code of the Currency the item costs should be converted to.

Accounting StatesaccountingStatesstring[]Select a value from the drop down menu:OpenClosedDeferredCanceled
Typestypesstring[]Select a value from the drop down menu:ProductOrderSpaceOrder

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