Modern enterprise applications increasingly rely on smart automation to enhance user experience. One powerful capability is intelligent form suggestions—where your system predicts field values, autofills information, recommends dropdown options, or validates entries using AI.
This article explains how to implement intelligent form suggestions using OpenAI APIs in an Angular + ASP.NET Core stack, including workflows, architecture diagrams, and code samples.
1. What Are Intelligent Form Suggestions?
Intelligent Form Suggestions (IFS) use AI models to assist users while filling forms by providing:
Autofill suggestions
Predictive dropdown values
Contextual recommendations
Error detection or validation
Summaries or derived values
Smart defaults based on user history
Example use cases
✔ Customer onboarding forms
✔ Insurance claims
✔ Work order forms
✔ Shipping and UPS label creation
✔ Compliance documents
2. High-Level Architecture
┌─────────────────────┐ API Call ┌───────────────────────┐│ Angular UI │ ─────────────▶ │ ASP.NET Core Backend ││(Captures Form Data) │ │(Prepares Prompt) │└─────────────────────┘ └─────────┬─────────────┘
|
| OpenAI API Request
▼
┌─────────────────────────┐
│ OpenAI Model │
│ (GPT-5.1 or fine-tuned) │
└─────────┬──────────────┘
|
▼
┌─────────────────────┐ AI Suggestions ┌──────────────────────┐│ Angular UI │ ◀──────────────────── │ ASP.NET Core Backend ││(Displays Suggestions)│ └──────────────────────┘└─────────────────────┘3. Workflow Diagram
┌─────────────────────────────────────────┐
│ User starts filling a form in Angular │
└─────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ Angular collects partial form data │
└─────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ Angular sends data to API (/ai/suggest)│
└─────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ API builds prompt with business context │
└─────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ API calls OpenAI GPT-5.1 model │
└─────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ Model returns JSON suggestions │
└─────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ Angular shows inline field suggestions │
└─────────────────────────────────────────┘
4. Designing the Prompt for High Accuracy
Example prompt sent from backend:
You are an AI assistant helping to auto-suggest form values.
The user is filling a Shipping Work Order form.
Here is the partial data:
{
"customerName": "John Mathew",
"country": "USA",
"packageWeight": 12
}
Predict the following:
- Suggested Shipping Method
- Recommended Packaging Type
- Is Insurance Required (Yes/No)
- Any validation warnings
Return JSON only:
{
"shippingMethod": "",
"packageType": "",
"insuranceRequired": "",
"warnings": []
}
Best practices

Join the conversation! Your thoughts help the community grow.