What works automatically
Caller recognition is on for every shop with a phone number. What your AI finds depends on your platform:
You see the same summary for your platform on the Phone page under Caller recognition.
Connect your own customer data
Connect your own endpoint when your platform cannot recognize every caller, or when you know more about your customers than your shop platform does, such as loyalty status, a CRM record or orders from another system.- Build an HTTPS endpoint that follows the contract below.
- On the Phone page, open Caller recognition and click Set up.
- Enter your endpoint URL, choose
POSTorGET, and pick the login your endpoint needs. - Enter a phone number and click Test to see your endpoint’s answer and exactly what your AI receives.
- Click Save.
Request
Molin calls your endpoint as soon as a call arrives, with the method you choose:POST (the default) or GET.
A POST request sends the caller in a JSON body:
GET request sends the same values in the link:
callerNumberis the number the call comes from, in international format. It comes from the phone line, never from what the caller says, so a caller cannot ask about someone else.
Login
Choose how Molin proves the request comes from it, with the same options as custom actions:
The password, key or token stays on our server and is never shown again, not even to the AI. Changing the endpoint address or the login type asks you to enter it again.
Response
Answer with JSON in the same shape as the Personalization API your website uses:userDatais a flat object of text, number, true/false ornullvalues. Nested objects and lists are not accepted, put those incustomInstructionsas text.userData.nameis the name your AI greets the caller by.customInstructionsis text your AI follows for this call, up to 5,000 characters.- Both fields are optional. Answer
{}or a404status when you don’t know the caller. - Your team sees both on the call’s conversation in the Inbox.
Limits and errors
- Answer within 10 seconds. Your AI picks up the call without waiting, and uses the caller’s name in its greeting only if your answer has already arrived. A later answer is still used for the rest of the call.
- The response must be under 8,000 characters.
- If your endpoint is down, slow, or answers with anything other than the format above, the call goes on as if the caller were unknown.
- A call that reconnects after a brief interruption on our side sends the request again, so answer the same number the same way each time.
If your calls reach Molin through your own switchboard or a forwarding service, the caller number may be your switchboard’s number for every call. Your endpoint then receives that number, so answer
{} for it instead of returning a customer.