
Overview
Our client, a managed technology services provider, partnered with NeenOpal to automate the business credit application its customers complete when applying for credit terms. Until then the whole process ran over email. The team sent the customer a Word form as an attachment, the customer filled in their details and emailed it back, and someone then filed the completed form against the right account in Salesforce. Every application involved a round of back and forth correspondence, manual handling at both ends, and a record that existed only as a document attached to an account.
NeenOpal designed and delivered HubSpot form to PDF automation on AWS, a serverless document automation pipeline that replaced the email exchange with a single link on the client's website. A customer opens the form, enters their details, and signs, and a branded PDF is generated automatically, emailed to the address captured on the form and to the client's own team, and archived in encrypted Amazon S3, while the submission itself is recorded field by field in HubSpot. Nobody sends a form out, chases it back, or files it by hand.
- 100%
- Automated Document Processing— From Signature to Delivery
- <1
- Min From Customer Signature to Delivered PDF
- 0
- Idle Infrastructure Cost, Fully Serverless on AWS
Customer Challenges
Before engaging NeenOpal, collecting a signed credit application was an email exercise that depended on people at both ends, and the finished document ended up filed manually against an account record rather than held in any system built for it.

A Form That Had to Be Emailed Out and Chased Back
Whenever a customer needed to apply for credit terms, the team emailed them a Word form as an attachment and waited for it to come back completed. Nothing moved until the customer replied, and there was no visibility of where any given application had reached in the meantime. Each application consumed a round of correspondence before any of the information could be used.

Manual Filing Against the Right Account in Salesforce
Once a completed form arrived by email, someone had to open it, identify the account it belonged to, and attach it to that record in Salesforce. The information existed only inside the returned document rather than as structured fields, so it could not be searched or reported on, and a filing mistake left an application effectively lost.

No Automatic Copy or Acknowledgment for the Customer
Customers had no confirmation their application had even been received, beyond whatever reply someone eventually got around to sending. Whatever record they had of it was just their own outgoing Word document, sitting in their Sent folder if they had not deleted it, rather than a branded copy sent back by the client or anything confirming the application had reached the right person. The impression the process left depended entirely on how quickly a staff member responded, not on anything the customer received.
Solutions
NeenOpal delivered the automation as a lean, serverless pipeline that took the application off email entirely and built the rest around the constraints of the client's CRM rather than around new infrastructure. The work combined a self-service form, a redesigned CRM data model, a two-function Lambda architecture that respected the webhook response window, templated PDF generation, and an encrypted archive with automated email delivery.
A Self-Service Form Link and a Dedicated CRM Object
NeenOpal moved the application off email by publishing it as a form the client links to directly from its website, so a customer can open it, complete it, and sign without anything being sent to them first. Behind that form the team created a separate business credit application custom object in HubSpot with its own object type identifier, and moved all fifty or more application fields onto that single dedicated entity, so each submission was captured field by field rather than locked inside a returned document.
Two-Function Lambda Pipeline for Webhook Reliability
HubSpot webhooks require a response within roughly five seconds, while the full pipeline of fetching data, generating a PDF, uploading it to storage, and sending email took ten to thirty seconds or more. Rather than risk a single function timing out and prompting HubSpot to retry, NeenOpal split the work in two, so a fast responder returned an immediate acknowledgment and asynchronously invoked a second function that carried out the heavy processing. This design eliminated the duplicate PDFs and duplicate emails that retries would otherwise have produced.
Branded PDF Generation from a Templated Layout
The team built a Jinja2 HTML template that mirrored the live application form, matching its brand colors, logo, typography, and field styling, so every generated document looked the same and looked professional regardless of who had submitted it. Submission data was mapped into the template with dates reformatted for readability and the three trade references structured into a consistent layout, while unfilled fields rendered as styled blank boxes so the document always looked complete. The rendered HTML was converted to PDF bytes in memory using xhtml2pdf, producing a finished document carrying the contact information, company information, principal officer details, trade references, legal certification text, signature, title, and date.
Encrypted, Date-Partitioned S3 Archive
Every generated PDF was written to Amazon S3 under a key partitioned by year, month, day, and submitter email, with a timestamp completing the path. Objects were encrypted with AES-256, giving the client a permanent, organized archive that could be navigated by date or by applicant instead of hunting through attachments on account records. Credentials for the CRM, storage, and email services were held in AWS Secrets Manager rather than in code.
Automated Delivery to the Customer and Internal Team
Once the PDF was generated and archived, the pipeline emailed it automatically, addressing the submitter at the email address captured on the form itself and copying the internal team so the application reached reviewers the moment it was signed. No one had to look up an address or forward anything on. Additional recipients and blind copies were left configurable, which let the client adjust distribution as its review process changed, without any code being rewritten.
Services
AWS Lambda
Amazon S3
HubSpot
Python
Benefits

