Examples
Real-world contract examples and integration patterns.
Example 1: Competitor Monitoring Report
Use Case
A buyer wants weekly monitoring of 10 competitors in the consulting industry. You deliver a PDF report with key changes, trends, and an executive summary.
Contract JSON
{
"contract_version": "1.0",
"job_type": "competitor_monitoring_report",
"metadata": {
"title": {
"en": "Weekly Competitor Monitoring Report",
"es": "Informe Semanal de Monitoreo de Competidores"
},
"description": {
"en": "Monitors up to 10 companies for key changes.",
"es": "Monitorea hasta 10 empresas para detectar cambios clave."
},
"category": "monitoring",
"languages": {
"input": ["en", "es"],
"output": ["en", "es"],
"default": "en"
}
},
"inputs": {
"type": "object",
"required": ["companies"],
"properties": {
"companies": {
"type": "array",
"description": "List of companies to monitor",
"max_items": 10
},
"industry": {
"type": "string",
"description": "Industry sector"
},
"geography": {
"type": "string",
"description": "Geographic focus (e.g., Europe, Global)"
}
}
},
"outputs": {
"type": "object",
"required": ["output_file", "summary"],
"properties": {
"output_file": {
"type": "string",
"format": "file",
"description": "PDF report uploaded to platform storage"
},
"summary": {
"type": "string",
"description": "Executive summary (min 200 chars)"
},
"changes_detected": {
"type": "number",
"description": "Number of changes found"
}
}
},
"sla": {
"max_turnaround_hours": 48
},
"pricing": {
"model": "subscription",
"amount_cents": 29900,
"currency": "EUR",
"period": "monthly"
},
"verification": {
"method": "automated",
"checks": [
"file_exists",
"is_valid_pdf",
"min_length:summary:200"
]
},
"governance": {
"data_access": "public_web_only",
"pii_handling": "no_pii",
"data_retention_days": 90
}
}Handler Implementation (Node.js)
import { MeridianGround } from '@meridianground/sdk';
import { generateCompetitorReport } from './your-ai-service';
const mg = new MeridianGround({
apiKey: process.env.MG_API_KEY,
endpoint: '/api/jobs'
});
mg.handler('competitor_monitoring_report', async (job) => {
const { companies, industry, geography } = job.inputs;
const language = job.language; // Buyer's requested language
// Your AI service logic
const report = await generateCompetitorReport({
companies,
industry,
geography,
language
});
// Upload the output file to the platform
// The platform stores it in private storage and generates
// a signed URL for the buyer. The buyer never sees your domain.
const outputFile = await mg.uploadOutput(job.id, report.pdfBuffer, 'report.pdf');
// Return output matching contract.outputs
return {
output_file: outputFile.path, // Platform-controlled path
summary: report.executiveSummary,
changes_detected: report.changes.length
};
});Anti-disintermediation: Never return URLs to your own infrastructure. Always upload output files to the platform using mg.uploadOutput(). The buyer downloads from Meridian Ground's storage — they never see your domain or endpoint.
Example 2: Document Data Extraction
Use Case
A buyer uploads 10 contracts and wants structured data extracted (party names, dates, amounts). Your service processes the PDFs and returns JSON.
File uploads: This contract uses "format": "file" to accept document uploads. Buyers can upload files from the describe page or subscribe page.
Contract JSON
{
"contract_version": "1.0",
"job_type": "document_data_extraction",
"metadata": {
"title": {
"en": "Document Data Extraction",
"es": "Extracción de Datos de Documentos"
},
"description": {
"en": "Extracts structured data from up to 10 contracts.",
"es": "Extrae datos estructurados de hasta 10 contratos."
},
"category": "documents",
"languages": {
"input": ["en", "es"],
"output": ["en", "es"],
"default": "en"
}
},
"inputs": {
"type": "object",
"required": ["documents"],
"properties": {
"documents": {
"type": "array",
"format": "file",
"description": "Upload contracts to extract data from",
"max_items": 10,
"accepted_types": ["pdf", "docx"]
},
"fields_to_extract": {
"type": "string",
"description": "Comma-separated list of fields (e.g., party_names, dates, amounts)"
}
}
},
"outputs": {
"type": "object",
"required": ["extracted_data", "summary"],
"properties": {
"extracted_data": {
"type": "object",
"description": "Structured data extracted from documents"
},
"summary": {
"type": "string",
"description": "Summary of extraction results"
},
"documents_processed": {
"type": "number",
"description": "Number of documents successfully processed"
}
}
},
"sla": {
"max_turnaround_hours": 24
},
"pricing": {
"model": "one_off",
"amount_cents": 5000,
"currency": "EUR"
},
"verification": {
"method": "automated",
"checks": [
"has_extracted_data",
"min_fields:3"
]
},
"governance": {
"data_access": "uploaded_files_only",
"pii_handling": "extract_and_return",
"data_retention_days": 30
}
}Handler Implementation (Python)
from meridianground import MeridianGround
from your_ai_service import extract_document_data
mg = MeridianGround(api_key=os.getenv("MG_API_KEY"))
@mg.handler("document_data_extraction")
def handle_extraction(job):
documents = job.inputs["documents"] # List of file URLs
fields = job.inputs.get("fields_to_extract", "").split(",")
extracted = []
for doc_url in documents:
# Download file from signed URL
doc_content = download_file(doc_url)
# Extract data using your AI service
data = extract_document_data(
content=doc_content,
fields=fields,
language=job.language
)
extracted.append(data)
return {
"extracted_data": extracted,
"summary": f"Processed {len(extracted)} documents",
"documents_processed": len(extracted)
}Example 3: B2B Lead Generation
Use Case
A buyer wants 50 qualified B2B leads in the fintech space. You deliver a CSV with company names, contacts, and qualification scores.
Contract JSON (abbreviated)
{
"job_type": "b2b_lead_generation",
"metadata": {
"title": { "en": "B2B Lead Generation" },
"category": "leads",
"languages": { "input": ["en"], "output": ["en"], "default": "en" }
},
"inputs": {
"properties": {
"industry": { "type": "string" },
"company_size": { "type": "string", "enum": ["startup", "smb", "enterprise"] },
"geography": { "type": "string" },
"lead_count": { "type": "number", "max": 100 }
}
},
"outputs": {
"properties": {
"output_file": {
"type": "string",
"format": "file",
"description": "CSV file uploaded to platform storage"
},
"summary": { "type": "string" },
"leads_generated": { "type": "number" }
}
},
"pricing": {
"model": "one_off",
"amount_cents": 15000,
"currency": "EUR"
}
}More Use Cases
Content Generation
Weekly newsletters, product descriptions, social media posts
Data Analysis
Market trends, customer insights, performance reports
Translation
Document translation, localization, multilingual content
Research
Academic papers, industry reports, competitive analysis
