with Predis.ai and Landbot?
Emit new events when a new message is sent in a channel. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
predis_ai: {
type: "app",
app: "predis_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://brain.predis.ai/predis_api/v1/get_posts/`,
headers: {
"authorization": `${this.predis_ai.$auth.api_key}`,
},
params: {
brand_id: `${this.predis_ai.$auth.brand_id}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
landbot: {
type: "app",
app: "landbot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.landbot.io/v1/agents/`,
headers: {
"Content-Type": `application/json`,
"Authorization": `Token ${this.landbot.$auth.api_token}`,
},
})
},
})