with Botbaba and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
Botbaba is a powerful chatbot platform that enables the creation of interactive chatbots for various purposes, from customer support to lead generation. With the Botbaba API, you can extend the capabilities of your bots by integrating them with a myriad of services and automations via Pipedream. This connection allows you to trigger workflows from chatbot interactions, synchronize data with CRMs, send notifications, process orders, and more, effectively turning chat conversations into actionable business insights and tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botbaba: {
type: "app",
app: "botbaba",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.botbaba.io/api/GetBots`,
headers: {
"Accept": `application/json`,
"Authorization": `${this.botbaba.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})