Research Grants
Persona
Role: Research Administration Officer at a research university.
You support faculty across 12 departments in preparing grant proposals, managing awarded funds, and ensuring compliance with sponsor requirements. The university submits over 300 proposals per year to federal agencies, foundations, and industry partners. Each awarded grant comes with its own budget structure, reporting requirements, and spending rules.
Business Problem
Proposal tracking is fragmented -- principal investigators (PIs) manage their own submissions in personal spreadsheets, and the grants office learns about awards only when PIs forward notification emails. Budget tracking for active awards is done in a separate financial system that is not linked to the original proposal. Spending overruns on individual budget categories go undetected until quarterly reconciliation. You need:
- A centralized proposal registry with PI, agency, and status tracking.
- Award records linked to funded proposals with start and end dates.
- Budget items that track allocated versus spent amounts by category.
Four-Step Application
This scenario works best as a four-step, human-in-the-loop application. The existing object model already gives this scenario a strong delivery backbone through Proposal, Award, and BudgetItem.
- Mission metric focus: faster decisions, better learner experience, and stronger enrollment or completion outcomes.
- Human + AI pattern: Each step combines structured workflow data with chat assistance, background generation, document understanding, and accessible interaction patterns when they improve the experience.
Step 1. Capture demand and context
- Goal: Make it easy for the user to start the Research Grants journey with complete, trusted context.
- Required data: Proposal context such as the core workflow data.
- AI support: Use chat to guide intake, generate clearer prompts, create accessible summaries, and assist with voice or vision-led capture when a form alone is not the best experience. EAI can support structured intake, chat workflows, and document-centred capture today; richer native multimodal capture may still need workflow extensions or connected services.
- Business impact: Improve completion rate, reduce first-touch effort, and raise customer or staff confidence in the UX from the very first interaction.
- EAI delivery: Model the intake as tenant-isolated object types and resources, then use actions, chat workflows, and document indexing or classification to keep the initial record complete and usable.
Step 2. Prepare the decision
- Goal: Turn the captured context into the next best action for Research Grants without forcing the human reviewer to assemble the case manually.
- Required data: Proposal state and history.
- AI support: Run background summarisation, extraction, classification, recommendation drafting, and answer generation so a reviewer sees a prepared case instead of raw fragments. EAI delivers the structured records and AI workflow hooks for this today; specialised scoring engines, external rules, or advanced reasoning controls may still need integration work.
- Business impact: Reduce cycle time, improve quality and consistency, and protect the mission-critical metric before the case moves into execution.
- EAI delivery: Link records across the scenario, persist decision state as resources, and use workflow actions plus chat assistance to keep humans in control while AI prepares the work.
Step 3. Execute and collaborate
- Goal: Coordinate the actual work, handoffs, approvals, and user updates needed to deliver the service or outcome.
- Required data: Award execution state.
- AI support: Draft replies, produce work packets, monitor exceptions in the background, and surface the next action for each operator. EAI can orchestrate tenant-isolated records, actions, chats, and document workflows today; deeper system-to-system automation may require additional connectors or workflow capability.
- Business impact: Increase operator productivity, reduce rework across handoffs, and improve service consistency across the application journey.
- EAI delivery: Use linked object types, actions, resource updates, and workflow-triggered AI assistance so the team can execute in one model instead of splitting work across disconnected tools.
Step 4. Resolve, explain, and improve
- Goal: Close the loop with a clear outcome, an understandable explanation, and feedback that improves the next case.
- Required data: final status, outcome, audit history, and follow-up signals across Proposal, Award, and BudgetItem.
- AI support: Generate outcome summaries, customer-friendly answers, compliance-ready notes, management insights, and accessible follow-up content. EAI can store outcome records and support answer generation today, while richer proactive agents, advanced analytics, or channel-specific accessibility features may need additional product capability.
- Business impact: Increase trust, quality, and measurable business value through faster decisions, better learner experience, and stronger enrollment or completion outcomes.
- EAI delivery: Keep the full audit trail in structured resources, use AI workflows to explain outcomes, and feed the resulting signals into future product, service, and operational improvement work.
EAI Platform Support By Step
EAI provides the safe service boundary for Research Grants through Object Types, tenant-scoped resources, document processing, chat workflows, and CLI verification. For this scenario, the main records are Proposal, Award, and BudgetItem.
| Process step | What EAI provides | Calling pattern |
|---|---|---|
| Step 1. Capture demand and context | Tenant-scoped intake resources for Proposal context such as the core workflow data. Object Type validation, starter forms, optional document intake, and chat-guided capture keep the first record complete. | Define fields in src/eai.config/object-types.ts, run eai types validate and eai types seed, create initial Proposal records with useResources('Proposal') or eai resources create Proposal, and keep browser calls behind /api/eai/.... |
| Step 2. Prepare the decision | Linked resource queries over Proposal state and history. Search, schema checks, document classification or RAG indexing, and chat summaries turn raw context into a prepared decision. | Use useResources('Proposal') list/query/search patterns, verify shape with eai resources schema, use useDocuments().upload/classify/ragIndex, eai docs upload, eai docs classify, and eai docs index where supporting material exists, and send decision-support prompts through useChat(workflowId, 'chat') or eai chat send. |
| Step 3. Execute and collaborate | Resource updates and actions for Award execution state. Status changes, assignments, notes, generated work packets, and chat support keep humans in control during execution. | Model actions in the Object Type code, call client.resources.executeAction(type, id, action) or the app hook equivalent, update records through the app service layer, and verify with eai resources get/list/query. |
| Step 4. Resolve, explain, and improve | Outcome resources for final status, outcome, audit history, and follow-up signals across Proposal, Award, and BudgetItem. Audit-friendly links, indexed final documents, reporting snapshots, and answer generation make the result explainable and reusable. | Persist outcomes as resources, index final material with eai docs index or useDocuments().ragIndex, send explanation prompts with useChat or eai chat stream, and use eai resources aggregate/search for reporting checks. |
Prompt, Code, And Service Pattern Mapping
The Object Type code example on this page is the implementation contract for the EAI platform services. eai-gofer should read that code as the source of truth for which resource, document, and chat calls belong in the app.
Use this prompt shape when asking eai-gofer or another coding agent to implement the scenario:
Use the EAI App Template. Model Research Grants with Object Types for Proposal, Award, BudgetItem. Use useResources for records and actions, useDocuments for uploads/classification/RAG where documents appear, useChat for workflow assistance, and verify with eai types/resources/docs/chat commands. Use eai publicapi only when no named command covers the required platform call.
| Scenario artifact | How it maps to EAI service calls |
|---|---|
| Four-step process | Step 1 becomes resource creation, Step 2 becomes resource query/search plus optional document or chat preparation, Step 3 becomes resource update/action calls, and Step 4 becomes outcome persistence plus explanation/reporting calls. |
| Object Type definitions | eai types validate, eai types seed, and eai resources schema make the model available and checkable before UI work starts. |
| Properties and indexes | Fields become useResources payloads, filters, list views, and eai resources create/list/query/search checks. Indexed fields should support lookup and triage, not duplicate canonical records. |
| Links between Object Types | Relationships become linked-resource UI, timeline context, and audit trails that app code loads through resource queries rather than separate bespoke stores. |
| Actions and status fields | Workflow buttons and operator transitions call resource action/update helpers, then verify state with eai resources get/list/query. |
| Document and chat prompts | Prompts should call the platform documents and chat patterns: useDocuments().upload/classify/ragIndex, eai docs upload, eai docs classify, and eai docs index for documents, and useChat, eai chat send, or eai chat stream for conversational assistance. |
Object Types
| Name | Key Properties | Links | Actions |
|---|---|---|---|
| Proposal | title, pi, agency, amount, status | has one Award | submit, revise, withdraw |
| Award | proposal, amount, startDate, endDate | belongs to Proposal, has many BudgetItems | activate, extend, close |
| BudgetItem | award, category, allocated, spent | belongs to Award | allocate, spend, reallocate |
CLI Workflow
-
Scaffold the app
eai init research-grants -
Authenticate and pull environment
eai logineai env pull --include-secretsIf you are an external developer, see [Configuration](/docs/configuration) for login and local environment setup. -
Define Object Types
Add Proposal, Award, and BudgetItem to
src/eai.config/object-types.ts. -
Validate and seed
eai types validateeai types seedTenant: research-grants✔ Proposal — 5 props, 1 link, 3 actions✔ Award — 4 props, 2 links, 3 actions✔ BudgetItem — 4 props, 1 link, 3 actions✔ All Object Types are valid -
Create a proposal
eai resources create Proposal \--data '{"title": "Machine Learning for Climate Modeling", "pi": "Dr. Elena Vasquez", "agency": "nsf", "amount": 450000, "status": "submitted"}' -
Record an award
eai resources create Award \--data '{"proposal": "prop-001", "amount": 450000, "startDate": "2026-09-01", "endDate": "2029-08-31"}' -
Add a budget item
eai resources create BudgetItem \--data '{"award": "award-001", "category": "personnel", "allocated": 280000, "spent": 0}' -
Start local development
eai dev
Code Example
// src/eai.config/object-types.ts
export const objectTypes = {
'research-grants': [
{
name: 'Proposal',
displayName: 'Proposal',
description: 'A research grant proposal submitted by a principal investigator to a funding agency',
properties: [
{ name: 'title', type: 'text' as const, required: true, indexed: true },
{ name: 'pi', type: 'text' as const, required: true, indexed: true },
{ name: 'agency', type: 'select' as const, required: true,
options: [
{ label: 'NSF', value: 'nsf' },
{ label: 'NIH', value: 'nih' },
{ label: 'DOE', value: 'doe' },
{ label: 'DARPA', value: 'darpa' },
{ label: 'Foundation', value: 'foundation' },
{ label: 'Industry', value: 'industry' },
],
},
{ name: 'amount', type: 'number' as const, required: true },
{ name: 'status', type: 'select' as const, required: true, defaultValue: 'draft',
options: [
{ label: 'Draft', value: 'draft' },
{ label: 'Internal Review', value: 'internal-review' },
{ label: 'Submitted', value: 'submitted' },
{ label: 'Under Review', value: 'under-review' },
{ label: 'Funded', value: 'funded' },
{ label: 'Declined', value: 'declined' },
],
},
],
linkTypes: [
{ name: 'award', target: 'Award', cardinality: 'one' as const },
],
actions: [
{ name: 'submit', displayName: 'Submit Proposal' },
{ name: 'revise', displayName: 'Revise Proposal' },
{ name: 'withdraw', displayName: 'Withdraw Proposal' },
],
status: 'published' as const,
},
{
name: 'Award',
displayName: 'Award',
description: 'A funded research award linked to an approved proposal with a defined project period',
properties: [
{ name: 'proposal', type: 'text' as const, required: true },
{ name: 'amount', type: 'number' as const, required: true },
{ name: 'startDate', type: 'date' as const, required: true },
{ name: 'endDate', type: 'date' as const, required: true },
],
linkTypes: [
{ name: 'proposal', target: 'Proposal', cardinality: 'one' as const },
{ name: 'budgetItems', target: 'BudgetItem', cardinality: 'many' as const },
],
actions: [
{ name: 'activate', displayName: 'Activate Award' },
{ name: 'extend', displayName: 'Extend Award' },
{ name: 'close', displayName: 'Close Award' },
],
status: 'published' as const,
},
{
name: 'BudgetItem',
displayName: 'Budget Item',
description: 'A budget line item within a research award tracking allocated versus spent funds',
properties: [
{ name: 'award', type: 'text' as const, required: true },
{ name: 'category', type: 'select' as const, required: true,
options: [
{ label: 'Personnel', value: 'personnel' },
{ label: 'Equipment', value: 'equipment' },
{ label: 'Travel', value: 'travel' },
{ label: 'Supplies', value: 'supplies' },
{ label: 'Subcontracts', value: 'subcontracts' },
{ label: 'Indirect Costs', value: 'indirect-costs' },
],
},
{ name: 'allocated', type: 'number' as const, required: true },
{ name: 'spent', type: 'number' as const, required: true },
],
linkTypes: [
{ name: 'award', target: 'Award', cardinality: 'one' as const },
],
actions: [
{ name: 'allocate', displayName: 'Allocate Budget' },
{ name: 'spend', displayName: 'Record Spending' },
{ name: 'reallocate', displayName: 'Reallocate Funds' },
],
status: 'published' as const,
},
],
};
Key Takeaways
- Centralized proposal tracking improves institutional visibility. The grants office can see all proposals across departments, enabling better resource allocation and avoiding duplicate submissions to the same program.
- Award-to-proposal linking maintains the funding trail. Every Award traces back to its originating Proposal, making it easy to compile success rates by PI, department, or funding agency.
- Category-level budget monitoring catches overruns early. Tracking allocated versus spent amounts on each BudgetItem allows administrators to flag spending issues before they escalate to sponsor audit findings.
- Agency-based filtering supports compliance. Different funding agencies have different reporting and spending rules; filtering by agency helps the grants office apply the correct compliance framework to each award.