export_audit_report
Render findings — from a prospect audit OR a normal site audit — into the same branded, Deloitte-style document real XeoRank audits use, saved as a Google Doc in YOUR OWN Drive (not the prospect's), and get back a shareable link — open it, download as PDF from Google Docs' own File > Download menu, or share it directly. Requires your own account to have Google connected with Drive permission; if not, this returns a clear one-line fix rather than a raw error. Pass report_data as a JSON object built from what get_prospect_audit (or the site audit tools) returned, PLUS your own writing: set report_data.executive_narrative to the client-facing prose you wrote (personalize it — match style_reference if one was given), and optionally report_data.agency_appendix for internal-only delivery notes that never show up in a client-facing export (omit it for the client version, include it for the agency's own copy — same data, two calls, two links). Costs one doc-export credit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The audited URL/domain, shown on the report cover | |
| site_id | No | Optional — the prospect audit's site_id, to file this export against it | |
| report_data | Yes | JSON object: {domain, scores:{seo,aeo,geo}, cwv, aeo_signals, geo_signals, recommendations, executive_narrative, agency_appendix?, ...}. Unknown/omitted keys degrade to "N/A" in the rendered sections rather than erroring. |