diff --git a/frontend/src/features/agents/components/AgentDrillDown.js b/frontend/src/features/agents/components/AgentDrillDown.js index 62be952..61c96a8 100644 --- a/frontend/src/features/agents/components/AgentDrillDown.js +++ b/frontend/src/features/agents/components/AgentDrillDown.js @@ -616,9 +616,43 @@
URL: - - {`${window.location.origin}/api/v1/agents/${agentId}/webhook?token=${t.webhook_secret}`} - +
+ + {`${window.location.host.includes('localhost') ? 'http://' : 'https://'}${window.location.host}/api/v1/agents/${agentId}/webhook?token=${t.webhook_secret}`} + + {/* Payload Tooltip */} +
+
+ + Interface Documentation +
+ +
+
+ Payload Structure +
+                                                                                            {JSON.stringify({ "prompt": "...custom prompt here..." }, null, 2)}
+                                                                                        
+
+ +
+ CURL Example +
+ curl -X POST "{`${window.location.host.includes('localhost') ? 'http://' : 'https://'}${window.location.host}/api/v1/agents/${agentId}/webhook?token=${t.webhook_secret}`}" \
+       -H "Content-Type: application/json" \
+       -d '{JSON.stringify({ "prompt": "Analyze the log files" })}' +
+
+
+ +
+ 🔒 External systems like GitHub can trigger this by sending their own event JSON. +
+ + {/* Tooltip Arrow */} +
+
+