Intercom is the only solution that combines an AI chatbot, help desk, and proactive support—so you can keep costs low, support teams happy, and customers satisfied.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Send a message from a user into your Intercom app. See the docs here
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
intercom: {
type: "app",
app: "intercom",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.intercom.io/admins`,
headers: {
Authorization: `Bearer ${this.intercom.$auth.oauth_access_token}`,
"Accept": `application/json`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})