chore: add campaign id in render context for webhook

This commit is contained in:
Abhishek Kumar 2026-05-12 19:32:41 +05:30
parent 7f0dac1ad5
commit 7249a9f8ed
3 changed files with 9 additions and 0 deletions

View file

@ -1,6 +1,7 @@
"""Execute integrations (QA analysis, webhooks) after workflow run completion."""
import random
from datetime import UTC, datetime
from typing import Any, Dict, Optional
import httpx
@ -316,6 +317,8 @@ def _build_render_context(
"workflow_run_name": workflow_run.name,
"workflow_id": workflow_run.workflow_id,
"workflow_name": workflow_run.workflow.name if workflow_run.workflow else None,
"campaign_id": workflow_run.campaign_id,
"call_time": (workflow_run.created_at or datetime.now(UTC)).isoformat(),
# Nested contexts
"initial_context": workflow_run.initial_context or {},
"gathered_context": workflow_run.gathered_context or {},