with Flash (by Velora AI) and Elevio?
Emit new event any time a new article is created. See the documentation
Emit new event each time new feedback is submitted by a user via the elevio widget. See the documentation
Creates a new article in the Elevio knowledge base. See the documentation
Deletes an existing article from the Elevio knowledge base. See the documentation
Updates an existing article in the Elevio knowledge base. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
flash_by_velora_ai: {
type: "app",
app: "flash_by_velora_ai",
}
},
async run({steps, $}) {
const data = {
"feedback": `Pipedream.com is a great platform for automations! Highly recommended.`,
}
return await axios($, {
method: "post",
url: `https://flash-api.velora.ai/v1/api/add-feedback`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.flash_by_velora_ai.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
elevio: {
type: "app",
app: "elevio",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.elev.io/v1/articles`,
headers: {
Authorization: `Bearer ${this.elevio.$auth.api_token}`,
"x-api-key": `${this.elevio.$auth.api_key}`,
},
})
},
})