Skip to main content
Shops with a Molin phone number: your AI can know who is calling before it says a word. It looks the caller up by the phone number they call from, greets them by name and already knows their recent orders.

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.
  1. Build an HTTPS endpoint that follows the contract below.
  2. On the Phone page, open Caller recognition and click Set up.
  3. Enter your endpoint URL, choose POST or GET, and pick the login your endpoint needs.
  4. Enter a phone number and click Test to see your endpoint’s answer and exactly what your AI receives.
  5. Click Save.
From then on, every incoming call sends one request to your endpoint.

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:
A GET request sends the same values in the link:
  • callerNumber is 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:
  • userData is a flat object of text, number, true/false or null values. Nested objects and lists are not accepted, put those in customInstructions as text.
  • userData.name is the name your AI greets the caller by.
  • customInstructions is text your AI follows for this call, up to 5,000 characters.
  • Both fields are optional. Answer {} or a 404 status 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.

Example endpoint

A minimal Node.js endpoint with no dependencies:

Look things up during the call

To let your AI look something up later in the call, for example an order the caller asks about, use a custom action with Send the caller’s phone number turned on. See Identify the caller.