with Docparser and Data Stores?
Emit new event every time a document is processed and parsed data is available. See the documentation
Fetches a document from a provided URL and imports it to Docparser for parsing. See the documentation
Add or update a single record in your Pipedream Data Store
Add or update multiple records to your Pipedream Data Store
Uploads a document to docparser that initiates parsing immediately after reception. See the documentation
Append to a record in your data store Pipedream Data Store. If the record does not exist, a new record will be created in an array format.
Docparser is a tool for extracting data from documents, such as PDFs, Word, and images. With the Docparser API, you can automate the process of capturing data without manual entry, transforming documents into actionable information. It shines in scenarios where structured information needs to be pulled from files that typically require manual data entry, such as invoices, forms, and reports.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
docparser: {
type: "app",
app: "docparser",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.docparser.com/v1/ping`,
auth: {
username: `${this.docparser.$auth.api_key}`,
password: ``,
},
})
},
})
Data Stores are a key-value store that allow you to persist state and share data across workflows. You can perform CRUD operations, enabling dynamic data management within your serverless architecture. Use it to save results from API calls, user inputs, or interim data; then read, update, or enrich this data in subsequent steps or workflows. Data Stores simplify stateful logic and cross-workflow communication, making them ideal for tracking process statuses, aggregating metrics, or serving as a simple configuration store.
export default defineComponent({
props: {
myDataStore: {
type: "data_store",
},
},
async run({ steps, $ }) {
await this.myDataStore.set("key_here","Any serializable JSON as the value")
return await this.myDataStore.get("key_here")
},
})