Parseur is the most powerful and user-friendly mail parser. A data extraction tool to automatically extract text from your emails, pdfs, and other documents.
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.
Create a new document in a collection of your choice. See the docs here
Execute an aggregation pipeline on a MongoDB collection. See the documentation
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 MongoDB API provides powerful capabilities to interact with a MongoDB database, allowing you to perform CRUD (Create, Read, Update, Delete) operations, manage databases, and execute sophisticated queries. With Pipedream, you can harness these abilities to automate tasks, sync data across various apps, and react to events in real-time. It’s a combo that’s particularly potent for managing data workflows, syncing application states, or triggering actions based on changes to your data.
import mongodb from 'mongodb'
export default defineComponent({
props: {
mongodb: {
type: "app",
app: "mongodb",
},
collection: {
type: "string"
},
filter: {
type: "object"
}
},
async run({steps, $}) {
const MongoClient = mongodb.MongoClient
const {
database,
hostname,
username,
password,
} = this.mongodb.$auth
const url = `mongodb+srv://${username}:${password}@${hostname}/test?retryWrites=true&w=majority`
const client = await MongoClient.connect(url, {
useNewUrlParser: true,
useUnifiedTopology: true
})
const db = client.db(database)
const results = await db.collection(this.collection).find(this.filter).toArray();
$.export('results', results);
await client.close()
},
})