@ema.co/mcp-toolkit 2026.1.25 → 2026.1.26-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @ema.co/mcp-toolkit might be problematic. Click here for more details.

Files changed (87) hide show
  1. package/README.md +10 -2
  2. package/dist/mcp/handlers/action/index.js +3 -18
  3. package/dist/mcp/handlers/data/index.js +385 -41
  4. package/dist/mcp/handlers/data/templates.js +107 -0
  5. package/dist/mcp/handlers/deprecation.js +50 -0
  6. package/dist/mcp/handlers/env/index.js +8 -4
  7. package/dist/mcp/handlers/knowledge/index.js +44 -237
  8. package/dist/mcp/handlers/persona/create.js +47 -18
  9. package/dist/mcp/handlers/persona/index.js +14 -11
  10. package/dist/mcp/handlers/persona/update.js +4 -2
  11. package/dist/mcp/handlers/persona/version.js +234 -0
  12. package/dist/mcp/handlers/sync/index.js +3 -18
  13. package/dist/mcp/handlers/template/index.js +75 -10
  14. package/dist/mcp/handlers/workflow/analyze.js +171 -0
  15. package/dist/mcp/handlers/workflow/compare.js +70 -0
  16. package/dist/mcp/handlers/workflow/deploy.js +73 -0
  17. package/dist/mcp/handlers/workflow/generate.js +350 -0
  18. package/dist/mcp/handlers/workflow/index.js +294 -0
  19. package/dist/mcp/handlers/workflow/modify.js +456 -0
  20. package/dist/mcp/handlers/workflow/optimize.js +136 -0
  21. package/dist/mcp/handlers/workflow/types.js +4 -0
  22. package/dist/mcp/handlers/workflow/utils.js +30 -0
  23. package/dist/mcp/handlers-consolidated.js +73 -2696
  24. package/dist/mcp/prompts.js +83 -43
  25. package/dist/mcp/resources.js +382 -57
  26. package/dist/mcp/server.js +199 -391
  27. package/dist/mcp/{tools-v2.js → tools.js} +20 -54
  28. package/dist/mcp/workflow-operations.js +2 -2
  29. package/dist/sdk/client-adapter.js +267 -32
  30. package/dist/sdk/client.js +45 -16
  31. package/dist/sdk/ema-client.js +183 -0
  32. package/dist/sdk/generated/deprecated-actions.js +171 -0
  33. package/dist/sdk/generated/template-fallbacks.js +123 -0
  34. package/dist/sdk/guidance.js +65 -11
  35. package/dist/sdk/index.js +3 -1
  36. package/dist/sdk/knowledge.js +139 -86
  37. package/dist/sdk/workflow-intent.js +27 -0
  38. package/dist/sdk/workflow-transformer.js +0 -342
  39. package/docs/mcp-tools-guide.md +37 -45
  40. package/package.json +10 -4
  41. package/dist/mcp/handlers/persona/analyze.js +0 -275
  42. package/dist/mcp/handlers/persona/compare.js +0 -32
  43. package/dist/mcp/tools-consolidated.js +0 -875
  44. package/dist/mcp/tools-legacy.js +0 -736
  45. package/docs/CODEBASE-ANALYSIS-2026-01-23.md +0 -936
  46. package/docs/CODEBASE-ANALYSIS-PRIORITIZED.md +0 -774
  47. package/docs/api-contracts.md +0 -216
  48. package/docs/auto-builder-analysis.md +0 -271
  49. package/docs/blog/mcp-tool-design-lessons.md +0 -309
  50. package/docs/data-architecture.md +0 -166
  51. package/docs/demos/ap-invoice-generation.md +0 -347
  52. package/docs/demos/ap-invoice-processing.md +0 -271
  53. package/docs/ema-auto-builder-guide.html +0 -394
  54. package/docs/lessons-learned.md +0 -209
  55. package/docs/llm-native-workflow-design.md +0 -252
  56. package/docs/local-generation.md +0 -508
  57. package/docs/mcp-flow-diagram.md +0 -135
  58. package/docs/migration/action-composition-migration.md +0 -270
  59. package/docs/naming-conventions.md +0 -278
  60. package/docs/proposals/HANDOFF-tool-restructure.md +0 -526
  61. package/docs/proposals/action-composition.md +0 -490
  62. package/docs/proposals/explicit-method-restructure.md +0 -328
  63. package/docs/proposals/mcp-tool-restructure-2026-01.md +0 -366
  64. package/docs/proposals/self-contained-guidance.md +0 -427
  65. package/docs/proto-sdk-generation.md +0 -242
  66. package/docs/release-impact.md +0 -102
  67. package/docs/release-process.md +0 -157
  68. package/docs/staging.RULE.md +0 -142
  69. package/docs/test-persona-creation.md +0 -196
  70. package/docs/tool-consolidation-v2.md +0 -225
  71. package/docs/tool-response-standards.md +0 -256
  72. package/resources/demo-kits/README.md +0 -175
  73. package/resources/demo-kits/finance-ap/manifest.json +0 -150
  74. package/resources/demo-kits/tags.json +0 -91
  75. package/resources/docs/getting-started.md +0 -97
  76. package/resources/templates/auto-builder-rules.md +0 -224
  77. package/resources/templates/chat-ai/README.md +0 -119
  78. package/resources/templates/chat-ai/persona-config.json +0 -111
  79. package/resources/templates/dashboard-ai/README.md +0 -156
  80. package/resources/templates/dashboard-ai/persona-config.json +0 -180
  81. package/resources/templates/demo-scenarios/README.md +0 -63
  82. package/resources/templates/demo-scenarios/test-published-package.md +0 -116
  83. package/resources/templates/document-gen-ai/README.md +0 -132
  84. package/resources/templates/document-gen-ai/persona-config.json +0 -316
  85. package/resources/templates/voice-ai/README.md +0 -123
  86. package/resources/templates/voice-ai/persona-config.json +0 -74
  87. package/resources/templates/voice-ai/workflow-prompt.md +0 -121
