with Parseur and Anthropic (Claude)?
Emit new event when a new document is not processed. It is triggered when a document fails to process with status New Template Needed
. See the docs
Emit new event when a new document is processed. It is useful for endpoints that don't support deep JSON structures as it will flatten your table fields. See the docs
Emit new event when a new document is processed with list items. The payload format is the same as when viewing the document and clicking on view as JSON
. See the docs
Parseur is a powerful email parsing tool that automates the extraction of data from emails and documents. With its API, you can unlock the data trapped in emails and documents and transform it into structured data. On Pipedream, you can use Parseur to trigger workflows from parsed email data, connecting it to hundreds of other services for endless automation possibilities. This can streamline business processes like lead management, invoice processing, and data entry by automating the extraction and flow of critical information.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
parseur: {
type: "app",
app: "parseur",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.parseur.com/parser`,
headers: {
"Authorization": `Token ${this.parseur.$auth.api_token}`,
},
})
},
})
The Anthropic (Claude) API offers a conversational AI that can be leveraged for a variety of applications, ranging from answering questions to generating content or providing customer support. In Pipedream, you can create powerful workflows that utilize the capabilities of Claude to automate responses, analyze text, or enhance data with AI-generated insights. Pipedream's serverless platform simplifies integrating Claude into your processes with other apps and services for seamless automation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
anthropic: {
type: "app",
app: "anthropic",
}
},
async run({steps, $}) {
const data = {
"model": "claude-3-haiku-20240307",
"max_tokens": 300,
"messages": [
{"role": "user", "content": "Write me a haiku about Pipedream workflows."}
]
}
return await axios($, {
method: "post",
url: `https://api.anthropic.com/v1/messages`,
headers: {
"x-api-key": `${this.anthropic.$auth.api_key}`,
"anthropic-version": `2023-06-01`,
},
data,
})
},
})