with Intercom and OpenPhone?
Retrieve the list of phone numbers and users associated with your OpenPhone workspace. See the documentation
Adds a specific tag to a contact in Intercom. See the documentation
Send a text message from your OpenPhone number to a recipient. See the documentation
The Intercom API offers rich capabilities for enhancing customer communication and support workflows. By leveraging this API on Pipedream, you can automate tasks, sync customer data across platforms, and create personalized interactions. Whether you are managing user segments, sending targeted messages, or updating customer profiles, the Intercom API's robust set of endpoints allows for intricate and useful automations within your business processes.
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/me`,
headers: {
Authorization: `Bearer ${this.intercom.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openphone: {
type: "app",
app: "openphone",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.openphone.com/v1/phone-numbers`,
headers: {
"Authorization": `${this.openphone.$auth.api_key}`,
},
})
},
})