with Plain and Seven?
The Plain API provides functionality for automating customer support tasks, such as managing conversations, customers, and team inboxes. Within Pipedream, you can leverage these features to create custom workflows that respond to events from your app or external services, triggering actions in Plain. By integrating the Plain API with Pipedream, you can enhance customer support efficiency, streamline communication, and keep customer data synchronized across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
plain: {
type: "app",
app: "plain",
}
},
async run({steps, $}) {
const data = {
"query": `query Workspace {
workspace(workspaceId: "${this.plain.$auth.workspace_id}") {
id
publicName
}
}`,
}
return await axios($, {
method: "post",
url: `https://core-api.uk.plain.com/graphql/v1`,
headers: {
Authorization: `Bearer ${this.plain.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
The Seven API offers tools to augment business communications by providing powerful messaging capabilities. With Pipedream, you can harness these features to create custom, automated workflows that trigger on events, process data, and interact with other apps. Imagine sending personalized SMS campaigns, automating customer support responses, or syncing communication data with CRM platforms. Pipedream's serverless platform allows you to build these integrations with ease, tapping into a wide range of pre-built connectors or using HTTP requests to interact with the Seven API directly.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
seven: {
type: "app",
app: "seven",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://oauth.sms77.io/me`,
headers: {
Authorization: `Bearer ${this.seven.$auth.oauth_access_token}`,
},
})
},
})