← RSS + Customer.io integrations

Create or Update Customer with Customer.io API on Random item from multiple RSS feeds from RSS API

Pipedream makes it easy to connect APIs for Customer.io, RSS and 1000+ other apps remarkably fast.

Trigger workflow on
Random item from multiple RSS feeds from the RSS API
Next, do this
Create or Update Customer with the Customer.io API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a RSS trigger and Customer.io 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 Random item from multiple RSS feeds trigger
    1. Connect your RSS account
    2. Configure timer
    3. Configure Feed URLs
  3. Configure the Create or Update Customer action
    1. Connect your Customer.io account
    2. Configure Customer ID
    3. Configure Email
    4. Optional- Configure Created At
    5. Optional- Configure Attributes
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source 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 a random item from multiple RSS feeds
Version:0.0.3
Key:rss-random-item-in-multiple-feeds

Trigger Code

import rss from "../../app/rss.app.mjs";
import { defineSource } from "@pipedream/types";
import rssCommon from "../common/common.mjs";
export default defineSource({
    ...rssCommon,
    key: "rss-random-item-in-multiple-feeds",
    name: "Random item from multiple RSS feeds",
    type: "source",
    description: "Emit a random item from multiple RSS feeds",
    version: "0.0.3",
    props: {
        ...rssCommon.props,
        urls: {
            propDefinition: [
                rss,
                "urls",
            ],
        },
    },
    dedupe: "unique",
    hooks: {
        async activate() {
            // Try to parse the feed one time to confirm we can fetch and parse.
            // The code will throw any errors to the user.
            for (const url of this.urls) {
                await this.rss.fetchAndParseFeed(url);
            }
        },
    },
    async run() {
        const items = [];
        for (const url of this.urls) {
            const feedItems = await this.rss.fetchAndParseFeed(url);
            items.push(...feedItems);
        }
        const item = items[Math.floor(Math.random() * items.length)];
        const meta = this.generateMeta(item);
        this.$emit(item, meta);
    },
});

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
RSSrssappThis component uses the RSS app.
timer$.interface.timer

How often you want to poll the feed for new items

Feed URLsurlsstring[]

Enter either one or multiple URLs from any public RSS feed

Trigger Authentication

The RSS API does not require authentication.

About RSS

Real Simple Syndication

Action

Description:Creates or update a customer. [See the docs here](https://customer.io/docs/api/#apitrackcustomerscustomers_update)
Version:0.2.0
Key:customer_io-create-or-update-customer

Customer.io Overview

With the Customer.io API, you can build a variety of applications and
integrations to help you better engage with your customers. Some examples of
what you can build include:

  • A customer facing application that displays customer information and account
    activity
  • An integration with your CRM system to keep customer data up-to-date
  • A system to segment your customers and send them targeted messages
  • An application to trigger events based on customer behavior
  • A tool to track customer churn and identify at-risk customers

Action Code

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

export default {
  key: "customer_io-create-or-update-customer",
  name: "Create or Update Customer",
  description: "Creates or update a customer. [See the docs here](https://customer.io/docs/api/#apitrackcustomerscustomers_update)",
  version: "0.2.0",
  type: "action",
  props: {
    app,
    customerId: {
      propDefinition: [
        app,
        "customerId",
      ],
    },
    email: {
      label: "Email",
      type: "string",
      description: "The unique identifier for the customer.",
    },
    created_at: {
      type: "string",
      label: "Created At",
      description: "The UNIX timestamp from when the user was created in your system.",
      optional: true,
    },
    attributes: {
      type: "object",
      label: "Attributes",
      description: "Custom attributes to define the customer.",
      optional: true,
    },
  },
  async run({ $ }) {
    await this.app.createOrUpdateCustomer(this.customerId, {
      email: this.email,
      created_at: this.created_at,
      ...this.attributes,
    }, $);
    $.export("$summary", "Successfully created/updated customer");
  },
};

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
Customer.ioappappThis component uses the Customer.io app.
Customer IDcustomerIdstring

The unique identifier for the customer.

Emailemailstring

The unique identifier for the customer.

Created Atcreated_atstring

The UNIX timestamp from when the user was created in your system.

Attributesattributesobject

Custom attributes to define the customer.

Action Authentication

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

To connect your Customer.io account to Pipedream, sign in to your Customer.io account and navigate to Data & Integrations > Integrations > API, then copy your site_id and api_key fields and paste them below.

About Customer.io

Send Automated Messages. Deliver Results.

More Ways to Connect Customer.io + RSS

Create or Update Customer with Customer.io API on New Item in Feed from RSS API
RSS + Customer.io
 
Try it
Send Event To Customer io with Customer.io API on New Item in Feed from RSS API
RSS + Customer.io
 
Try it
POST /customers/{customer_id}/events with Customer.io API on New Item in Feed from RSS API
RSS + Customer.io
 
Try it
Create or Update Customer with Customer.io API on New item from multiple RSS feeds from RSS API
RSS + Customer.io
 
Try it
Send Event To Customer io with Customer.io API on New item from multiple RSS feeds from RSS API
RSS + Customer.io
 
Try it
New Item in Feed from the RSS API

Emit new items from an RSS feed

 
Try it
New Item From Multiple RSS Feeds from the RSS API

Emit new items from multiple RSS feeds

 
Try it
Random item from multiple RSS feeds from the RSS API

Emit a random item from multiple RSS feeds

 
Try it
Merge RSS Feeds with the RSS API

Retrieve multiple RSS feeds and return a merged array of items sorted by date See docs

 
Try it
Add Customers to Segment with the Customer.io API

Add people to a manual segment by ID. You are limited to 1000 customer IDs per request. See the docs here

 
Try it
Create or Update Customer with the Customer.io API

Creates or update a customer. See the docs here

 
Try it
Send Event To with the Customer.io API

Sends an event to Customer.io. See the docs here

 
Try it
Send Event To Customer io with the Customer.io API

Sends, tracks a customer event to Customer io. See the docs here

 
Try it