← All guides Leadlock app · Leadlock

Send caller context from any CRM with the inbound webhook

Use the inbound webhook to look up the caller in your own CRM and send details back so your agent greets them by name.

About 10 minutes

  1. 1

    Open the Voice settings of your agent

    Open your agent and go to Voice. This is where the inbound webhook lives.

  2. 2

    Turn on Inbound webhook

    Find Inbound webhook and turn it on. Use this when you are not on GoHighLevel and want the same caller lookup.

  3. 3

    Enter your webhook URL and timeout

    Put in your webhook URL. Then set the timeout, which is how long Leadlock waits for your endpoint before answering the call.

  4. 4

    Receive the payload Leadlock sends

    When a caller rings, Leadlock posts the caller's number to your URL. Receive it in n8n or a server of your choice.

  5. 5

    Look up the caller in your CRM by number

    Have your workflow make an API request to your CRM with the caller's number as a parameter to get the contact details. Keep your API keys in a .env file, never in the chat.

  6. 6

    Reply with the contact details

    Send the contact details back to Leadlock in your reply as a JSON object. They come back to your agent as dynamic variables at runtime.

  7. 7

    Add the dynamic variables to your prompt

    Use the returned values as dynamic variables in your agent's prompt. Your agent then greets the caller by name and knows what you store for that contact.