A Professional, Consistent Document Every Time
Every application now produces the same branded PDF, generated from a template that mirrors the client's own form. The document a customer receives no longer depends on which Word file was sent out or how it came back, which lifted the impression the whole credit application process leaves.

No Email Back and Forth to Collect an Application
The round of correspondence that used to precede every application disappeared, along with the manual filing that followed it. Customers complete the form at a link whenever they are ready, and because the internal team is copied the moment an application is signed, reviewers see new submissions in their inbox rather than waiting for someone to send the form out and file the reply.

An Instant Branded Copy for Every Customer
Applicants receive a professionally formatted PDF copy of their submission within seconds of signing, sent automatically to the address they entered on the form. They get immediate confirmation that their application was received, with no one needing to acknowledge it by hand.

A Searchable Archive Instead of Manual Filing
Every signed application is archived permanently in encrypted S3 storage, organized by date and by submitter, and captured field by field in the CRM rather than sitting inside an attached document. The client gained a dependable audit trail for credit decisions and compliance reviews, in place of a filing step that could put an application on the wrong record.

Serverless Economics with No Idle Cost
Running the automation on Lambda, API Gateway, and S3 meant no servers sat idle between submissions, and the workload remained within AWS free-tier limits. The client gained enterprise-grade document automation without taking on ongoing infrastructure spend.
Conclusion
With NeenOpal's support, the client replaced an email-driven, manually filed credit application process with a serverless automation pipeline that turns every signed submission into a branded, archived PDF in under a minute. By publishing the application as a link on the client's own website, moving it onto a dedicated HubSpot custom object, splitting the workload across two AWS Lambda functions to respect the webhook response window, generating documents from a templated HTML layout, and delivering them from the client's own Microsoft 365 account, NeenOpal removed the back and forth entirely and gave the client a dependable audit trail and an instant customer acknowledgment where neither had existed. The result is faster credit decisions, a searchable archive of every signed application, and a low-cost serverless foundation the client can extend to other forms as new automation needs emerge.
FAQ
Common questions about HubSpot form to PDF automation on AWS
What is a HubSpot webhook, and why does form automation need a dedicated custom object?
A HubSpot webhook sends an HTTP request to an external endpoint whenever a configured event occurs, which lets an outside system react to CRM activity in near real time. Because webhooks on standard contact and company records fire for property changes across every form and object in an account, automation built on them can trigger on unrelated updates. Creating a dedicated custom object for a single form gives that form its own object type, so the webhook fires only for the intended submissions and the downstream pipeline stays reliable.
Why split a document automation pipeline across two AWS Lambda functions?
HubSpot expects a webhook response within roughly five seconds, but fetching submission data, rendering a PDF, uploading it to storage, and sending email can take ten to thirty seconds or more. A single function would exceed that window, prompting HubSpot to retry and producing duplicate documents and duplicate emails. Splitting the work lets a first function acknowledge the webhook immediately and asynchronously invoke a second function that performs the slower processing, so the CRM is satisfied and the pipeline completes exactly once.
How is a branded PDF generated automatically from CRM form data?
HubSpot form to PDF automation begins with a template. The submission data is injected into an HTML template that reproduces the look of the original form, including brand colors, logo, typography, and field layout, using a templating engine such as Jinja2. Values are formatted for presentation along the way, with dates rewritten for readability and repeated field groups structured consistently. A converter such as xhtml2pdf then renders the completed HTML into PDF bytes in memory, so the finished document can be archived and emailed without ever being written to disk.
Case studies
Related case studies

