← Rocket Chat + WooCommerce integrations

Add Order Note with WooCommerce API on New User Created from Rocket Chat API

Pipedream makes it easy to connect APIs for WooCommerce, Rocket Chat and 3,000+ other apps remarkably fast.

Trigger workflow on
New User Created from the Rocket Chat API
Next, do this
Add Order Note with the WooCommerce 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 Rocket Chat trigger and WooCommerce 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 User Created trigger
    1. Connect your Rocket Chat account
    2. Configure timer
  3. Configure the Add Order Note action
    1. Connect your WooCommerce account
    2. Select a Order ID
    3. Configure Note
  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 user is created in RocketChat.
Version:0.0.1
Key:rocket_chat-new-user-created

Rocket Chat Overview

Rocket Chat is a customizable and open-source team chat platform that's a popular alternative for team communication. With its API, you can automate a variety of tasks, such as sending messages, creating channels, managing users, and integrating with various services for a seamless workflow. Leveraging Pipedream's capabilities, you can use Rocket Chat API to create intricate workflows and connect them with other apps to streamline communication, trigger actions based on messages, and synchronize data across platforms.

Trigger Code

import common from "../common/base.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  ...common,
  key: "rocket_chat-new-user-created",
  name: "New User Created",
  description: "Emit new event when a new user is created in RocketChat.",
  version: "0.0.1",
  type: "source",
  dedupe: "unique",
  methods: {
    ...common.methods,
    generateMeta(user) {
      return {
        id: user._id,
        summary: `New User: ${user.name}`,
        ts: Date.now(),
      };
    },
  },
  async run() {
    const users = this.rocketchat.paginate({
      resourceFn: this.rocketchat.listUsers,
      resourceType: "users",
    });

    for await (const user of users) {
      const meta = this.generateMeta(user);
      this.$emit(user, meta);
    }
  },
  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
Rocket ChatrocketchatappThis component uses the Rocket Chat app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer

Trigger Authentication

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

Create a token in Account > Personal Access Tokens and retrieve your Token and User ID. For domain, use "xyz.rocket.chat" for the cloud version or your own root URL such as "mydomain.com" (do not include https://).

About Rocket Chat

The Ultimate Communication Platform

Action

Description:Create a new note for an order. [See the docs](https://woocommerce.github.io/woocommerce-rest-api-docs/#create-an-order-note)
Version:0.0.1
Key:woocommerce-add-order-note

WooCommerce Overview

WooCommerce is a customizable, open-source eCommerce platform built on WordPress. With the WooCommerce API, you can tap into the heart of your eCommerce store to read, create, update, and delete products, orders, and customers. On Pipedream, you can harness this API to automate routine tasks, sync data across platforms, and enhance customer experiences. By connecting WooCommerce to a wide array of apps and services, you can streamline operations, trigger personalized marketing, and analyze your sales data with greater ease.

Action Code

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

export default {
  key: "woocommerce-add-order-note",
  name: "Add Order Note",
  description: "Create a new note for an order. [See the docs](https://woocommerce.github.io/woocommerce-rest-api-docs/#create-an-order-note)",
  version: "0.0.1",
  annotations: {
    destructiveHint: false,
    openWorldHint: true,
    readOnlyHint: false,
  },
  type: "action",
  props: {
    app,
    orderId: {
      propDefinition: [
        app,
        "orderId",
      ],
    },
    note: {
      type: "string",
      label: "Note",
      description: "Order note content",
    },
  },
  async run({ $ }) {
    const {
      app,
      orderId,
      note,
    } = this;

    const response = await app.createOrderNote({
      $,
      orderId,
      data: {
        note,
      },
    });

    $.export("$summary", `Successfully created order note with ID \`${response.id}\``);

    return response;
  },
};

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
WooCommerceappappThis component uses the WooCommerce app.
Order IDorderIdintegerSelect a value from the drop down menu.
Notenotestring

Order note content

Action Authentication

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

About WooCommerce

WooCommerce is the open-source ecommerce platform for WordPress.

More Ways to Connect WooCommerce + Rocket Chat

Create Channel with Rocket Chat API on New Coupon Event (Instant) from WooCommerce API
WooCommerce + Rocket Chat
 
Try it
Create Channel with Rocket Chat API on New Customer Event (Instant) from WooCommerce API
WooCommerce + Rocket Chat
 
Try it
Create Channel with Rocket Chat API on New Product Event (Instant) from WooCommerce API
WooCommerce + Rocket Chat
 
Try it
Send Direct Message with Rocket Chat API on New Coupon Event (Instant) from WooCommerce API
WooCommerce + Rocket Chat
 
Try it
Send Direct Message with Rocket Chat API on New Customer Event (Instant) from WooCommerce API
WooCommerce + Rocket Chat
 
Try it
New Channel Created from the Rocket Chat API

Emit new event when a new channel is created in RocketChat.

 
Try it
New Message in Public Channel from the Rocket Chat API

Emit new event when a new message is posted to a specific public channel.

 
Try it
New User Created from the Rocket Chat API

Emit new event when a new user is created in RocketChat.

 
Try it
New Coupon Event (Instant) from the WooCommerce API

Emit new event each time the specified coupon event(s) occur

 
Try it
New Customer Event (Instant) from the WooCommerce API

Emit new event each time the specified customer event(s) occur

 
Try it
Create Channel with the Rocket Chat API

Creates a new channel. See the documentation

 
Try it
Send Direct Message with the Rocket Chat API

Sends a new direct message to a specific user. See the documentation

 
Try it
Set Status with the Rocket Chat API

Updates the user's status. See the documentation

 
Try it
Add Order Note with the WooCommerce API

Create a new note for an order. See the docs

 
Try it
Create Customer with the WooCommerce API

Creates a new customer. See the docs

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

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.
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.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
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.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
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.
AWS
AWS
Premium
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Premium
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
Klaviyo
Klaviyo
Premium
Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.
Zendesk
Zendesk
Premium
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
Premium
Beta
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.