with Botpress and MailBlaze?
Emit new event from bot is created. See the documentation
Adds a participant to a conversation. See the documentation
Adds a new subscriber to your mailing list. See the documentation
Updates information for an existing subscriber in your mailing list. See the documentation
Botpress is a powerful, open-source chatbot platform that enables developers to create intelligent, conversational bots. With its natural language understanding (NLU) capabilities, users can design bots that can interpret human language and respond appropriately. Utilizing the Botpress API on Pipedream allows you to automate interactions, analyze chat data, and integrate with various other services to enhance the functionality of your bots.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botpress: {
type: "app",
app: "botpress",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.botpress.cloud/v1/chat/users`,
headers: {
Authorization: `Bearer ${this.botpress.$auth.identity_token}`,
"Content-Type": `application/json`,
"x-bot-id": `${this.botpress.$auth.bot_id}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailblaze: {
type: "app",
app: "mailblaze",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://control.mailblaze.com/api/general`,
headers: {
"Accept": `application/json`,
"Authorization": `${this.mailblaze.$auth.api_key}`,
},
params: {
fields: `account_name,total_subscribers`,
},
data,
})
},
})