with Eagle Doc and Easy-Peasy.AI?
Generates AI transcription for a given audio URL. See the documentation
Generates an AI image based on the given prompt. See the documentation
Generates text outputs for the templates. See the documentation
The Eagle Doc API allows users to automate document management processes, including generation, storage, and retrieval of documents. This API can be especially useful in environments where documentation needs to be dynamically created and linked with various data points from different sources. On Pipedream, leveraging Eagle Doc with other integrated apps can streamline workflows that require heavy documentation handling, such as in legal, finance, or HR sectors.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
eagle_doc: {
type: "app",
app: "eagle_doc",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.eagle_doc.$auth.url}/api/v2/receipt/processing/quota`,
headers: {
"api-key": `${this.eagle_doc.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
easy_peasy_ai: {
type: "app",
app: "easy_peasy_ai",
}
},
async run({steps, $}) {
const data = {
"audio_type": `podcast`,
"language": `English`,
"name": `Interview with John Doe`,
"detect_speakers": `true`,
"enhanced_quality": `true`,
"url": `https://example.com/audiofile.mp3`,
}
return await axios($, {
method: "post",
url: `https://easy-peasy.ai/api/transcriptions`,
headers: {
"accept": `application/json`,
"content-type": `application/json`,
"x-api-key": `${this.easy_peasy_ai.$auth.api_key}`,
},
data,
})
},
})