with Alphamoon and Bash?
Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.
The Alphamoon API taps into advanced AI-driven text processing, offering services like document understanding, information extraction, and automated data entry. With this API, you can transform unstructured text into actionable data within your Pipedream workflows. It's a potent tool for automating document-heavy processes, making it invaluable for tasks ranging from data analysis to integrating extracted info into databases or other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alphamoon: {
type: "app",
app: "alphamoon",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://workspace.alphamoon.ai/api/v0.3/processes`,
auth: {
username: `${this.alphamoon.$auth.api_key}`,
password: ``,
},
})
},
})
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id
# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS