{"uid":"cap_mImOyXw2jypWtg5Kingvw","slug":"brainiac-local-lead-operations-record-normalize-7be431cb","name":"BRAINIAC Local Lead Operations – Record Normalize","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/local-lead-operations/record-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","maxLength":200000},"asOf":{"type":"string","maxLength":40},"file":{"type":"object","required":["mediaType","fileBase64"],"properties":{"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["text/plain","text/csv","application/json"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000},"text":{"type":"string","maxLength":200000},"calls":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","maxLength":40},"id":{"type":"string","maxLength":80},"leadId":{"type":"string","maxLength":80},"missed":{"type":"boolean"},"status":{"type":"string","maxLength":80},"duration":{"type":"number","maximum":86400,"minimum":0},"direction":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":400},"leads":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":160},"email":{"type":"string","maxLength":160},"phone":{"type":"string","maxLength":40},"value":{"type":"number","maximum":1000000000,"minimum":0},"source":{"type":"string","maxLength":120},"status":{"type":"string","maxLength":80},"received":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":200},"quotes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"sent":{"type":"string","maxLength":40},"amount":{"type":"number","maximum":1000000000,"minimum":0},"leadId":{"type":"string","maxLength":80},"outcome":{"type":"string","maxLength":80},"outcomeAt":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":200},"sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":160},"leads":{"type":"number","maximum":1000000000,"minimum":0},"converted":{"type":"number","maximum":1000000000,"minimum":0}},"additionalProperties":false},"maxItems":80},"enquiries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"text":{"type":"string","maxLength":2000},"leadId":{"type":"string","maxLength":80},"channel":{"type":"string","maxLength":80},"received":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":200},"minSample":{"type":"integer","maximum":100000,"minimum":1},"responses":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","maxLength":40},"id":{"type":"string","maxLength":80},"leadId":{"type":"string","maxLength":80},"channel":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":400},"quoteLimitDays":{"type":"number","maximum":365,"minimum":0},"responseLimitHours":{"type":"number","maximum":720,"minimum":0}}},"responseSchema":{"type":"json","example":{"calls":[{"at":"2026-11-01T09:05:00.000Z","id":"C-1","leadId":"L-1","missed":true,"status":"missed","duration":0,"direction":"inbound","durationSupplied":true}],"leads":[{"id":"L-1","name":"Sam","email":"sam@example.com","phone":"555-0100","value":450,"source":"google","status":"open","received":"2026-11-01T09:00:00.000Z","callCount":1,"quoteCount":0,"enquiryCount":0,"responseCount":1,"valueSupplied":true}],"quotes":[],"status":"normalized","callMade":false,"findings":[{"code":"unlabeled_line","kind":"ignored","detail":"Lines without a recognized label were not read and their text was not copied.","subject":""}],"checkedAt":"2026-11-04T17:00:00.000Z","enquiries":[],"responses":[{"at":"2026-11-01T12:00:00.000Z","id":"R-1","leadId":"L-1","channel":"sms"}],"crmAccessed":false,"limitations":["Leads, calls, quotes, responses, and enquiries are copied only from labeled fields supplied by the caller.","Response delays and quote ages use only supplied timestamps. Missing times are not invented.","Priority uses transparent rules on those records. It does not predict conversion.","No message is sent, no call is placed, and no CRM account is accessed.","An unconverted quote means no outcome was recorded in the request, not that the job is lost forever."],"messageSent":false,"conversionClaimed":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ydCdmfr9xUb7X9yOIoFHT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes messy lead, call, quote, response, and enquiry records into a clean, structured CRM-ready dataset with enriched counts and prioritization metadata.","exampleAgentPrompt":"Normalize my lead and call records — I have a CSV with up to 150 leads and 300 calls, each with IDs, statuses, timestamps, and values, and I need them cleaned and enriched with call counts, quote counts, and response counts as of today.","exampleUseCases":[{"title":"Cleaning messy CRM import data","prompt":"I have a CSV export from our old CRM with about 80 leads and their associated calls and quotes — the formatting is inconsistent and some fields are missing. Can you normalize it all into a clean structured format so I can review priority and counts before importing?"},{"title":"Structuring inbound lead call logs","prompt":"We just exported 200 inbound call records and 100 lead entries from our phone system as JSON. Can you normalize these into a standard structure with call counts per lead and flag any records that couldn't be parsed?"},{"title":"Preparing pipeline data for weekly review","prompt":"I need to get our sales pipeline ready for the Monday standup — here's a JSON blob of leads, quotes sent, and responses received this month. Can you normalize everything so each lead shows its quote count, call count, and response count as of today?"}],"resultDescription":"Returns a normalized dataset containing arrays of cleaned lead, call, quote, response, and enquiry records with enriched per-lead counts (callCount, quoteCount, enquiryCount, responseCount), a status field ('normalized'), a checkedAt timestamp, a list of findings describing any ignored or problematic lines, and a limitations list clarifying what the service did and did not do (e.g. no messages sent, no CRM accessed).","failureModes":["Oversized input: CSV or JSON exceeding 200,000 characters or file base64 exceeding 12,000,000 characters returns a validation error","Too many records: more than 200 leads, 200 quotes, or 400 calls triggers a maxItems validation error","Unrecognized fields: data with no recognized labels is ignored and reported in findings with code 'unlabeled_line'","Missing required file fields: omitting mediaType or fileBase64 when using the file input returns a schema validation error","Malformed timestamps: unparseable date strings in 'at', 'received', or 'sent' fields may result in missing time-based enrichments","Ambiguous input format: supplying conflicting combinations of csv, json, text, and file fields may cause partial parsing"],"whenToPreferThis":"Choose this endpoint when you have raw, heterogeneous lead and call data from multiple sources (CSV exports, JSON blobs, plain text) that needs to be standardized into a unified structure before analysis or CRM import. It is ideal when you need per-lead enrichment (call counts, quote counts, response counts) computed transparently from supplied records without any external API calls, message sending, or CRM access. Prefer it over building your own normalization logic when the data fits within the size limits (200 leads, 400 calls, 200 quotes) and you want a consistent, auditable output with explicit findings and limitations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:36:55.931Z","isFirstParty":false,"canonicalSlug":"brainiac-local-lead-operations-record-normalize-7be431cb"}