with HelpCrunch and Puppeteer?
Emit new event when the status of a chat is updated. See the documentation
Emit new event when a new customer is created. See the documentation
Get the HTML of a webpage using Puppeteer. See the documentation for details.
Creates a new customer record within the Helpcrunch platform. See the documentation
Get the title of a webpage using Puppeteer. See the documentation
Search for an existing customer within Helpcrunch platform, if no match is found it creates a new customer record. See the documentation
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.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
helpcrunch: {
type: "app",
app: "helpcrunch",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.helpcrunch.com/v1/organization`,
headers: {
Authorization: `Bearer ${this.helpcrunch.$auth.api_key}`,
},
})
},
})
Puppeteer is a Node.js library which provides a high-level API to control Chrome/Chromium over the DevTools Protocol. Puppeteer runs in headless mode on Chromium on Pipedream.
Using Puppeteer you can perform tasks including:
import { puppeteer } from '@pipedream/browsers';
export default defineComponent({
async run({steps, $}) {
const browser = await puppeteer.browser();
// Interact with the web page programmatically
// See Puppeeter's Page documentation for available methods:
// https://pptr.dev/api/puppeteer.page
const page = await browser.newPage();
await page.goto('https://pipedream.com/');
const title = await page.title();
const content = await page.content();
// The browser needs to be closed, otherwise the step will hang
await browser.close();
return { title, content }
},
})