with LoyJoy and ServiceNow?
The LoyJoy API allows you to engage with customers through conversational marketing. You can orchestrate chats, manage users, and track customer interactions and data in real-time. With Pipedream, you can harness this API to create automated workflows that respond to customer inputs, update CRM records, send personalized notifications, and more, all using event-driven serverless architecture.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
loyjoy: {
type: "app",
app: "loyjoy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app-stable.loyjoy.com/api/process-definition`,
headers: {
Authorization: `Bearer ${this.loyjoy.$auth.access_token}`,
"Content-Type": `application/json`,
},
})
},
})
The ServiceNow API lets developers access and manipulate records, manage workflows, and integrate with other services on its IT service management platform. These capabilities support automating tasks, syncing data across platforms, and boosting operational efficiencies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
servicenow: {
type: "app",
app: "servicenow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.servicenow.$auth.instance_name}.service-now.com/api/now/table/incident`,
headers: {
Authorization: `Bearer ${this.servicenow.$auth.oauth_access_token}`,
},
})
},
})