with Botstar and Formatting?
Emit new event when a new bot is created in BotStar. See the documentation
Emit new event when a new CMS entity is created in a BotStar bot. See the documentation
Emit new event when a new item is created in a CMS entity in BotStar. See the documentation
Botstar API lets you extend the capabilities of Botstar's chatbot platform. It empowers you to programmatically manage and interact with your chatbots, access chat and user data, and integrate with external services. With Pipedream, you can leverage these API functions to automate workflows between Botstar and other apps, trigger actions based on chat events, or synchronize chatbot data with CRM platforms, databases, or marketing tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botstar: {
type: "app",
app: "botstar",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://apis.botstar.com/v1/bots`,
headers: {
Authorization: `Bearer ${this.botstar.$auth.access_token}`,
"content-type": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})