Build AI Tools in minutes without coding.
Emit new event when a response is created for a workflow in TypeflowAI. See the documentation
Emit new event when a response is marked as finished. See the documentation
Emit new event when a response is updated within a workflow. See the documentation
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.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
typeflowai: {
type: "app",
app: "typeflowai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://dashboard.typeflowai.com/api/v1/management/me`,
headers: {
"x-api-key": `${this.typeflowai.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})