Build Custom Chatbots and GPTs for Your Website, Social Media, Texting Messaging, Phone Calls, & More!
The Chatbot Builder API allows you to create and manage customized chatbots that can interact with users in real-time. Within Pipedream's serverless platform, this API can be harnessed to build powerful workflows that react to messages, automate responses, and integrate with a plethora of other services. With Pipedream, you can set up event-driven processes, making it easy to manage chatbot activities, analyze conversations, and trigger actions in other apps based on chatbot interactions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chatbot_builder: {
type: "app",
app: "chatbot_builder",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.chatgptbuilder.io/api/accounts/me`,
headers: {
"X-ACCESS-TOKEN": `${this.chatbot_builder.$auth.api_access_token}`,
"Accept": `application/json`,
},
})
},
})
The MongoDB API provides powerful capabilities to interact with a MongoDB database, allowing you to perform CRUD (Create, Read, Update, Delete) operations, manage databases, and execute sophisticated queries. With Pipedream, you can harness these abilities to automate tasks, sync data across various apps, and react to events in real-time. It’s a combo that’s particularly potent for managing data workflows, syncing application states, or triggering actions based on changes to your data.
import mongodb from 'mongodb'
export default defineComponent({
props: {
mongodb: {
type: "app",
app: "mongodb",
},
collection: {
type: "string"
},
filter: {
type: "object"
}
},
async run({steps, $}) {
const MongoClient = mongodb.MongoClient
const {
database,
hostname,
username,
password,
} = this.mongodb.$auth
const url = `mongodb+srv://${username}:${password}@${hostname}/test?retryWrites=true&w=majority`
const client = await MongoClient.connect(url, {
useNewUrlParser: true,
useUnifiedTopology: true
})
const db = client.db(database)
const results = await db.collection(this.collection).find(this.filter).toArray();
$.export('results', results);
await client.close()
},
})