Add automatic VoIP call summaries and sync progress checklist.

When a PBX webhook includes recordingUrl or transcript, queue STT and AI to create a call_result note; mark API, bulk SMS, WooCommerce, and VoIP as done and defer online payments.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-27 15:06:41 +03:30
co-authored by Cursor
parent c06c92b333
commit c5c903d4b4
13 changed files with 615 additions and 22 deletions
+18
View File
@@ -3484,6 +3484,14 @@ export interface UpdateVoipConnectionRequest {
enabled?: boolean;
}
export type VoipSummaryStatus =
| "none"
| "pending"
| "processing"
| "done"
| "failed"
| "skipped";
export interface VoipCallLogDto {
id: string;
direction: VoipCallDirection;
@@ -3496,6 +3504,12 @@ export interface VoipCallLogDto {
durationSec: number | null;
startedAt: string;
syncedAt: string;
recordingUrl: string | null;
transcript: string | null;
summary: string | null;
summaryStatus: VoipSummaryStatus | string;
summaryNoteId: string | null;
summaryError: string | null;
}
export interface VoipClickToCallRequest {
@@ -3513,6 +3527,10 @@ export interface VoipWebhookEvent {
startedAt?: string;
endedAt?: string;
durationSec?: number;
/** لینک فایل ضبط (برای خلاصه خودکار) */
recordingUrl?: string;
/** متن آمادهٔ تماس؛ اگر باشد STT رد می‌شود */
transcript?: string;
/** برای سازگاری با فیلدهای رایج دیگر */
caller?: string;
callee?: string;