mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-16 08:25:18 +02:00
chore: add campaign id in render context for webhook
This commit is contained in:
parent
7f0dac1ad5
commit
7249a9f8ed
3 changed files with 9 additions and 0 deletions
|
|
@ -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 {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue