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}`,
},
})
},
})
Emit new events when a new message is sent in a channel. See the documentation
Landbot uses API keys for authentication. When you connect your Landbot account, Pipedream securely stores the keys so you can easily authenticate to Landbot APIs in both code and no-code steps.
You can find your API Token in https://app.landbot.io/gui/settings/account