v4

latestOpenAPI 3.1.02026-08-03427198448.4 KB
Business Intelligence

Import From Google Workspace

Create a background job that imports existing clients and active deals from Gmail + Calendar.

Triggered by the React signup flow alongside business_intelligence_report and voice_profile_refresh. Job creates a thread named 'Importing from Inbox + Calendar' and runs the add-clients-and-deals-from-google-workspace skill autonomously.

post/api/business-intelligence/import-from-google-workspace

Query parameters

user_idstring nullable
org_idstring nullable

Request body

lookback_days_calendarinteger

Days of Google Calendar history to scan for meeting attendees.

lookback_days_inbox_clientinteger

Days of Gmail history to scan for paid-client signals (invoices, payments, contracts).

lookback_days_inbox_leadinteger

Days of Gmail history to scan for active-lead signals (proposals, intros, outreach).

max_recordsinteger

Maximum records to create in a single import run. Hard cap to bound cost and noise.

Response

Successful Response

job_idstring required

The background job ID for tracking report generation

statusstring

Initial job status