العربية

AI integration · Example

How an AI integration works

Your application sends text to an AI service and gets structured data back, ready for the next step

A booking message, step by step

Appointment requestIllustrative example · no live service
  1. Input

    Could I book a dental check-up on Thursday, around 4 in the afternoon?

    Structured result

    Run to see the structured result.

    {"service":"Dental check-up","day":"Thursday","time":"16:00","action":"request_appointment"}

    Your application

    Request

    {
      "text": "Could I book a dental check-up on Thursday, around 4 in the afternoon?"
    }

    Response

  2. API connection

    Request

    Response

    Arrives after the AI service replies

    {
      "service": "Dental check-up",
      "day": "Thursday",
      "time": "16:00",
      "action": "request_appointment"
    }
  3. AI service

    Processes input

Nothing is booked until someone confirms the request

What happens at each step

Input, AI processing, then confirmation
  1. Input

    Text or data arrives from your application

  2. AI processing

    The AI service turns it into structured data

  3. Next step in your app

    Your application turns the result into a request that someone confirms before anything is booked