Orimon helps you close deals 24*7 with ChatGPT like Sales Chatbots.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
orimon: {
type: "app",
app: "orimon",
}
},
async run({steps, $}) {
const data = {
"type": "message",
"info": {
"psid": "541013_3eea0304-5e9d-437e-82a3-9e77af6f15ea",
"sender": "user",
"tenantId": "${this.orimon.$auth.tenant_id}",
"platformName": "web"
},
"message": {
"id": "${this.orimon.$auth.tenant_id}",
"type": "text",
"payload" : {
"text": "What is Pipedream?"
}
}
}
return await axios($, {
method: "post",
url: `https://channel-connector.orimon.ai/orimon/v1/conversation/api/message`,
headers: {
"Authorization": `apiKey ${this.orimon.$auth.api_key}`,
},
data,
})
},
})
The Klaviyo API grants you the power to automate and personalize your email marketing efforts. With it, you can manage lists, profiles, and campaigns, track event-driven communications, and analyze the results. By leveraging this API on Pipedream, you can create intricate, automated workflows that respond in real-time to your users' behavior, sync data across multiple platforms, and tailor your marketing strategies to improve engagement and conversion rates.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
klaviyo: {
type: "app",
app: "klaviyo",
}
},
async run({steps, $}) {
return await axios($, {
url: ` https://a.klaviyo.com/api/accounts/`,
headers: {
"Authorization": `Klaviyo-API-Key ${this.klaviyo.$auth.api_key}`,
"revision": `2023-12-15`,
},
})
},
})