with Dixa and File Store?
Emit new event when a conversation is created in Dixa. See the documentation
Emit new events when the status of a conversation changes (e.g., open, closed, or abandoned). See the documentation
Emit new event when a customer submits a satisfaction rating for a conversation. See the documentation
Emit new event when a new message is added to a conversation. See the documentation
Emit new event when a tag is added to a conversation. See the documentation
Adds a message to an existing conversation. See the documentation
Creates a new email or contact form-based conversation. See the documentation
Updates custom attributes for a specified user. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dixa: {
type: "app",
app: "dixa",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://dev.dixa.io/v1/agents`,
headers: {
"authorization": `${this.dixa.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
// list all contents of the root File Stores directory in this project
const dirs = $.files.dir();
let files = [];
for await(const dir of dirs) {
// if this is a file, let's open it
if(dir.isFile()) {
files.push(await $.files.open(dir.path))
}
}
return files
},
})