BotPenguin lets you create and deploy chatbots for website, WhatsApp, Facebook and Telegram with no coding.
Creates a Step Function State Machine to publish a message to an SNS topic at a specific timestamp. The SNS topic delivers the message to this Pipedream source, and the source emits it as a new event.
Emit new event when a user interacts with the bot and a new contact or lead is created.
Creates an SNS topic in your AWS account. Messages published to this topic are emitted from the Pipedream source.
Emit new event for each new incoming message from a user.
The source subscribes to all emails delivered to a specific domain configured in AWS SES. When an email is sent to any address at the domain, this event source emits that email as a formatted event. These events can trigger a Pipedream workflow and can be consumed via SSE or REST API.
Adds a new WhatsApp contact to your BotPenguin account. See the documentation
Updates custom attributes for a specific contact in your BotPenguin account.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botpenguin: {
type: "app",
app: "botpenguin",
}
},
async run({steps, $}) {
const data = [
{
"profile": {
"userDetails": {
"name": "BPTest",
"contact": {
"email": "test@example.com",
"phone": {
"number": "90123456789",
"prefix": "91"
}
},
"tags": [],
"attributes": [],
"userProvidedName": "BPTest"
}
}
}
]
return await axios($, {
method: "post",
url: `https://api.v7.botpenguin.com/inbox/users/import`,
headers: {
Authorization: `Bearer ${this.botpenguin.$auth.access_token}`,
"botid": `${this.botpenguin.$auth.bot_id}`,
"authtype": `Key`,
},
data,
})
},
})
The AWS API unlocks endless possibilities for automation with Pipedream. With this powerful combo, you can manage your AWS services and resources, automate deployment workflows, process data, and react to events across your AWS infrastructure. Pipedream offers a serverless platform for creating workflows triggered by various events that can execute AWS SDK functions, making it an efficient tool to integrate, automate, and orchestrate tasks across AWS services and other apps.
import AWS from 'aws-sdk'
export default defineComponent({
props: {
aws: {
type: "app",
app: "aws",
}
},
async run({steps, $}) {
const { accessKeyId, secretAccessKey } = this.aws.$auth
/* Now, pass the accessKeyId and secretAccessKey to the constructor for your desired service. For example:
const dynamodb = new AWS.DynamoDB({
accessKeyId,
secretAccessKey,
region: 'us-east-1',
})
*/
},
})