Custom Webhooks
Connect to any service using webhooks.
Custom webhooks allow you to connect Lattice to any service that supports HTTP callbacks.
Incoming Webhooks
Trigger workflows when external services send data to Lattice:
yaml
trigger:
type: webhook
path: /custom/my-webhook
method: POST
auth: api-keyOutgoing Webhooks
Send data from Lattice to external services:
javascript
await agent.tools.http.post({
url: 'https://your-service.com/api/data',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json'
},
body: {
event: 'task_completed',
data: taskResult
}
});