Building a Validated Conversational Sales Analyst on Amazon Quick for a Managed IT Provider
Our client, a managed IT services provider delivering all-inclusive computer, internet and help desk support to small and mid-sized businesses, already monitored sales opportunities across eight funnel stages in an established Power BI dashboard. Answering deeper questions about stage duration, win rates and trends still meant stacking filters and interpreting the resulting measures. NeenOpal extended that environment with a conversational AI Analyst Agent built on Amazon Quick, connected to the client's opportunity stage funnel dataset in Amazon RDS. Teams now ask questions in plain language and receive summaries, charts and the supporting SQL, cutting the time to a routine answer by 75% and the number of analysis steps by 60%. The depth sits in the foundation: a curated opportunity-stage data model, documented business rules, and answers reconciled with the existing Power BI dashboard month by month and filter by filter, which matched on every indicator tested. Power BI stays exactly where it was.
Read case study
Unifying Eight Disconnected Business Systems into Centralized Power BI Dashboards
Our client, a managed technology services provider (MSP), partnered with NeenOpal to replace a fragmented, siloed reporting process with a centralized Power BI dashboard environment. Business-critical data was scattered across multiple disconnected systems, from the CRM and PSA to the service desk, client surveys data, and network monitoring tools, leaving leadership without a single view of sales, customers, operations, or the workforce. NeenOpal designed and delivered a centralized Power BI reporting solution that unifies data from all of these sources into an automated, daily-refreshed analytics layer on AWS. By ingesting each source, staging it in a PostgreSQL warehouse, and modeling it into governed Power BI dashboards across every business function, the team turned manual, spreadsheet-bound reporting into interactive, self-service insight the client can filter and act on in seconds.
Read case study
Turning Foot-Traffic and POS Data into Real-Time Venue Intelligence
Our client operates a network of nightlife and hospitality venues, where each location generates massive volumes of foot-traffic and point-of-sale (POS) data every day. Without a unified way to translate this data into meaningful insights, decisions around staffing, promotions, and operations were largely reactive, cross-venue performance comparisons were nearly impossible, and revenue opportunities remained hidden inside fragmented data systems. NeenOpal partnered with the client to build a scalable, multi-tenant venue intelligence platform on AWS that transforms raw POS and footfall activity into real-time, decision-ready insights at the venue, region, and network level.
Read case study
Unlocking Instant Cash Flow for Businesses Using AR Factoring Platform
The client partnered with NeenOpal to build a modern AR Factoring platform tailored for gas station businesses in the fuel and energy retail sector. The objective was to enable faster access to working capital by advancing funds against card-based receivables, while maintaining strong risk controls, compliance, and operational scalability. NeenOpal brought this vision to life by designing a fully automated, cloud-native solution that seamlessly manages onboarding, funding, repayment, and auditability.
Read case study
Rescuing Cloud Infrastructure & Driving Long-Term Security with AWS Well-Architected Review
Just a week into a new partnership, a digital lending company contacted NeenOpal on New Year’s Eve due to a critical infrastructure outage. Their production systems had been down for over two business days, disrupting operations during a peak traffic period. NeenOpal’s DevOps team promptly intervened, restoring services within hours. This immediate resolution was followed by a comprehensive AWS Well-Architected Framework Review (WAFR) to identify underlying reliability issues and deliver a clear roadmap for building a scalable and resilient cloud infrastructure.
Read case study
NeenOpal's Digital Innovation for Addiction Treatment: Transforming Recovery
Our client, a leader in addiction treatment innovation, sought to improve traditional recovery models, which had a 50% success rate over 17 years. Fragmented care and inconsistent assessments hindered effectiveness. NeenOpal developed a scalable, cloud-native SaaS platform—the Digital Risk Stratification Tool using advanced analytics for data-driven risk assessment, real-time insights, and automated reporting. This solution enables personalized care plans, enhances recovery outcomes, and transforms addiction treatment into an insight-driven, predictive healthcare model.
Read case study