@@ -1,347 +0,0 @@
1
- # AP Invoice Generation - Demo Script
2
-
3
- **Persona ID**: `d73c8dca-d340-4541-a7ff-ae69f2810906`
4
- **Type**: Chat
5
- **Complexity**: High (12 nodes, multi-stage validation)
6
- **Generated**: 2026-01-24
7
-
8
- ---
9
-
10
- ## Target Persona
11
-
12
- | Role | Profile |
13
- |------|---------|
14
- | **Primary** | Revenue Operations Manager / Billing Manager |
15
- | **Secondary** | CFO, Finance Director, Deal Desk Manager |
16
- | **Company Size** | Mid-market to Enterprise (SaaS, usage-based billing) |
17
- | **Industry** | Software/SaaS, Telecom, Utilities, Cloud Services |
18
- | **Business Model** | Usage-based, subscription, hybrid pricing |
19
-
20
- **Buyer Characteristics:**
21
- - Managing complex B2B contracts with tiered pricing
22
- - Handling usage-based billing across multiple products
23
- - Consolidating invoices across subsidiary accounts
24
- - Dealing with contract amendments and credits mid-cycle
25
- - Under pressure for accurate, timely invoicing
26
- - Managing DSO (Days Sales Outstanding) targets
27
-
28
- ---
29
-
30
- ## Pain Points Addressed
31
-
32
- | Pain Point | Impact | How Ema Solves It |
33
- |------------|--------|-------------------|
34
- | **Manual invoice creation** | 2-4 hours per enterprise invoice | Automated in minutes |
35
- | **Usage data aggregation** | Scattered across 5+ systems | Single unified view |
36
- | **Contract compliance errors** | Revenue leakage 3-5% | Automated validation |
37
- | **Pricing mistakes** | Credits, disputes, churn | Contract-accurate pricing |
38
- | **Parent/child billing** | Complex consolidation | Automatic hierarchy handling |
39
- | **Audit trail gaps** | SOX compliance risk | Full generation history |
40
- | **Late invoices** | DSO impact, cash flow | Same-day generation |
41
- | **Format inconsistency** | Unprofessional, customer complaints | Standardized templates |
42
-
43
- ---
44
-
45
- ## Workflow Overview
46
-
47
- ```
48
- Data Sources → Validate Customer → Validate Usage → Validate Contract → Generate Invoice → Publish Document
49
- ↓ ↓ ↓ ↓ ↓ ↓
50
- (6 sources) (Salesforce, (Usage metrics, (Contract terms, (Markdown (DOCX
51
- Contracts, API logs, payment terms, template) download)
52
- Compliance) Proration) discounts)
53
- ```
54
-
55
- ### Nodes (12 total)
56
-
57
- | Node | Type | Purpose |
58
- |------|------|---------|
59
- | **Convert to Text** | `convert_to_text` | Normalizes inputs |
60
- | **SFDC API Placeholder** | `fixed_response` | Salesforce account data |
61
- | **Contract Placeholder** | `fixed_response` | Contract terms & billing |
62
- | **Reference File Placeholder** | `fixed_response` | Customer master data |
63
- | **Product Offering Placeholder** | `fixed_response` | Product catalog & pricing |
64
- | **Usage Placeholder** | `fixed_response` | Usage metrics |
65
- | **Payment Records Placeholder** | `fixed_response` | Payment history |
66
- | **Validate Customer** | `call_llm` | Verifies customer, credit, compliance |
67
- | **Validate Usage** | `call_llm` | Aggregates & validates usage data |
68
- | **Validate Contract** | `call_llm` | Validates contract terms & pricing |
69
- | **Generate Invoice** | `call_llm` | Creates professional markdown invoice |
70
- | **Publish Document** | `generate_document` | Converts to downloadable DOCX |
71
-
72
- ---
73
-
74
- ## Key Talking Points
75
-
76
- ### 1. **Multi-Source Data Orchestration**
77
- > "Ema pulls from Salesforce, your contract management system, usage databases, and payment history - then orchestrates it all into a single validated invoice. No more copy-pasting between systems."
78
-
79
- ### 2. **Triple Validation Pipeline**
80
- > "Before generating anything, Ema runs three validation stages:
81
- > 1. **Customer Validation** - Account hierarchy, credit status, compliance
82
- > 2. **Usage Validation** - Aggregate, prorate, convert units
83
- > 3. **Contract Validation** - Terms, discounts, commitments
84
- >
85
- > Only if all three pass does the invoice get generated."
86
-
87
- ### 3. **Complex Billing Scenarios**
88
- > "Usage-based? Tiered pricing? Volume discounts? Minimum commitments? Mid-cycle amendments? Ema handles them all - the same logic your best billing analyst would use, but consistent every time."
89
-
90
- ### 4. **Professional Document Output**
91
- > "The invoice isn't just data - it's a professional document with your branding, proper formatting, payment instructions, and compliance information. Download as DOCX or PDF."
92
-
93
- ### 5. **Consolidated Billing**
94
- > "For enterprise customers with subsidiaries, Ema automatically identifies the billing hierarchy, consolidates across accounts, and applies parent-level discounts."
95
-
96
- ### 6. **Audit-Ready**
97
- > "Every invoice generation is logged with: what data was used, what validations ran, what calculations were applied. Perfect for revenue recognition and SOX compliance."
98
-
99
- ---
100
-
101
- ## Demo Script
102
-
103
- ### **Setup (Before Demo)**
104
- - [ ] Sample order/usage data ready
105
- - [ ] Mock Salesforce account data
106
- - [ ] Sample contract with tiered pricing
107
- - [ ] Ema workspace with this persona loaded
108
-
109
- ---
110
-
111
- ### **Act 1: The Problem (2 min)**
112
-
113
- **[Show current state]**
114
-
115
- > "Let me show you what enterprise invoice generation looks like today."
116
-
117
- **Talking points:**
118
- - "Customer places an order or usage period closes"
119
- - "Billing analyst opens Salesforce, finds the account"
120
- - "Opens contract management system, finds the contract"
121
- - "Opens usage database, runs reports, exports to Excel"
122
- - "Manually calculates: included quantities, overages, discounts"
123
- - "Opens Word, copies a template, types everything in"
124
- - "Checks, double-checks, maybe misses something"
125
- - "2-4 hours later, maybe the invoice is ready"
126
-
127
- **Ask:** "How many enterprise invoices does your team generate per month? What's your error rate?"
128
-
129
- ---
130
-
131
- ### **Act 2: The Validation Pipeline (5 min)**
132
-
133
- **[Show Ema interface]**
134
-
135
- > "Now let me show you Ema's approach - validate everything BEFORE generating."
136
-
137
- **Step 1: Data Sources**
138
- > "Ema connects to your systems - Salesforce, contract database, usage metrics, payment history. In production, these are live API connections. For this demo, we're using sample data."
139
-
140
- *[Show data source placeholders]*
141
-
142
- **Step 2: Customer Validation**
143
- > "First, Ema validates the customer. Watch what it checks:"
144
-
145
- *[Trigger workflow, show Validate Customer output]*
146
-
147
- > "It verified:
148
- > - Account exists in Salesforce
149
- > - Parent/child relationships (for consolidated billing)
150
- > - Credit terms and payment history
151
- > - Contract compliance status
152
- > - No open disputes
153
- > - Authorized billing contacts
154
- >
155
- > If ANY red flag exists, it stops and alerts. No invoice generated for a customer on credit hold."
156
-
157
- **Step 3: Usage Validation**
158
- > "Next, Ema aggregates and validates usage:"
159
-
160
- *[Show Validate Usage output]*
161
-
162
- > "It:
163
- > - Pulls from all usage sources (API logs, storage, support tickets)
164
- > - Aggregates by product/SKU
165
- > - Handles unit conversions
166
- > - Prorates partial periods
167
- > - Handles multi-tenant consolidation
168
- >
169
- > Your billing team would spend hours on this. Ema does it in seconds."
170
-
171
- **Step 4: Contract Validation**
172
- > "Finally, contract terms are validated against usage:"
173
-
174
- *[Show Validate Contract output]*
175
-
176
- > "It checks:
177
- > - Correct pricing tiers
178
- > - Volume discount qualifications
179
- > - Minimum commitments
180
- > - Promotional credits still valid
181
- > - Contract amendments in effect
182
- >
183
- > This is where revenue leakage happens. Ema catches it."
184
-
185
- ---
186
-
187
- ### **Act 3: Invoice Generation (3 min)**
188
-
189
- > "With all validations passed, now Ema generates the invoice."
190
-
191
- *[Show Generate Invoice output]*
192
-
193
- **Invoice Components Generated:**
194
- > "The invoice includes:
195
- > - **Header**: Invoice number, dates, terms, contract references
196
- > - **Bill To / Remit To**: Full address blocks with tax IDs
197
- > - **Line Items**: Products, included vs actual usage, overage pricing
198
- > - **Adjustments**: Discounts, credits, penalties
199
- > - **Tax Calculations**: Jurisdiction-specific rates
200
- > - **Totals**: Subtotal, adjustments, tax, amount due
201
- > - **Compliance**: Usage metrics, contract status, milestones
202
- > - **Payment Info**: Wire/ACH instructions
203
- > - **Audit Trail**: Generation ID, timestamp"
204
-
205
- **Document Output:**
206
- > "And finally, it's converted to a professional document."
207
-
208
- *[Show Publish Document - DOCX download link]*
209
-
210
- > "One click to download. Ready to send to the customer."
211
-
212
- ---
213
-
214
- ### **Act 4: The Differentiators (3 min)**
215
-
216
- **Complex Pricing Scenarios**
217
- > "Let me show you how Ema handles tiered pricing."
218
-
219
- *[Walk through a tiered pricing example in the output]*
220
-
221
- > "
222
- > - 0-1,000 units: included in base
223
- > - 1,001-5,000: $0.10 each
224
- > - 5,001+: $0.05 each
225
- >
226
- > Ema calculated each tier correctly, showed the breakdown, and applied the right total."
227
-
228
- **Consolidated Billing**
229
- > "For enterprise customers with subsidiaries:"
230
-
231
- > "Ema:
232
- > - Identifies the ultimate parent account
233
- > - Finds all child accounts with billing enabled
234
- > - Aggregates usage across the hierarchy
235
- > - Applies parent-level discounts
236
- > - Generates one consolidated invoice"
237
-
238
- **Mid-Cycle Amendments**
239
- > "Contract changed mid-period? Ema handles proration automatically - you don't need to manually calculate partial months."
240
-
241
- **Audit Trail**
242
- > "Every invoice includes a generation ID. You can trace exactly what data was used, what validations ran, what decisions were made. Perfect for revenue recognition audits."
243
-
244
- ---
245
-
246
- ### **Act 5: ROI Discussion (2 min)**
247
-
248
- **Build the business case:**
249
-
250
- | Metric | Before | After | Impact |
251
- |--------|--------|-------|--------|
252
- | Time per invoice | 2-4 hours | 5 minutes | 95% reduction |
253
- | Pricing errors | 3-5% | <0.5% | Revenue protected |
254
- | DSO impact | Invoices delayed 3-5 days | Same-day | Cash flow improved |
255
- | Audit prep time | 40 hours/quarter | 4 hours | 90% reduction |
256
- | Billing headcount | 1 FTE per 200 invoices | 1 FTE per 2,000 invoices | 10x efficiency |
257
-
258
- > "If you're generating 500 enterprise invoices per month at 3 hours each, that's 1,500 hours. At $50/hour loaded cost, that's $75,000/month in labor alone.
259
- >
260
- > With Ema: 500 invoices × 5 minutes = 42 hours. That's $73,000 monthly savings."
261
-
262
- **Revenue Protection:**
263
- > "More importantly - if your error rate drops from 5% to 0.5% on $10M monthly billings, you've protected $450,000 in revenue per month."
264
-
265
- ---
266
-
267
- ### **Act 6: Next Steps (1 min)**
268
-
269
- > "Here's how we typically get started:"
270
-
271
- 1. **Discovery (1 week)** - Map your data sources, pricing models, invoice formats
272
- 2. **Pilot (2-4 weeks)** - Run Ema on one customer segment or product line
273
- 3. **Validate** - Compare output to manual invoices, measure accuracy
274
- 4. **Expand** - Roll out to full invoice generation
275
- 5. **Optimize** - Add more data sources, approval workflows, integrations
276
-
277
- > "Most customers see ROI within the first billing cycle."
278
-
279
- **Ask:** "Would you like to pilot this with your most complex customer segment?"
280
-
281
- ---
282
-
283
- ## Objection Handling
284
-
285
- | Objection | Response |
286
- |-----------|----------|
287
- | "Our pricing is too complex" | "That's exactly where Ema shines. The more complex your pricing, the more value from automation. Can I see your most complex contract?" |
288
- | "We have existing billing software" | "Ema doesn't replace your billing system - it feeds it. Think of it as intelligent pre-processing that validates and enriches before data hits your ERP." |
289
- | "We need human review" | "Absolutely. Add approval gates for invoices over any threshold. Ema does the work, humans approve the result." |
290
- | "Data security concerns" | "Ema connects via your existing APIs with your credentials. No data leaves your environment unless you want it to." |
291
- | "What about edge cases?" | "Ema flags anything it can't handle confidently. Exceptions route to humans. Start with 80% automation, expand as you build confidence." |
292
- | "Contract amendments?" | "Ema checks contract version dates and applies the correct terms for each period. Mid-cycle changes are prorated automatically." |
293
- | "Multi-currency?" | "Ema can handle currency conversion using rates you specify or live FX feeds." |
294
-
295
- ---
296
-
297
- ## Demo Variants
298
-
299
- | Audience | Focus On | Skip |
300
- |----------|----------|------|
301
- | **CFO** | Revenue protection, DSO, audit compliance | Technical integration |
302
- | **RevOps** | Validation pipeline, complex scenarios, accuracy | High-level ROI |
303
- | **IT** | Data sources, API integration, security | Business metrics |
304
- | **Deal Desk** | Contract accuracy, amendments, credits | Technical details |
305
-
306
- ---
307
-
308
- ## Leave-Behinds
309
-
310
- 1. **Sample Invoice** - Generated by Ema from demo data
311
- 2. **Validation Report** - What Ema checks before generating
312
- 3. **Integration Architecture** - How Ema connects to systems
313
- 4. **ROI Calculator** - Their numbers, their savings
314
- 5. **Customer Case Study** - Similar company results
315
-
316
- ---
317
-
318
- ## Success Metrics to Track
319
-
320
- | Metric | Baseline | Target |
321
- |--------|----------|--------|
322
- | Invoice generation time | ___ hours | <10 min |
323
- | Pricing accuracy | ___% | >99.5% |
324
- | DSO (Days Sales Outstanding) | ___ days | -5 days |
325
- | Billing disputes | ___/month | -80% |
326
- | Audit prep time | ___ hours | -90% |
327
- | Revenue leakage | ___% | <0.5% |
328
-
329
- ---
330
-
331
- ## Comparison: AP Invoice Processing vs AP Invoice Generation
332
-
333
- | Aspect | Invoice Processing | Invoice Generation |
334
- |--------|-------------------|-------------------|
335
- | **Direction** | Inbound (receive invoices) | Outbound (create invoices) |
336
- | **Use Case** | AP - pay suppliers | AR - bill customers |
337
- | **Data Source** | PDF/email invoices | Internal systems (CRM, usage, contracts) |
338
- | **Validation** | 3-way match against PO | Customer, usage, contract validation |
339
- | **Output** | Entry in Coupa/ERP | Professional invoice document |
340
- | **Complexity** | Medium (5 nodes) | High (12 nodes) |
341
- | **Target Buyer** | AP Manager | RevOps / Billing Manager |
342
-
343
- ---
344
-
345
- ## Tags
346
-
347
- `demo-kit` `ar-automation` `invoice-generation` `revenue-ops` `usage-billing` `saas` `finance`
@@ -1,271 +0,0 @@
1
- # AP Invoice Processing - Demo Script
2
-
3
- **Persona ID**: `fa91cb51-58fe-4255-b2d2-0b3e3a72cf7e`
4
- **Type**: Chat
5
- **Generated**: 2026-01-24
6
-
7
- ---
8
-
9
- ## Target Persona
10
-
11
- | Role | Profile |
12
- |------|---------|
13
- | **Primary** | AP Manager / Controller |
14
- | **Secondary** | CFO, Procurement Director, IT/Automation Lead |
15
- | **Company Size** | Mid-market to Enterprise ($50M-$1B revenue) |
16
- | **Industry** | Manufacturing, Retail, Distribution, Healthcare |
17
- | **Tech Stack** | Coupa (or similar P2P), ERP (Oracle, SAP, NetSuite) |
18
-
19
- **Buyer Characteristics:**
20
- - Managing 5,000-50,000+ invoices/month
21
- - Team of 3-15 AP specialists
22
- - Current process involves significant manual data entry
23
- - Dealing with supplier inquiries about payment status
24
- - Under pressure to reduce costs and improve working capital
25
-
26
- ---
27
-
28
- ## Pain Points Addressed
29
-
30
- | Pain Point | Impact | How Ema Solves It |
31
- |------------|--------|-------------------|
32
- | **Manual data entry** | 15-20 min per invoice, high error rate | Automated extraction in seconds |
33
- | **PO matching failures** | 30-40% first-pass match rate | Intelligent matching with validation |
34
- | **Supplier complaints** | 10+ calls/day asking "where's my payment?" | Automatic confirmation emails |
35
- | **Audit trail gaps** | Compliance risk, failed audits | Full logging of every step |
36
- | **Staff turnover costs** | $50K+ to train new AP clerk | AI handles repetitive work |
37
- | **Late payment penalties** | 2-5% of invoice value lost | Faster processing = on-time payment |
38
- | **Fraud risk** | Invoice fraud costs $3.7B/year in US | 3-way match validation prevents errors |
39
-
40
- ---
41
-
42
- ## Workflow Overview
43
-
44
- ```
45
- Invoice Upload → Extract Data → Create in Coupa → Get Session Link → Send Email
46
- ```
47
-
48
- ### Nodes (5 total)
49
-
50
- | Node | Type | Purpose |
51
- |------|------|---------|
52
- | **Extract Data from Invoice** | `entity_extraction` | Extracts invoice details (supplier, PO#, amounts) |
53
- | **Fixed Response** | `fixed_response` | Provides context to next step |
54
- | **Create Invoice in Coupa** | `external_action_caller` | Automates Coupa invoice creation with 16-step process |
55
- | **Active Session Link** | `call_llm` | Extracts the browser session link |
56
- | **Send Email** | `external_action_caller` | Sends confirmation email to supplier |
57
-
58
- ---
59
-
60
- ## Key Talking Points
61
-
62
- ### 1. **End-to-End Automation**
63
- > "This isn't just OCR. Ema reads the invoice, validates it against your PO, creates the entry in Coupa, and notifies your supplier - all without human intervention."
64
-
65
- ### 2. **3-Way Match Validation**
66
- > "Before creating anything, Ema validates:
67
- > - Does the PO exist?
68
- > - Does the supplier name match?
69
- > - Do the line items match?
70
- > - Do the prices match?
71
- >
72
- > Any discrepancy is flagged immediately - no bad data enters your system."
73
-
74
- ### 3. **Works With Your Existing Systems**
75
- > "This connects to Coupa, but we support SAP Ariba, Oracle, NetSuite, and 200+ other applications. No rip-and-replace required."
76
-
77
- ### 4. **Supplier Experience**
78
- > "Your suppliers get instant confirmation when their invoice is processed. No more 'did you receive my invoice?' calls."
79
-
80
- ### 5. **Human-in-the-Loop When Needed**
81
- > "You can add approval gates at any step. For invoices over $10K, route to manager. For new suppliers, require verification. Full control."
82
-
83
- ### 6. **ROI in Weeks, Not Years**
84
- > "Average AP processing cost: $8-15 per invoice. With Ema: under $1. At 10,000 invoices/month, that's $70K-140K annual savings."
85
-
86
- ---
87
-
88
- ## Demo Script
89
-
90
- ### **Setup (Before Demo)**
91
- - [ ] Have sample invoice PDF ready (use sanitized demo data)
92
- - [ ] Coupa demo environment open in browser
93
- - [ ] Ema workspace with this persona loaded
94
- - [ ] Slack/Teams open for notification demo (optional)
95
-
96
- ---
97
-
98
- ### **Act 1: The Problem (2 min)**
99
-
100
- **[Show current state]**
101
-
102
- > "Let me show you what AP processing looks like today at most companies."
103
-
104
- **Talking points:**
105
- - "An invoice arrives via email, fax, or portal"
106
- - "Someone manually opens it, reads it, types data into the system"
107
- - "They hunt for the PO, compare line by line"
108
- - "If something doesn't match, they email the supplier"
109
- - "Days later, maybe it gets resolved"
110
- - "Meanwhile, the supplier calls: 'Where's my payment?'"
111
-
112
- **Ask:** "Does this sound familiar? How many invoices does your team process per month?"
113
-
114
- ---
115
-
116
- ### **Act 2: The Solution (5 min)**
117
-
118
- **[Show Ema interface]**
119
-
120
- > "Now let me show you how Ema handles this same invoice."
121
-
122
- **Step 1: Upload Invoice**
123
- > "I'll drop this invoice into Ema. This could also come from email, a portal, or direct API integration."
124
-
125
- *[Upload sample invoice PDF]*
126
-
127
- **Step 2: Watch Extraction**
128
- > "In seconds, Ema extracts:
129
- > - Supplier Name
130
- > - Invoice Number
131
- > - PO Number
132
- > - Line items with descriptions
133
- > - Quantities and prices"
134
-
135
- *[Show extracted data]*
136
-
137
- > "Notice it handled this [multi-page / handwritten / poor quality] invoice. Our extraction works with 95%+ accuracy on real-world documents."
138
-
139
- **Step 3: Watch Validation**
140
- > "Now Ema logs into Coupa - using secure credentials, not stored in the workflow - and validates this against your data."
141
-
142
- *[Show Coupa automation running]*
143
-
144
- > "It's checking:
145
- > - ✅ PO exists
146
- > - ✅ Supplier name matches
147
- > - ✅ Line items match
148
- > - ✅ Prices match
149
- >
150
- > If ANY of these fail, it stops and flags for human review. No garbage in, no garbage out."
151
-
152
- **Step 4: Invoice Creation**
153
- > "With everything validated, Ema creates the invoice in Coupa automatically."
154
-
155
- *[Show invoice created in Coupa]*
156
-
157
- > "Chart of accounts is pulled from the PO. All line items mapped. Ready for approval."
158
-
159
- **Step 5: Supplier Notification**
160
- > "Finally, the supplier gets an email confirming receipt and processing."
161
-
162
- *[Show email sent]*
163
-
164
- > "No more 'where's my invoice?' calls. Your suppliers know instantly."
165
-
166
- ---
167
-
168
- ### **Act 3: The Differentiators (3 min)**
169
-
170
- **Human-in-the-Loop**
171
- > "You might be thinking: 'I don't want AI making $50K decisions without approval.'
172
- >
173
- > Great news - you control that. Let me show you how easy it is to add an approval gate."
174
-
175
- *[Show how to add HITL in workflow builder - or describe it]*
176
-
177
- > "For invoices over your threshold, or from new suppliers, route to a human. One click to approve or reject."
178
-
179
- **Audit Trail**
180
- > "Every step is logged. Who approved what, when, why. Perfect for auditors."
181
-
182
- **Exception Handling**
183
- > "When Ema finds a mismatch, it doesn't just stop. It can:
184
- > - Route to the right person
185
- > - Request supplier clarification
186
- > - Apply your business rules automatically"
187
-
188
- ---
189
-
190
- ### **Act 4: ROI Discussion (2 min)**
191
-
192
- **Build the business case:**
193
-
194
- | Metric | Before | After | Savings |
195
- |--------|--------|-------|---------|
196
- | Time per invoice | 15 min | 2 min (exceptions only) | 87% reduction |
197
- | Cost per invoice | $12 | $1.50 | $10.50 each |
198
- | First-pass match rate | 35% | 85% | 2.4x improvement |
199
- | Supplier inquiries | 50/week | 10/week | 80% reduction |
200
-
201
- > "At 10,000 invoices/month, you're looking at $105,000 monthly savings - over $1.2M per year."
202
-
203
- **Ask:** "What would your team do with 10,000 hours per month freed up?"
204
-
205
- ---
206
-
207
- ### **Act 5: Next Steps (1 min)**
208
-
209
- > "Here's how we typically get started:"
210
-
211
- 1. **Pilot (2-4 weeks)** - Run Ema on one invoice type or vendor
212
- 2. **Validate** - Measure accuracy, time savings, user feedback
213
- 3. **Expand** - Roll out to full AP workflow
214
- 4. **Optimize** - Add more automation, approvals, integrations
215
-
216
- > "Most customers see ROI within the pilot period."
217
-
218
- **Ask:** "Would you like to run a pilot with [100/500/1000] of your invoices?"
219
-
220
- ---
221
-
222
- ## Objection Handling
223
-
224
- | Objection | Response |
225
- |-----------|----------|
226
- | "We already have OCR" | "OCR extracts text. Ema understands context, validates against your systems, and takes action. It's the difference between reading and doing." |
227
- | "Our invoices are too complex" | "We handle multi-page, multi-currency, handwritten invoices. Can I see a sample of your trickiest invoice?" |
228
- | "Security concerns" | "Ema runs in your environment or our SOC 2 certified cloud. Credentials are stored in your vault, not in workflows. Full audit logging." |
229
- | "We need IT approval" | "Ema is no-code. AP can configure it directly. IT just needs to approve the Coupa API connection - same as any integration." |
230
- | "What about exceptions?" | "Exceptions route to humans. You set the rules: dollar threshold, new vendors, mismatches. AI handles the 80%, humans handle the 20%." |
231
- | "Implementation timeline?" | "Most customers are live in 2-4 weeks. No ERP changes required. We connect via API." |
232
- | "What if the AI makes mistakes?" | "Every action is logged and reversible. You can add approval gates at any step. Start conservative, automate more as you build trust." |
233
-
234
- ---
235
-
236
- ## Demo Variants
237
-
238
- | Audience | Focus On | Skip |
239
- |----------|----------|------|
240
- | **CFO** | ROI numbers, working capital, audit/compliance | Technical details |
241
- | **AP Manager** | Day-to-day workflow, exception handling, team enablement | Integration details |
242
- | **IT/Security** | Architecture, security, API, audit trail | ROI details |
243
- | **Procurement** | Supplier experience, PO validation, spend visibility | AP workflow |
244
-
245
- ---
246
-
247
- ## Leave-Behinds
248
-
249
- 1. **ROI Calculator** - Excel with their numbers
250
- 2. **Architecture Diagram** - How Ema connects to their systems
251
- 3. **Sample Validation Report** - What Ema checks on each invoice
252
- 4. **Customer Case Study** - Similar company, similar results
253
-
254
- ---
255
-
256
- ## Success Metrics to Track
257
-
258
- | Metric | Baseline | Target |
259
- |--------|----------|--------|
260
- | Invoices processed/day | ___ | +300% |
261
- | Average processing time | ___ min | <5 min |
262
- | First-pass match rate | ___% | >85% |
263
- | Supplier inquiry volume | ___ | -80% |
264
- | Late payment rate | ___% | <2% |
265
- | Cost per invoice | $___ | <$2 |
266
-
267
- ---
268
-
269
- ## Tags
270
-
271
- `demo-kit` `ap-automation` `coupa` `invoice-processing` `finance`