with Chatforma and InsertChat?
Pushes a new message into an existing chat session in InsertChat. See the documentation
Chatforma is an API that opens up a world of possibilities in chatbot creation and management, allowing businesses to automate interactions with customers across various platforms. With Chatforma, you can design, deploy, and track chatbots that handle customer service, feedback collection, and more, streamlining your communication processes and providing valuable analytical insights. Leveraging Pipedream’s integration capabilities, you can efficiently tie Chatforma into a multitude of systems and services, creating custom workflows that enhance your chatbot's utility and extend its reach.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chatforma: {
type: "app",
app: "chatforma",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.pro.chatforma.com/public/v1/auth-test`,
params: {
api_key: `${this.chatforma.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
insertchat: {
type: "app",
app: "insertchat",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.insertchat.com/v1/${this.insertchat.$auth.app_uid}/accounts`,
headers: {
Authorization: `Bearer ${this.insertchat.$auth.oauth_access_token}`,
},
})
},
})