Create a custom AI chatbot for your website in minutes
Emit new event when a new webhook event is received.
Sends a bot message to a group channel. See the documentation
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sendbird_ai_chabot: {
type: "app",
app: "sendbird_ai_chabot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api-${this.sendbird_ai_chabot.$auth.application_id}.sendbird.com/v3/bots`,
headers: {
"Accept": `application/json`,
"Api-Token": `${this.sendbird_ai_chabot.$auth.api_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})