with Reply.io and Google Dialogflow?
Emit new event when a new contact is added. See the docs here
Emit new event when a person opts out. See the docs here
Emit new event when a person opens your email. See the docs here
Emit new event when a prospect replies to an email. See the docs here
Emit new event when a new email is sent (first step or follow-up). See the docs here
Create a new contact or update if they already exist. See the docs here
Create a new contact, or update if they already exist, and push contact to the selected campaign. See the docs here
Batch create entities, See REST docs and client API docs
Mark a contact as finished in all campaigns by their email address. See the docs here
The Reply.io API on Pipedream allows users to automate their sales engagement and follow-up processes efficiently. Leveraging this API, you can streamline communication by triggering personalized emails, managing contacts, and analyzing the performance of sales campaigns. Using Pipedream's serverless platform, you can create workflows that perform actions in Reply.io in response to events from other apps, schedule tasks, and process data in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
reply_io: {
type: "app",
app: "reply_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.reply.io/v1/people`,
headers: {
"X-Api-Key": `${this.reply_io.$auth.api_key}`,
},
})
},
})
Google Dialogflow API empowers you to create conversational interfaces for websites, apps, and messaging platforms. Think chatbots that can engage in human-like dialogue, provide customer support, guide through sales processes, or control smart home devices with voice commands. With Pipedream's integration capabilities, you can create automated workflows that trigger actions in other apps based on Dialogflow's processed input, enabling seamless interaction across a plethora of services.
module.exports = defineComponent({
props: {
google_dialogflow: {
type: "app",
app: "google_dialogflow",
}
},
async run({steps, $}) {
// Example code from the Dialogflow Node.js library:
// https://github.com/googleapis/nodejs-dialogflow
const dialogflow = require('dialogflow')
const uuid = require('uuid')
// A unique identifier for the given session
const sessionId = uuid.v4()
const key = JSON.parse(this.google_dialogflow.$auth.key_json)
// Creates a session client from a Google service account key.
const sessionClient = new dialogflow.SessionsClient({
projectId: key.project_id,
credentials: {
client_email: key.client_email,
private_key: key.private_key,
}
})
const sessionPath = sessionClient.sessionPath(key.project_id, sessionId)
// The text query request.
const request = {
session: sessionPath,
queryInput: {
text: {
// The query to send to the dialogflow agent
text: 'hello',
// The language used by the client (en-US)
languageCode: 'en-US',
},
},
}
// Send request and log result
const responses = await sessionClient.detectIntent(request)
console.log('Detected intent')
const result = responses[0].queryResult
console.log(`Query: ${result.queryText}`)
console.log(`Response: ${result.fulfillmentText}`)
if (result.intent) {
console.log(`Intent: ${result.intent.displayName}`)
} else {
console.log(`No intent matched.`)
}
},
})