invoice-generation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInvoice Generation
发票生成
Generate professional invoices, receipts, quotes, and financial documents using each::sense. This skill creates visually appealing, accurate business documents optimized for printing and digital delivery.
使用each::sense生成专业发票、收据、报价单及财务文档。该技能可创建视觉美观、准确的商业文档,优化适配打印与数字交付。
Features
功能特性
- Invoices: Professional invoices with line items, taxes, and totals
- Receipts: Transaction receipts for completed payments
- Quotes/Estimates: Pre-sale quotes with validity periods
- Credit Notes: Refund and adjustment documents
- Purchase Orders: Procurement and ordering documents
- Multi-Currency: Support for various currencies and formats
- Tax Calculations: Automatic VAT, GST, sales tax handling
- Company Branding: Custom logos, colors, and layouts
- Recurring Templates: Standardized templates for repeat billing
- 发票:包含明细项、税费及总计的专业发票
- 收据:已完成付款的交易凭证
- 报价单/估算单:带有有效期的售前报价
- 贷项通知单:退款及调整凭证
- 采购订单:采购与订购凭证
- 多币种支持:兼容多种货币及格式
- 税费计算:自动处理VAT、GST及销售税
- 企业品牌化:自定义logo、颜色及布局
- 重复计费模板:用于重复计费的标准化模板
Quick Start
快速开始
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate a professional invoice for web development services, $2,500 total, due in 30 days"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate a professional invoice for web development services, $2,500 total, due in 30 days"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'Document Types & Use Cases
文档类型及使用场景
| Document Type | Use Case | Key Elements |
|---|---|---|
| Invoice | Billing for goods/services | Line items, tax, due date, payment terms |
| Receipt | Payment confirmation | Transaction ID, payment method, timestamp |
| Quote/Estimate | Pre-sale pricing | Validity period, optional items, terms |
| Credit Note | Refunds/adjustments | Reference to original invoice, reason |
| Purchase Order | Procurement | Vendor details, shipping info, approval |
| Proforma Invoice | Pre-shipment | Similar to invoice, marked as proforma |
| 文档类型 | 使用场景 | 核心要素 |
|---|---|---|
| 发票 | 商品/服务计费 | 明细项、税费、到期日、付款条款 |
| 收据 | 付款确认 | 交易ID、付款方式、时间戳 |
| 报价单/估算单 | 售前定价 | 有效期、可选项目、条款 |
| 贷项通知单 | 退款/调整 | 关联原发票、原因 |
| 采购订单 | 采购业务 | 供应商详情、配送信息、审批 |
| 形式发票 | 发货前凭证 | 与发票类似,标注为形式发票 |
Use Case Examples
使用场景示例
1. Basic Invoice Generation
1. 基础发票生成
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a simple invoice: Invoice #INV-2024-001, From: Acme Corp (123 Business St, NY 10001), To: Client Inc (456 Customer Ave, LA 90001), Service: Consulting Services - $1,500. Due date: March 15, 2024. Clean, professional design."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a simple invoice: Invoice #INV-2024-001, From: Acme Corp (123 Business St, NY 10001), To: Client Inc (456 Customer Ave, LA 90001), Service: Consulting Services - $1,500. Due date: March 15, 2024. Clean, professional design."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'2. Detailed Invoice with Line Items
2. 带明细项的详细发票
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate a detailed invoice with multiple line items: Invoice #INV-2024-042 From: Digital Solutions LLC To: TechStart Inc Line items: 1) Website Development - 40 hours @ $150/hr = $6,000 2) UI/UX Design - 20 hours @ $125/hr = $2,500 3) SEO Setup - flat rate $800 4) Hosting (Annual) - $480 Subtotal, 8% tax, and grand total. Payment terms: Net 30. Include bank transfer details section."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate a detailed invoice with multiple line items: Invoice #INV-2024-042 From: Digital Solutions LLC To: TechStart Inc Line items: 1) Website Development - 40 hours @ $150/hr = $6,000 2) UI/UX Design - 20 hours @ $125/hr = $2,500 3) SEO Setup - flat rate $800 4) Hosting (Annual) - $480 Subtotal, 8% tax, and grand total. Payment terms: Net 30. Include bank transfer details section."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'3. Invoice with Company Branding
3. 带企业品牌化的发票
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a branded invoice for a creative agency. Company: Pixel Perfect Studios, use modern minimalist design with a navy blue and gold color scheme. Include space for logo at top left. Invoice #PP-2024-089 to MediaMax Corp. Services: Brand Identity Package $4,500, Social Media Templates $1,200, Brand Guidelines Document $800. Total $6,500. Due in 14 days. Include Pay Now button placeholder and QR code area for payment link."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max",
"image_urls": ["https://example.com/company-logo.png"]
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a branded invoice for a creative agency. Company: Pixel Perfect Studios, use modern minimalist design with a navy blue and gold color scheme. Include space for logo at top left. Invoice #PP-2024-089 to MediaMax Corp. Services: Brand Identity Package $4,500, Social Media Templates $1,200, Brand Guidelines Document $800. Total $6,500. Due in 14 days. Include Pay Now button placeholder and QR code area for payment link."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max",
"image_urls": ["https://example.com/company-logo.png"]
}'4. Receipt Generation
4. 收据生成
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate a payment receipt: Receipt #REC-78432 From: Cloud Services Pro To: Johnson Enterprises Payment received: $3,250.00 Payment method: Credit Card (Visa ending 4242) Transaction ID: TXN-2024-02-15-98765 Date: February 15, 2024 at 2:34 PM For: Invoice #INV-2024-038 (Annual SaaS Subscription) Status: PAID in full. Include a thank you message and support contact."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate a payment receipt: Receipt #REC-78432 From: Cloud Services Pro To: Johnson Enterprises Payment received: $3,250.00 Payment method: Credit Card (Visa ending 4242) Transaction ID: TXN-2024-02-15-98765 Date: February 15, 2024 at 2:34 PM For: Invoice #INV-2024-038 (Annual SaaS Subscription) Status: PAID in full. Include a thank you message and support contact."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'5. Quote/Estimate Generation
5. 报价单/估算单生成
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a project quote/estimate: Quote #QT-2024-015 From: BuildRight Construction To: Greenfield Properties Project: Office Renovation - 2nd Floor Line items: 1) Demolition and prep - $8,500 2) Electrical work - $12,000 3) Plumbing updates - $6,500 4) Flooring (800 sq ft) - $9,600 5) Painting and finishing - $4,200 6) Project management (10%) - $4,080 Total estimate: $44,880 Valid for 30 days. Include terms: 50% deposit required, final payment on completion. Add signature line for acceptance."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a project quote/estimate: Quote #QT-2024-015 From: BuildRight Construction To: Greenfield Properties Project: Office Renovation - 2nd Floor Line items: 1) Demolition and prep - $8,500 2) Electrical work - $12,000 3) Plumbing updates - $6,500 4) Flooring (800 sq ft) - $9,600 5) Painting and finishing - $4,200 6) Project management (10%) - $4,080 Total estimate: $44,880 Valid for 30 days. Include terms: 50% deposit required, final payment on completion. Add signature line for acceptance."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'6. Multi-Currency Invoice
6. 多币种发票
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate an international invoice in Euros: Invoice #EU-2024-0023 From: TechGlobal GmbH (Berlin, Germany, VAT: DE123456789) To: Societe Digitale SARL (Paris, France, VAT: FR987654321) Services: Software License (Enterprise) - 12 months @ 850 EUR/month = 10,200 EUR Implementation Services - 3,500 EUR Training (Remote) - 1,800 EUR Subtotal: 15,500 EUR VAT (19%): 2,945 EUR Total: 18,445 EUR Payment: SEPA transfer, IBAN: DE89 3704 0044 0532 0130 00, BIC: COBADEFFXXX Due: 30 days. Reverse charge note for intra-EU B2B."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate an international invoice in Euros: Invoice #EU-2024-0023 From: TechGlobal GmbH (Berlin, Germany, VAT: DE123456789) To: Societe Digitale SARL (Paris, France, VAT: FR987654321) Services: Software License (Enterprise) - 12 months @ 850 EUR/month = 10,200 EUR Implementation Services - 3,500 EUR Training (Remote) - 1,800 EUR Subtotal: 15,500 EUR VAT (19%): 2,945 EUR Total: 18,445 EUR Payment: SEPA transfer, IBAN: DE89 3704 0044 0532 0130 00, BIC: COBADEFFXXX Due: 30 days. Reverse charge note for intra-EU B2B."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'7. Invoice with Tax Calculations
7. 带税费计算的发票
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create an invoice with complex tax breakdown: Invoice #TAX-2024-156 From: Retail Solutions Inc (GST: 12-3456789) To: Shop & Save Stores Line items with different tax rates: 1) POS Hardware (5 units @ $899) = $4,495 - Standard rate 10% GST 2) Software License = $2,400 - Standard rate 10% GST 3) Installation Services = $1,200 - Standard rate 10% GST 4) Training Materials (books) = $350 - Zero rated 5) Extended Warranty = $600 - Exempt Subtotal: $9,045 GST Summary: Standard rated (10%): $8,095 x 10% = $809.50 Zero rated: $350 x 0% = $0 Exempt: $600 Total GST: $809.50 Grand Total: $9,854.50 Include ABN and tax invoice statement."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create an invoice with complex tax breakdown: Invoice #TAX-2024-156 From: Retail Solutions Inc (GST: 12-3456789) To: Shop & Save Stores Line items with different tax rates: 1) POS Hardware (5 units @ $899) = $4,495 - Standard rate 10% GST 2) Software License = $2,400 - Standard rate 10% GST 3) Installation Services = $1,200 - Standard rate 10% GST 4) Training Materials (books) = $350 - Zero rated 5) Extended Warranty = $600 - Exempt Subtotal: $9,045 GST Summary: Standard rated (10%): $8,095 x 10% = $809.50 Zero rated: $350 x 0% = $0 Exempt: $600 Total GST: $809.50 Grand Total: $9,854.50 Include ABN and tax invoice statement."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'8. Recurring Invoice Template
8. 重复计费发票模板
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design a recurring monthly invoice template: Invoice #[AUTO-NUMBER] From: CloudHost Pro Services To: [CLIENT NAME] Billing Period: [MONTH YEAR] Recurring Services: 1) Dedicated Server Hosting - $299/month 2) Managed Backup Service - $49/month 3) SSL Certificate - $9/month 4) Technical Support (Business) - $149/month Monthly Total: $506 Mark as RECURRING INVOICE. Show billing cycle: Monthly, auto-renews. Next billing date field. Include: Update payment method link, Cancel subscription link. Modern SaaS-style design with clean typography."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design a recurring monthly invoice template: Invoice #[AUTO-NUMBER] From: CloudHost Pro Services To: [CLIENT NAME] Billing Period: [MONTH YEAR] Recurring Services: 1) Dedicated Server Hosting - $299/month 2) Managed Backup Service - $49/month 3) SSL Certificate - $9/month 4) Technical Support (Business) - $149/month Monthly Total: $506 Mark as RECURRING INVOICE. Show billing cycle: Monthly, auto-renews. Next billing date field. Include: Update payment method link, Cancel subscription link. Modern SaaS-style design with clean typography."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'9. Credit Note/Refund Document
9. 贷项通知单/退款凭证
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate a credit note: Credit Note #CN-2024-008 From: Premium Supplies Co To: Office Depot Partners Original Invoice: #INV-2024-892 dated January 10, 2024 Reason for credit: Goods returned - defective items Credit items: 1) Ergonomic Chair Model X (2 units @ $450) = -$900 2) Return shipping covered = -$45 Total Credit: $945.00 Original invoice total: $2,340 Remaining balance due: $1,395 Note: Credit has been applied to your account. Future invoices will reflect this adjustment. Authorized by: [Signature line]. Use red accent color to indicate credit/refund."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate a credit note: Credit Note #CN-2024-008 From: Premium Supplies Co To: Office Depot Partners Original Invoice: #INV-2024-892 dated January 10, 2024 Reason for credit: Goods returned - defective items Credit items: 1) Ergonomic Chair Model X (2 units @ $450) = -$900 2) Return shipping covered = -$45 Total Credit: $945.00 Original invoice total: $2,340 Remaining balance due: $1,395 Note: Credit has been applied to your account. Future invoices will reflect this adjustment. Authorized by: [Signature line]. Use red accent color to indicate credit/refund."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'10. Purchase Order Generation
10. 采购订单生成
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a purchase order: PO #PO-2024-0456 From (Buyer): MegaCorp Industries, 789 Corporate Blvd, Chicago IL 60601, Purchasing Dept Contact: Jane Smith, jane@megacorp.com To (Vendor): Industrial Supplies Ltd, 321 Warehouse Way, Detroit MI 48201 Ship To: MegaCorp Warehouse B, 456 Distribution Dr, Chicago IL 60602 Order Items: 1) Steel Brackets SKU-SB100 - 500 units @ $2.50 = $1,250 2) Mounting Hardware Kit SKU-MH200 - 200 units @ $8.00 = $1,600 3) Safety Cables SKU-SC300 - 1000 units @ $1.25 = $1,250 4) Industrial Adhesive SKU-IA400 - 50 gallons @ $45 = $2,250 Subtotal: $6,350 Shipping: $285 Total: $6,635 Required delivery date: March 1, 2024 Payment terms: Net 45 Special instructions: Deliver to loading dock B, call 30 min before arrival. Include approval signature lines for Requester, Manager, and Purchasing."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a purchase order: PO #PO-2024-0456 From (Buyer): MegaCorp Industries, 789 Corporate Blvd, Chicago IL 60601, Purchasing Dept Contact: Jane Smith, jane@megacorp.com To (Vendor): Industrial Supplies Ltd, 321 Warehouse Way, Detroit MI 48201 Ship To: MegaCorp Warehouse B, 456 Distribution Dr, Chicago IL 60602 Order Items: 1) Steel Brackets SKU-SB100 - 500 units @ $2.50 = $1,250 2) Mounting Hardware Kit SKU-MH200 - 200 units @ $8.00 = $1,600 3) Safety Cables SKU-SC300 - 1000 units @ $1.25 = $1,250 4) Industrial Adhesive SKU-IA400 - 50 gallons @ $45 = $2,250 Subtotal: $6,350 Shipping: $285 Total: $6,635 Required delivery date: March 1, 2024 Payment terms: Net 45 Special instructions: Deliver to loading dock B, call 30 min before arrival. Include approval signature lines for Requester, Manager, and Purchasing."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'Multi-Turn Invoice Iteration
多轮发票迭代
Use to refine invoices across multiple requests:
session_idbash
undefined使用在多次请求中优化发票:
session_idbash
undefinedInitial invoice creation
Initial invoice creation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create an invoice for marketing services, $5,000 total from Creative Agency to StartupXYZ"}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create an invoice for marketing services, $5,000 total from Creative Agency to StartupXYZ"}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create an invoice for marketing services, $5,000 total from Creative Agency to StartupXYZ"}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create an invoice for marketing services, $5,000 total from Creative Agency to StartupXYZ"}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
Add more line items
Add more line items
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Break that down into: Strategy $2,000, Content Creation $1,800, Ad Management $1,200. Add 7% sales tax."}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Break that down into: Strategy $2,000, Content Creation $1,800, Ad Management $1,200. Add 7% sales tax."}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Break that down into: Strategy $2,000, Content Creation $1,800, Ad Management $1,200. Add 7% sales tax."}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Break that down into: Strategy $2,000, Content Creation $1,800, Ad Management $1,200. Add 7% sales tax."}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
Update styling
Update styling
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Update the design to use a green and white color scheme, add payment instructions for Stripe."}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Update the design to use a green and white color scheme, add payment instructions for Stripe."}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
undefinedcurl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Update the design to use a green and white color scheme, add payment instructions for Stripe."}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Update the design to use a green and white color scheme, add payment instructions for Stripe."}], "model": "eachsense/beta", "stream": true, "session_id": "invoice-project-001" }'
undefinedBatch Document Generation
批量文档生成
Generate multiple related documents:
bash
undefined生成多个相关文档:
bash
undefinedGenerate invoice
Generate invoice
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create invoice #INV-001 for Project Alpha, $10,000 consulting fee to Acme Corp"}], "model": "eachsense/beta", "stream": true, "session_id": "project-alpha-docs", "mode": "eco" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create invoice #INV-001 for Project Alpha, $10,000 consulting fee to Acme Corp"}], "model": "eachsense/beta", "stream": true, "session_id": "project-alpha-docs", "mode": "eco" }'
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create invoice #INV-001 for Project Alpha, $10,000 consulting fee to Acme Corp"}], "model": "eachsense/beta", "stream": true, "session_id": "project-alpha-docs", "mode": "eco" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create invoice #INV-001 for Project Alpha, $10,000 consulting fee to Acme Corp"}], "model": "eachsense/beta", "stream": true, "session_id": "project-alpha-docs", "mode": "eco" }'
Generate matching receipt after payment
Generate matching receipt after payment
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Now create a matching receipt for that invoice, payment received via wire transfer today"}], "model": "eachsense/beta", "stream": true, "session_id": "project-alpha-docs", "mode": "eco" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Now create a matching receipt for that invoice, payment received via wire transfer today"}], "model": "eachsense/beta", "stream": true, "session_id": "project-alpha-docs", "mode": "eco" }'
undefinedcurl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Now create a matching receipt for that invoice, payment received via wire transfer today"}], "model": "eachsense/beta", "stream": true, "session_id": "project-alpha-docs", "mode": "eco" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Now create a matching receipt for that invoice, payment received via wire transfer today"}], "model": "eachsense/beta", "stream": true, "session_id": "project-alpha-docs", "mode": "eco" }'
undefinedBest Practices
最佳实践
Invoice Design
发票设计
- Clear hierarchy: Company info at top, line items in middle, totals prominent
- Readable fonts: Use professional, legible typography
- Adequate spacing: Avoid cluttered layouts
- Contact info: Always include how to reach you for questions
- 清晰层级:公司信息置于顶部,明细项在中间,总计突出显示
- 易读字体:使用专业、清晰的字体
- 充足间距:避免布局杂乱
- 联系信息:始终提供咨询联系方式
Required Information
必填信息
- Unique invoice number: Sequential or coded system
- Issue and due dates: Clear payment timeline
- Full business details: Names, addresses, tax IDs
- Itemized charges: Description, quantity, rate, amount
- Payment instructions: Bank details, accepted methods
- 唯一发票编号:连续或编码系统
- 开具日期与到期日:明确付款时间线
- 完整企业信息:名称、地址、税号
- 分项收费:描述、数量、单价、金额
- 付款说明:银行详情、支持的付款方式
Legal Compliance
合规要求
- Include tax registration numbers where required
- Use correct tax rates for jurisdiction
- Mark documents appropriately (Invoice, Quote, Proforma)
- Include required legal disclaimers
- 按要求包含税务登记号
- 使用符合管辖区域的正确税率
- 正确标注文档类型(发票、报价单、形式发票)
- 包含必要的法律声明
Prompt Tips for Financial Documents
财务文档提示技巧
When generating invoices and financial documents, include:
- Document type: Invoice, receipt, quote, credit note, PO
- Parties: Full details for sender and recipient
- Items/Services: Descriptions, quantities, rates
- Calculations: Tax rates, discounts, totals
- Terms: Payment due date, validity period
- Branding: Colors, style preferences, logo
- Additional fields: PO numbers, project references, notes
生成发票及财务文档时,请包含以下信息:
- 文档类型:发票、收据、报价单、贷项通知单、采购订单
- 交易双方:发送方与接收方的完整信息
- 商品/服务:描述、数量、单价
- 计算项:税率、折扣、总计
- 条款:付款到期日、有效期
- 品牌化:颜色、风格偏好、logo
- 附加字段:采购订单编号、项目参考、备注
Example Prompt Structure
提示词示例结构
"Create a [document type] #[number]
From: [company name and details]
To: [client name and details]
Items: [list with quantities and prices]
Tax: [rate and type]
Terms: [payment terms]
Style: [design preferences]""创建一份[文档类型] #[编号]
来自:[公司名称及详情]
发送至:[客户名称及详情]
项目:[含数量与价格的列表]
税费:[税率及类型]
条款:[付款条款]
风格:[设计偏好]"Mode Selection
模式选择
Ask your users before generating:
"Do you want fast & cheap, or high quality?"
| Mode | Best For | Speed | Quality |
|---|---|---|---|
| Final client-facing invoices, branded documents | Slower | Highest |
| Draft invoices, internal documents, bulk generation | Faster | Good |
生成前请询问用户:
"您需要快速低成本,还是高质量?"
| 模式 | 适用场景 | 速度 | 质量 |
|---|---|---|---|
| 最终面向客户的发票、品牌化文档 | 较慢 | 最高 |
| 发票草稿、内部文档、批量生成 | 较快 | 良好 |
Error Handling
错误处理
| Error | Cause | Solution |
|---|---|---|
| Insufficient balance | Top up at eachlabs.ai |
| Content policy violation | Prohibited content | Adjust prompt to comply with policies |
| Timeout | Complex generation | Set client timeout to minimum 10 minutes |
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 余额不足 | 在eachlabs.ai进行充值 |
| Content policy violation | 包含违禁内容 | 调整提示词以符合政策要求 |
| Timeout | 生成过程复杂 | 将客户端超时设置为至少10分钟 |
Related Skills
相关技能
- - Core API documentation
each-sense - - General document creation
document-generation - - Business card design
business-card-generation - - Company letterhead design
letterhead-generation
- - 核心API文档
each-sense - - 通用文档创建
document-generation - - 名片设计
business-card-generation - - 公司信笺设计
letterhead-generation