Your cart is currently empty!
How a Company in Barcelona Solved Manual Document Review with Microsoft Foundry Automation
How a Company in Barcelona Solved a Problem Where a Company Spent More Than 40 Hours per Month Reviewing Documents Manually Using Microsoft Foundry
In today’s data-driven world, manual document review is a time-consuming challenge for many companies. 📄 A leading logistics SME based in Barcelona faced this head-on when over 40 hours per month were consumed by manual inspection of contracts and operational documents using Microsoft Foundry. This case study explains how the company transformed its cumbersome process through an end-to-end automation strategy with RestFlow, leveraging Microsoft Foundry and workflow platforms like n8n to reclaim time, reduce errors, and improve operational efficiency.
Throughout this article, you’ll explore a detailed automation architecture, step-by-step workflow implementation, integration choices, and how RestFlow’s Automation-as-a-Service ensured seamless execution and ongoing support. If you’re a startup CTO, automation engineer, or operations lead keen on streamlining document-centric processes, this story will provide actionable insights and best practices to get started.
Feel free to Explore the Automation Template Marketplace to find ready-to-use workflows that might suit your own challenges.
The Problem: Manual Document Review Draining 40+ Hours Monthly
The client is a mid-sized logistics company headquartered in Barcelona, Spain, operating in a highly competitive sector. The company’s operations department managed countless contracts, shipment documents, and compliance forms, which required diligent review and validation before processing.
Historically, these documents were reviewed manually through Microsoft Foundry’s data platform, which while powerful for data ingestion, lacked automation for the document validation workflow. Staff spent upwards of 40 hours each month painstakingly cross-referencing document fields, flagging inconsistencies, and manually recording statuses.
This approach led to several pain points:
- Time waste: Over 40 hours monthly diverted from core business tasks.
- High error potential: Manual entry and subjective review resulted in data inconsistency.
- Delays: Processing bottlenecks slowed contract turnaround, impacting client satisfaction.
- Lack of visibility: No centralized dashboard existed to monitor review progress and outstanding issues.
This inefficient process impacted revenue as errors and delays caused avoidable penalties and strained client relationships. The operations team needed a reliable, scalable automation solution to streamline document review and validation, freeing up valuable human resources.
Our Approach: Mapping Processes and Designing an Automated Workflow
RestFlow began by initiating a thorough discovery phase. Working closely with the client’s operations and IT departments, we mapped the end-to-end document review process to identify critical pain points and integration opportunities.
Key findings included:
- Documents originated via Microsoft Foundry from multiple sources.
- Manual comparisons of document fields with internal records consumed most time.
- Notifications and follow-ups were manual, leading to oversight risks.
- Existing IT infrastructure included Microsoft Foundry, Gmail, Slack, and a lightweight ERP.
Given these insights, we proposed an orchestration workflow leveraging n8n for its open-source flexibility, capability to integrate with Microsoft Foundry APIs, and native connectors to Gmail and Slack. This solution promised easy workflow customization and robust error handling.
The high-level architecture included automated triggers on new document uploads, data extraction and validation workflows, and multi-channel notifications to expedite issue resolution.
By adopting n8n within the RestFlow Automation-as-a-Service framework, the client gained access not only to design and implementation expertise but also professional hosting, monitoring, and long-term maintenance services.
The Solution: Architecture & Workflow
The proposed solution architecture centered around an automated document review pipeline triggered by new document ingestion events from Microsoft Foundry.
- Trigger: n8n webhook listening for document upload notifications pushed from Microsoft Foundry.
- Orchestration: n8n executes the workflow, managing data extraction, validation, decision logic, and notifications.
- External Services: Microsoft Foundry API for document metadata; Gmail for email alerts; Slack for team notifications; Google Sheets as a lightweight reporting database; ERP system API for contract validation.
- Outputs: Real-time Slack alerts for exceptions; automated emails to operations managers; daily Google Sheets reports summarizing review status.
This architecture ensured seamless integration into existing workflows and transparent visibility across teams.
End-to-End Workflow Walkthrough
1. Microsoft Foundry triggers webhook upon document upload.
2. n8n receives document metadata, calls API to pull detailed contents.
3. Extracts key fields such as contract numbers, dates, and counterparties.
4. Validates extracted data against ERP system.
5. Runs business rules to flag inconsistent or missing data.
6. Depending on validation, either marks document as approved or routes for manual review.
7. Sends Slack and Gmail notifications for flagged documents.
8. Logs all outcomes and statuses in Google Sheets for auditing and reporting.
The workflow runs every time new documents arrive, saving hours of manual processing daily.
Step-by-Step Node Breakdown 🛠️
1. Webhook Trigger
This node acts as the entry point, configured to accept HTTP POST requests from Microsoft Foundry’s document ingestion API.
Key fields: webhook URL, headers with authentication tokens.
The webhook receives JSON payloads with document IDs and metadata.
2. Document Details Fetch
Using an HTTP Request node, the workflow calls the Microsoft Foundry API to obtain full document contents.
The node uses dynamic headers including API keys stored securely in n8n credentials.
Response JSON fields are parsed to extract contract fields such as contractNumber, clientName, and effectiveDate.
3. Data Extraction & Transformation
A Function node processes raw data, sanitizes inputs, handles date formatting, and prepares data for validation.
Example: transforming date strings to ISO format using standard JavaScript Date functions within the node.
This transformation ensures consistency across systems.
4. Validation Against ERP System CRM 📊
An HTTP Request node queries the ERP API to find matching records.
Filters: searching by contract number
If a match is found, the workflow compares document data with ERP data via conditional nodes.
Discrepancies (e.g., dates not matching) flag the document for review.
5. Conditional Branching and Notifications 🔔
Conditional nodes split the flow:
– If validated: Status updated to approved.
– If issues found: Slack message sent to operations channel; email notification sent to managers.
Slack message includes dynamic content such as document ID and flag reason.
6. Logging and Reporting
The Google Sheets node appends a new row per processed document with status, timestamp, and validation results.
This provides a comprehensive audit trail accessible to stakeholders.
Error Handling, Robustness & Security
Error Handling and Retries
Each HTTP request node uses built-in retry with exponential backoff to handle transient network errors.
Failures after several retry attempts are routed to a fallback notification node alerting the support team via Slack.
This ensures no undetected failures.
Logging and Observability
All workflow runs are logged with detailed metadata visible in the n8n execution pane.
RestFlow dashboards monitor execution times and failure rates, alerting proactively for anomalies.
Idempotency and Duplicate Prevention
Using unique document IDs as workflow metadata ensures documents are processed once.
If duplicate webhook notifications arrive, the workflow detects and bypasses already-processed documents.
Security and Data Protection
API keys and credentials are stored encrypted within n8n with role-based access controls.
Data transfers use HTTPS with TLS encryption.
Only necessary scopes are granted to API keys (least privilege).
Personal Identifiable Information (PII) is masked in logs and emails to comply with GDPR.
Performance, Scaling & Extensibility
The architecture supports scaling by:
- Using webhooks over polling for near real-time processing and minimal overhead.
- Configuring n8n’s concurrency settings to process multiple documents in parallel without rate limiting APIs.
- Modularizing workflows into subflows for validation or notification to ease maintenance and versioning.
- Adding new datasource connectors or extending notification channels (like Microsoft Teams) can be done with minimal disruption.
- The RestFlow managed hosting platform ensures consistent performance and automated updates.
Comparison Tables
n8n vs Make vs Zapier for Document Review Automation
| Option | Cost | Pros | Cons |
|---|---|---|---|
| n8n | Free Self-Hosted / Paid Cloud | Open source, flexible, strong API integrations, supports custom code, good for complex workflows | Requires self-hosting or paid cloud; learning curve for complex customization |
| Make (Integromat) | Tiered pricing based on operations | Visual scenario builder, wide app support, robust error handling | Cost can increase with volume; less flexible with complex code |
| Zapier | Subscription tiers, limited free plan | Easy to use, strong app ecosystem, quick to set up simple automations | Limited on logic complexity, higher cost at scale |
Webhook vs Polling for Document Triggers
| Method | Latency | Resource Usage | Pros | Cons |
|---|---|---|---|---|
| Webhook | Near real-time | Low | Immediate trigger; efficient; scalable | Requires external service support; more setup |
| Polling | Delayed (interval-based) | Higher (continuous requests) | Simple to implement if no webhook support | Less efficient; risk of missing events; increased load |
Google Sheets vs Database for Document Logging
| Option | Setup Complexity | Query Flexibility | Scalability | Use Case Fit |
|---|---|---|---|---|
| Google Sheets | Low | Basic filtering & sorting; no relations | Limited (performance drops with large datasets) | Small/medium teams; lightweight audit logging |
| Database (e.g., PostgreSQL) | Higher | Advanced queries; joins; transactional updates | High | Large scale, complex analytics, integrations |
Results & Business Impact
Following the automation deployment:
- Time savings: Manual document review hours reduced by over 70%, freeing approximately 28 hours monthly.
- Error reduction: Data inconsistencies dropped by approximately 60% due to automatic validation.[Source: to be added]
- Faster processing: SLA turnaround times improved by 50%, accelerating contract approvals and shipments.
- Enhanced visibility: Real-time Slack alerts and daily reports offered transparent tracking of document status.
Operations staff reported a major decrease in tedious manual tasks, allowing focus on value-adding activities like client engagement and strategic planning.
Explore how you can achieve similar improvements tailored to your workflows by creating your free RestFlow account today.
Pilot Phase & Ongoing Maintenance Disclaimer
As with any process automation, we began with a controlled pilot phase orchestrating limited document batches in parallel with manual processes. This phase lasted several weeks, allowing fine-tuning of validation rules, bug fixes, and performance optimizations.
Post-pilot, RestFlow assumed responsibility for hosted workflow management, including continuous monitoring, hosting stability, scheduled audits, and applying timely updates to respond to evolving client needs.
This structured rollout approach is critical to ensuring automation solutions remain reliable, adaptable, and aligned with business changes over time.
Frequently Asked Questions
How did the company in Barcelona solve a problem where a company spent more than 40 hours per month reviewing documents manually using Microsoft Foundry?
The company automated the manual review process by designing a workflow in n8n that integrates with Microsoft Foundry’s APIs. This workflow fetches new documents, extracts key data, validates it against the ERP, flags inconsistencies, and notifies relevant teams, thereby saving over 70% of the review time.
What tools were integrated in the automated document review workflow?
The workflow integrates Microsoft Foundry for document ingestion, n8n for orchestration, Gmail and Slack for notifications, Google Sheets for reporting, and the company’s ERP system for contract validation.
Why was n8n chosen over other automation platforms?
n8n was selected for its open-source nature, flexibility to customize workflows extensively, native support for custom code, and easy integration with Microsoft Foundry APIs. It allowed building complex validation logic with robust error handling at a cost-effective price point.
How does RestFlow ensure security and compliance in automation?
RestFlow implements security best practices including encrypted storage of API keys, use of least-privilege scopes, TLS encrypted data transmission, PII masking in logs and notifications, and role-based access controls to ensure compliance with data protection regulations like GDPR.
What kind of ongoing support does RestFlow provide after automation deployment?
After deployment and pilot phases, RestFlow provides managed hosting, continuous monitoring with alerts, workflow maintenance including updates and bug fixes, and periodic audits to ensure automation workflows remain reliable and performant as business requirements evolve.
Conclusion
This case study of a Barcelona-based logistics SME highlights how automation transformed a labor-intensive, error-prone manual document review process into a streamlined, accurate, and scalable workflow using Microsoft Foundry integrated with n8n.
By reducing over 40 hours of manual monthly work by more than 70%, enhancing data accuracy, and accelerating processing times, the client saw significant operational gains and improved team satisfaction.
RestFlow’s end-to-end Automation-as-a-Service model ensured expert design, implementation, and ongoing hosting and maintenance, delivering continuous value and peace of mind.
If your organization faces similar challenges, don’t hesitate to explore ready-made automation templates or create your own workflow tailored to your needs.
Explore the possibilities and get started today!