with Plain and Klenty?
Adds a new prospect to a list in Klenty. See the documentation
Starts a cadence in Klenty for a specific prospect. See the documentation
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 Klenty API enables automation of your sales engagement by integrating with Pipedream. With this API, you can sync leads, automate email campaigns, and manage tasks without manual intervention, creating a seamless sales workflow. By leveraging Pipedream's serverless execution model, you can set up custom triggers, actions, and data transformations between Klenty and various other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
klenty: {
type: "app",
app: "klenty",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.klenty.com/apis/v1/user/${this.klenty.$auth.username}/lists`,
headers: {
"x-API-key": `${this.klenty.$auth.api_key}`,
},
params: {
listName: `YOUR_LIST_NAME`,
},
})
},
})