Phone and chat assistants for your business, through one API

Teach it what you sell, put it on your website and phone line, and hear what it did. Start in a sandbox with test keys.

curl https://app.airfone.app/v1/knowledge/search \
  -H "Authorization: Bearer $AIRFONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "भेन्डिङ मेसिन कति पर्छ",
    "audience": "public"
  }'
Response
POST /v1/knowledge/search 200 OK
{
  "facts": [
    "Vending machine: Costs Rs 45,000"
  ],
  "passages": [
    {
      "title": "Price list",
      "text": "Vending machine, standard model: Rs 45,000. Installation is included in Kathmandu Valley.",
      "score": 0.82
    }
  ]
}

What your integration does

  1. Teach it what you sell

    Push your products, prices and policies as records from your own systems, or connect your website and let AirFone read it.

    POST /v1/knowledge/sources/{source}/recordsPOST /v1/knowledge/connections
  2. Put it on your website

    Add one script tag with your publishable key. Visitors can type or talk to the assistant from any page.

    <script src="https://developers.airfone.app/widget.js" data-key="af_pk_..." async></script>
  3. Find what it knows

    Ask a question and get back the facts and passages the assistant would use to answer it, for your own app or chatbot.

    POST /v1/knowledge/search
  4. Hear what happened

    Receive signed events as calls and chats finish, instead of polling for them.

    POST /v1/webhook_endpoints

Every operation is in the API reference