with Instabot and Chat Data?
Create a chatbot with the specified properties. See the documentation
Get status of the Chatbot with the specified ID. See the documentation
The Instabot API offers the ability to programmatically interact with the Instabot platform, enabling the automation of chatbot conversations and data. By leveraging this API with Pipedream, you can create powerful workflows to enhance user engagement, collect insightful data, and streamline communications. It supports various operations like sending messages, managing users, and retrieving conversation logs, which can be harnessed for targeted marketing, customer support automation, and real-time analytics.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
instabot_chatbot_platform: {
type: "app",
app: "instabot_chatbot_platform",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.instabot.io/v1/users`,
headers: {
"X-Instabot-Api-Key": `${this.instabot_chatbot_platform.$auth.api_key}`,
"Authorization": `X-Instabot-Master-Api-Key ${this.instabot_chatbot_platform.$auth.master_api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chat_data: {
type: "app",
app: "chat_data",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.chat-data.com/api/v2/current-plan`,
headers: {
Authorization: `Bearer ${this.chat_data.$auth.api_key}`,
},
})
},
})