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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user