← HelpCrunch + Notion integrations

Create Comment with Notion API on Chat Status Updated from HelpCrunch API

Pipedream makes it easy to connect APIs for Notion, HelpCrunch and 2,500+ other apps remarkably fast.

Trigger workflow on
Chat Status Updated from the HelpCrunch API
Next, do this
Create Comment with the Notion 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 HelpCrunch trigger and Notion 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 Chat Status Updated trigger
    1. Connect your HelpCrunch account
    2. Configure timer
  3. Configure the Create Comment action
    1. Connect your Notion account
    2. Configure infoLabel
    3. Optional- Select a Page ID
    4. Optional- Configure Discussion ID
    5. Configure Comment
  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 the status of a chat is updated. [See the documentation](https://docs.helpcrunch.com/en/rest-api-v1/search-chats-v1)
Version:0.0.1
Key:helpcrunch-chat-status-updated

HelpCrunch Overview

The HelpCrunch API provides a platform for customer communication, enabling automation of messaging, data synchronization, and customer support activities. It allows you to create and update users, send messages, and manage conversations directly through API calls. Integrating HelpCrunch with Pipedream lets you connect these capabilities to hundreds of other apps, streamlining workflows that can respond dynamically to customer interactions, sync data across platforms, or trigger communications based on specific events.

Trigger Code

import base from "../common/base.mjs";

export default {
  ...base,
  key: "helpcrunch-chat-status-updated",
  name: "Chat Status Updated",
  description: "Emit new event when the status of a chat is updated. [See the documentation](https://docs.helpcrunch.com/en/rest-api-v1/search-chats-v1)",
  version: "0.0.1",
  type: "source",
  dedupe: "unique",
  hooks: {
    async deploy() {
      const resourceFn = this.getResourceFn();
      const chats = await this.getResources(resourceFn);
      const previousStatuses = {};
      for (const chat of chats) {
        previousStatuses[chat.id] = chat.status;
      }
      this._setLast(previousStatuses);
    },
  },
  methods: {
    ...base.methods,
    getResourceFn() {
      return this.helpcrunch.searchChats;
    },
    generateMeta(chat) {
      const ts = Date.now();
      return {
        id: `${chat.id}${ts}`,
        summary: `Status Updated for Chat with ID ${chat.id}`,
        ts,
      };
    },
  },
  async run() {
    const previousStatuses = this._getLast();
    const currentStatuses = {};
    const resourceFn = this.getResourceFn();
    const chats = await this.getResources(resourceFn);
    for (const chat of chats) {
      currentStatuses[chat.id] = chat.status;
      if (previousStatuses[chat.id] !== chat.status) {
        const meta = this.generateMeta(chat);
        this.$emit(chat, meta);
      }
    }
    this._setLast(currentStatuses);
  },
};

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
HelpCrunch helpcrunchappThis component uses the HelpCrunch app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer

Trigger Authentication

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

About HelpCrunch

One-stop platform to build strong customer relationships

Action

Description:Create a comment in a page or existing discussion thread. [See the documentation](https://developers.notion.com/reference/create-a-comment)
Version:0.0.4
Key:notion-create-comment

Notion Overview

Notion's API allows for the creation, reading, updating, and deleting of pages, databases, and their contents within Notion. Using Pipedream's platform, you can build workflows that connect Notion with various other services to automate tasks such as content management, task tracking, and data synchronization. With Pipedream's serverless execution, you can trigger these workflows on a schedule, or by external events from other services, without managing any infrastructure.

Action Code

import notion from "../../notion.app.mjs";
import { ConfigurationError } from "@pipedream/platform";

export default {
  key: "notion-create-comment",
  name: "Create Comment",
  description: "Create a comment in a page or existing discussion thread. [See the documentation](https://developers.notion.com/reference/create-a-comment)",
  version: "0.0.4",
  type: "action",
  props: {
    notion,
    infoLabel: {
      type: "alert",
      alertType: "info",
      content: "Provide either a Page ID or a Discussion ID to create the comment under.",
    },
    pageId: {
      propDefinition: [
        notion,
        "pageId",
      ],
      optional: true,
    },
    discussionId: {
      type: "string",
      label: "Discussion ID",
      description: "The ID of a discussion thread. [See the documentation](https://developers.notion.com/docs/working-with-comments#retrieving-a-discussion-id) for more information",
      optional: true,
    },
    comment: {
      type: "string",
      label: "Comment",
      description: "The comment text",
    },
  },
  async run({ $ }) {
    if ((this.pageId && this.discussionId) || (!this.pageId && !this.discussionId)) {
      throw new ConfigurationError("Provide either a page ID or a discussion thread ID to create the comment under");
    }

    const response = await this.notion._getNotionClient().comments.create({
      parent: this.pageId && {
        page_id: this.pageId,
      },
      discussion_id: this.discussionId,
      rich_text: [
        {
          text: {
            content: this.comment,
          },
        },
      ],
    });
    $.export("$summary", `Successfully created comment (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
NotionnotionappThis component uses the Notion app.
Page IDpageIdstringSelect a value from the drop down menu.
Discussion IDdiscussionIdstring

The ID of a discussion thread. See the documentation for more information

Commentcommentstring

The comment text

Action Authentication

Notion uses OAuth authentication. When you connect your Notion account, Pipedream will open a popup window where you can sign into Notion and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Notion API.

Pipedream requests the following authorization scopes when you connect your account:

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

More Ways to Connect Notion + HelpCrunch

Find or Create Customer with HelpCrunch API on New Database from Notion API
Notion + HelpCrunch
 
Try it
Find or Create Customer with HelpCrunch API on Page or Subpage Updated from Notion API
Notion + HelpCrunch
 
Try it
Find or Create Customer with HelpCrunch API on Updated Page ID from Notion API
Notion + HelpCrunch
 
Try it
Find or Create Customer with HelpCrunch API on New Page in Database from Notion API
Notion + HelpCrunch
 
Try it
Find or Create Customer with HelpCrunch API on Updated Page in Database from Notion API
Notion + HelpCrunch
 
Try it
Chat Status Updated from the HelpCrunch API

Emit new event when the status of a chat is updated. See the documentation

 
Try it
New Chat from the HelpCrunch API

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

 
Try it
New Customer from the HelpCrunch API

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

 
Try it
New Comment Created from the Notion API

Emit new event when a new comment is created in a page or block. See the documentation

 
Try it
New Database Created from the Notion API

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

 
Try it
Create Customer with the HelpCrunch API

Creates a new customer record within the Helpcrunch platform. See the documentation

 
Try it
Find or Create Customer with the HelpCrunch API

Search for an existing customer within Helpcrunch platform, if no match is found it creates a new customer record. See the documentation

 
Try it
Append Block to Parent with the Notion API

Append new and/or existing blocks to the specified parent. See the documentation

 
Try it
Create Comment with the Notion API

Create a comment in a page or existing discussion thread. See the documentation

 
Try it
Create Page with the Notion API

Create a page from a parent page. See the documentation

 
Try it

Explore Other Apps

1
-
0
of
2,500+
apps by most popular