Connect viaSocket to Askocto
Use viaSocket to run workflows from Askocto events such as new leads and handoffs, and to call the Askocto API from your flows.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
viaSocket is an automation tool for connecting apps without code. You can connect it to Askocto in two directions: events from Askocto start a flow, and a flow calls the Askocto API. Use it when you want a lead to reach a spreadsheet or a handoff to notify a tool that has no direct integration.
Before you start
- A viaSocket account where you can create flows.
- Workspace Owner or Admin role in Askocto.
- For the API direction, an API key. See Authentication.
Start a flow from an Askocto event
- In viaSocket, create a flow that starts with a webhook trigger and copy its URL.
- In Askocto, open Workspace Settings > Integrations > Webhooks.
- Select Add webhook and paste the URL.
- Choose the events to send, for example
lead.capturedorconversation.handoff. - Select Save and copy the signing secret.
You should see the webhook listed with a recent deliveries view. Trigger an event in the Playground, then check that the flow receives it.
Each delivery is a JSON POST with the headers X-Octo-Event and X-Octo-Signature. The body for lead.captured looks like this.
{
"id": "evt_71f2",
"event": "lead.captured",
"createdAt": "2026-03-14T09:30:00Z",
"data": { "name": "Dana Reyes", "email": "dana@example.com" }
}
Use the event name to route within the flow. The full list is in Webhooks.
Call Askocto from a flow
Add an HTTP request step to the flow.
curl https://api.askocto.co/v2/agents \
-H "Authorization: Bearer oc_live_xxx"
Send the key in the Authorization header as a bearer token, and store it as a secret value in the flow. To start with a read request, list your agents, then move to tickets or contacts.
Warning: An API key acts on the whole workspace. Keep it out of shared flows and rotate it in Settings > API keys if it leaks.
Test it
- Turn the flow on.
- In Test > Playground, run a conversation that captures a lead.
- Check that the flow ran and that the signature matches if the flow verifies it.
Disconnect
Delete the webhook in Workspace Settings > Integrations > Webhooks and turn off the flow. Revoke the API key if you created it only for viaSocket.
Troubleshooting
- The flow does not start. Check the webhook URL and that the events you need are selected.
- Requests return 401. Check the key and the
Authorizationheader. - Deliveries fail. Failed deliveries retry with backoff. Fix the flow, then check the recent deliveries.