whatsapp fixes

This commit is contained in:
debu-2 2026-10-03 00:54:52 +05:30
parent ff01efe4bb
commit 248acba741
5 changed files with 425 additions and 38 deletions

View file

@ -55,7 +55,13 @@ def _explorer_doc_for_template(template: AgentMessageTemplate) -> dict:
"type": "string",
"required": False,
"description": "Report postfix; auto-generated when omitted",
"example": "run-abc123",
"example": "2026-10-03",
},
"report_url": {
"type": "string",
"required": False,
"description": "Full hosted report URL for the WhatsApp button; auto-built when omitted",
"example": "https://urmiai.com/reports/desi-clans-test/2026-10-03",
},
},
"responses": {
@ -66,9 +72,9 @@ def _explorer_doc_for_template(template: AgentMessageTemplate) -> dict:
"template": template.slug,
"to": "919149154337",
"customer_name": "Suyash",
"report_group": "acme-agent-runs",
"report_id": "run-abc123",
"report_url": f"{template.button_url_base or ''}acme-agent-runs/run-abc123",
"report_group": "desi-clans-test",
"report_id": "2026-10-03",
"report_url": "https://urmiai.com/reports/desi-clans-test/2026-10-03",
"wa_message_id": "wamid.HBg...",
"dispatch_id": "00000000-0000-0000-0000-000000000001",
},