How to Use Adapters

The Adapter is your gateway to connecting CarePortals workflows with the external, third-party tools your business relies on. Think of it as a bridge that allows CarePortals to communicate with other platforms.

This enables you to automate powerful actions like processing payments with Stripe, subscribing leads to a list in Klaviyo, or updating your CRM in HubSpot, all from a single workflow.

How the Adapter Works

Setting up an Adapter involves telling it which service to connect to, what action to perform, and what data to use:

  1. Select Adapter Type: Choose the external service (e.g., Stripe, Klaviyo, HubSpot) you want to interact with from the dropdown menu.

  2. Select Function: After selecting a service, choose the specific action you want to perform from the Function dropdown menu. Each function corresponds to an available operation supported by that integration.

  3. Configure Parameters: Fill in the required parameter fields for the chosen function. This is where you'll provide the data needed to perform the action, such as a customer ID, an email address, or an order amount. You can use dynamic variables to pull this data directly from your workflow.

  4. Configure Extras (Optional): Some adapter actions may include an Extras section. This allows you to pass additional, non-required information or custom metadata to the third-party service, which can be useful for tracking or advanced integrations.

Using Dynamic Variables in Adapters

To build truly automated workflows, you must use dynamic variables instead of static, hard-coded values. By using a dynamic variable like {{customer.email}}, you ensure the workflow pulls the email address from the current trigger's data.

This means the new patient who just signed up gets the email. Therefore, dynamic variables make your workflows contextual and responsive.

An Adapter step can pull data from two sources:

  • Trigger Payload: This is the data that initiated the workflow. For example, if a new order trigger starts the workflow, the payload will contain all the details of that specific order (e.g., {{customer.email}}, {{totalAmount}}).

  • Previous Step Results: The Adapter can also use results from steps that ran earlier in the same workflow. This data is accessed using the history object. For example, to get the first name from the result of the first step, you would use {{history.1.result.first_name}}.

Access the Trigger Events Payload Index page to check payload information available for each different trigger.

Adapters Use Case

Consider you need to create a workflow to automatically create a Stripe invoice as soon as a new order is created in your system. The workflow will start for all order.created. The trigger payload contains the customer's ID, the order total, and a description.

  1. Add an Adapter step to your workflow.

  2. Set the Adapter Type to Stripe.

  3. Set the Function to Create Charge.

  4. In the Parameters section, map the dynamic variables from the order.created payload to the corresponding Stripe fields.

    Field

    Variable

    Description

    Email

    {{customer.email}}

    This field requires a valid Stripe Customer ID (e.g., cus_xxxxxxxxxxxxxx). Your customer._id must correspond to a customer ID within your Stripe account. If it doesn't, you may need a previous step to find or create a Stripe customer using their email ({{payload.customer.email}}).

    Amount

    {{totalAmount}}

    Stripe requires this value to be in the smallest currency unit.

    Currency

    USD

    This is typically a static value, as most businesses process payments in a single currency.

    Description

    Charge for Order #{{id}}

    This creates a clear description in Stripe using the public-facing order number.

You can also use the Extras section to pass additional metadata for easier tracking and reconciliation between your systems and Stripe.

Understanding Adapter Results

When an Adapter runs successfully, its response is not added to the main trigger payload, but it is stored in the workflow's history object. This allows later steps to reference the result.

For example, if a LifeFile Adapter returns a new order_id, you can access it in a later Condition step using history.{{step_number}}.result.{{variable_name}}:

{{history.3.result.order_id}} 

This approach supports branching logic and conditional workflows based on external service responses.

Available Adapters

The following table lists the third-party integrations available as Adapters within the workflow automation engine:

Adapter

Description

Attentive

Connect with the Attentive platform for personalized mobile messaging and SMS marketing campaigns.

Beluga

Send visit requests and manage consultations via the Beluga physician network.

BigCommerce

Integrate with the BigCommerce e-commerce platform.

Curexa Pharmacy

Integrate directly with the Curexa Pharmacy for prescription fulfillment and management.

DoseSpot

Connect with the DoseSpot e-prescribing platform.

GoGoMeds

Connect with the GoGoMeds online pharmacy for medication ordering and prescription services.

HubSpot

Integrate with HubSpot CRM to create Contacts and Leads.

Input Health

Integrate with the Input Health EMR for digital patient intake, online forms, and health data collection.

Klaviyo

Connect with Klaviyo for email and SMS marketing automation.

Kroll

Link to the Kroll pharmacy system to automate and sync patient and Rx data.

LifeFile

Integrate with LifeFile pharmacy management software for prescription fulfillment.

Oscar

Sync with Oscar EMR to update patient and appointment data.

Persona

Integrate with Persona’s identity verification platform to securely verify patient identities, ensure compliance, and streamline patient onboarding.

Pharmetika

Integrate with the Pharmetika pharmacy management system for Rx fulfillment and dispensing.

Pharmacy Hub

Link to the Pharmacy Hub system to streamline fulfillment of compound medications.

Precision Pharmacy

Integrate with the Precision Pharmacy API for compound and specialty medication fulfillment.

SendGrid

Enables sending transactional and marketing emails via SendGrid.

ShipStation

Integrate with ShipStation to manage and streamline shipping.

Stripe

Process payments, invoicing, and manage subscriptions via Stripe.

Twilio

Send SMS messages using Twilio.

Webhook

Support custom integrations using Webhooks, such as Shopify, Slack, or any 3rd-party platform.

Zoom

Enables scheduling and conducting video calls via Zoom.

Related Articles

Now that you understand what Adapters are and how they can be set, you may want to explore the following pages.