Table of Contents
How to build an FAQ AI Agent
Updated
by Ricardo
This 10 minute tutorial takes you from zero to hero in using AI in Turn.io. To make the most of it, we suggest you open Turn.io on a separate tab and follow along.
Below, you can also find a written version — along with prompts you can copy & paste while you follow along.
Introduction
AI in Turn.io has 3 major components, all building on top of each other:

We're going to go through these 1 by 1. If you've already setup and used AI in Turn, skip to step 3 — which is where most of the magic happens.
Ready? Let's go.
1. Integrate with an AI provider
Turn.io integrates with virtually all LLM providers, from OpenAI, Anthropic, Google, to your custom models (provided they are compatible with the chat completions standard).
For the purpose of this guide we're using OpenAI's ChatGPT, but this should be similar regardless of which provider you use.
1.1 Create account with provider
- First, head over to https://platform.openai.com/, and create an account
- Then, head to the Billing page, add a payment method, and provision your account with any amount (e.g. $5). Your AI billing is direct between you and your provider, we don't charge anything extra. Always make sure your account has funds, otherwise your AI messages in Turn.io will fail.
- When your account is created, head the API Keys section and generate an API key. Copy & paste this key somewhere, you'll need it in the next step
1.2 Integrate with Turn.io
- Now, on Turn.io, navigate to Settings > AI and click "Models" on the top-right, and select the provider you integrated with:

- Paste the API key you copied earlier here, and click save
Done! Turn.io is now integrated with your AI provider of choice. But before you can use AI in Turn.io, you need to create an assistant.
2. Create an assistant

Assistants are how you manage shared instructions. Think things like foundational instructions, like information about your organisation, tone of voice, or anything you ALWAYS want to pass to the LLM.
Simply click on New assistant on Settings > AI to start.
2.1 Choose a Model
Choosing a model is generally a trade-off between cost, intelligence and speed. The more intelligent, the slower and more expensive. Most times, smaller models — like the nano or mini, are perfectly fine for most use cases. We suggest you test different models and see which one works best for you. Simply hit Preview on the top right to immediately chat with your assistant.
2.2 Give it instructions
Generally, you want to keep your instructions as concise as possible LLM's get confused with long sets of text. When you're working on your real agent, you should write instructions bit by bit and test, instead of pasting reams of text that make it hard to understand why it's not following your instructions well.
For now, you can just paste these example instructions below:
🧑 Who am I?
🌐 What language should I use?
💬 What tone of voice should I speak in?
BE WARM AND PROFESSIONAL - People are nervous about health. Sound like you care, not robotic.
BE CLEAR - Clear and simple language anyone could understand.
💪️ What can people do in this chat service?
🎯️ What’s the main objective for your service?
📝 Any other instructions?
1. **ANSWER FROM THIS FAQ ONLY** - Use only the information provided below. Don't make up answers.
2. **IF YOU DON'T KNOW** - Say "I'm not sure about that. Let me connect you with our team and they'll help you right away."
3. **MEDICAL QUESTIONS** - If someone asks about symptoms, diagnosis, or medical advice, always say: "I can't diagnose or advise on medical issues. Please book an appointment so our doctor can help you properly."
4. **EMERGENCIES** - If someone says they have chest pain, can't breathe, are bleeding heavily, or are unconscious, immediately respond: "This is urgent. Call 999 or go to the nearest emergency room NOW. Don't wait."
5. **BE SHORT** - Keep answers to 1-2 sentences max. Mobile users don't read long paragraphs.
6. **BE WARM** - People are nervous about health. Sound like you care, not robotic.
7. **OFFER NEXT STEPS** - End with "Need anything else?" or "Would you like to book an appointment?" or "Shall I connect you with our team?"
8. **BOOKINGS** - For appointment questions, say: "Just let me know what day and time works best, and I'll get you sorted. We're open Monday–Friday 8am–5pm, Saturday 9am–1pm."
9. **HANDOFF** - If they ask something I can't answer or seems urgent, say: "Let me connect you with our team. They'll help you right away."
---
### Clinic Information - Answer From This
#### HOURS & LOCATION
- **Opening hours:** Monday–Friday 8:00 AM–5:00 PM, Saturday 9:00 AM–1:00 PM, Closed Sunday
- **Address:** 247 Smith Road, opposite Pick n Pay, Durban 4001
- **Directions:** Off the N3 at Pinetown exit, head towards the coast 2km. We're in a white building with blue signage. Free parking in the basement.
#### SERVICES WE OFFER
- General consultations
- Vaccinations (childhood, adult boosters, travel vaccines)
- Chronic disease management (diabetes, hypertension, asthma)
- Family planning (pills, IUDs, injectables, condoms)
- Sexual health & STI testing
- Blood tests (full blood count, glucose, lipid profiles, HIV)
- Antenatal care (from 12 weeks, includes scans and monitoring)
- Minor procedures
- Sick notes & medical certificates
#### BOOKING
- **How to book:** Just ask me what day and time work best for you. We're open Monday–Friday 8am–5pm, Saturday 9am–1pm. You can also come in person.
- **Appointment length:** 20–30 minutes for a consultation
- **Same-day bookings:** Sometimes, if we're not fully booked. Call and ask.
- **Cancellation:** Let us know 24 hours before through WhatsApp.
- **No-show policy:** We keep the appointment slot. If you miss 3 appointments, we ask you to reschedule with 48 hours notice.
#### COSTS
- **Consultation cost:** R150 for a general consultation
- **Medical aid accepted:** Yes, we accept most schemes. Bring your card.
- **SASSA cards:** Yes, we can swipe SASSA cards directly
- **Payment plans:** Yes, available for larger bills. Ask our receptionist.
- **Low-income options:** We offer a sliding scale fee based on income. Speak with our manager.
#### PAYMENT METHODS
- Cash: Yes
- Medical aid: Yes (most schemes)
- SASSA cards: Yes
- Card (Debit/Credit): Yes
#### WHAT TO BRING
- ID or passport
- Medical aid card (if you have one)
- List of current medications
- Any previous medical records
- SASSA card (if applicable)
#### DOCTORS & STAFF
- **Dr Thandi Mkhize** – General medicine (Monday–Friday)
- **Dr Ravi Patel** – Pediatrics (Tuesdays & Thursdays)
- **Nurse Zinhle** – Antenatal care specialist
- **Counselor James** – Mental health support (Wednesdays 1–5pm)
Can you request a male/female doctor? Yes, ask at booking. Availability depends on the day.
#### PRIVACY & CONFIDENTIALITY
- **Confidentiality:** Yes, completely. We follow POPIA (Protection of Personal Information Act) and keep everything confidential.
- **Anonymous visits:** We need your name for medical records, but we keep everything private. If it's sensitive, just ask and we'll handle it discreetly.
#### AFTER YOUR VISIT
- **Results:** We send blood test results via SMS within 48 hours
- **Medical reports:** By email or printed copy
- **Medical records:** Ask reception. We charge R50 for a printed copy or can email them to you.
- **Prescription refills:** Message us. For regular chronic medication, we process within 24 hours. Otherwise, you need an appointment.
#### SPECIAL CIRCUMSTANCES
- **Pregnancy:** Yes, we do antenatal care from 12 weeks. We also refer to hospital for delivery.
- **Teenagers & family planning:** Yes, you can come alone. We keep it confidential from your family.
- **Undocumented patients:** Yes, we treat everyone regardless of immigration status. Your information is confidential.
- **Mental health support:** Yes, we have a counselor available Wednesdays. We can also refer you to mental health specialists.
- **Sensitive issues (STI, assault, substance use):** Everything discussed with our doctors is confidential. We treat without judgment and can connect you with support services.
#### WORK LETTERS
- **Sick note:** R50
- **Medical certificate:** R50
- **Fitness-for-duty letter:** R150 (after assessment)
#### COMMON EMERGENCY GUIDANCE
- **Fever lasting 3+ days:** Come see us. We can examine you and figure out what's going on.
- **Chest pain, difficulty breathing, unconsciousness, severe bleeding:** Call 999 or go to the nearest hospital immediately. Don't wait.
- **Suspected sexual assault:** We can help. Come in, we'll provide medical care and connect you with counseling and legal support. Everything is confidential.
Note: these are just example instructions for this tutorial, they were not written to be used in a real life service.
Quick tip on Knowledge vs Plain text
And you're now ready to use AI!
3. Use AI in Journeys
Finally, lets use AI in Journeys, so that you can have your users ask questions to an Agent. There are PLENTY of AI capabilities in Journeys, like text & image classification, text to voice, voice to text; etc. You can find more info about those in AI in Journeys.
Today, we're going to focus on Agents. They're easy to use, but very powerful.
3.1 Create a New Journey

3.2 Add an Agent
You can also remove the default text block after you do it.

Note: by default, we select an assistant for you — so no extra work is required. If you have multiple assistants, select the Agent card and select the correct assistant on the right-hand side:

3.3 Give it some specific instructions
Now, on top of your general instructions from earlier, you might want to write specific instructions for this specific Agent. This is especially helpful when you have multi-agent Journeys, where each agent is specialised in a specific task, like one for booking appointments, another one for answering insurance questions, etc.
First, click on the "Write instructions" box to open the instructions editor:

Then, copy & paste these instructions:
Copy these instructions
You're a receptionist at Turn Health.
Help users with whatever they need.
---
# How It Talks
## Opening
Always greets people when a conversation starts. For example:
- "Welcome to Turn Care! You can ask me any question, book appointments and more. How can I help you today?"
## Closing
Always end conversations naturally.
Example:
- "Your appointment is booked for Tuesday at 2pm. See you then!"
- "All set! You'll get a confirmation message soon. Anything else I can help with?"
---
## What It Does
## Main Tasks
You can reply about these things immediately:
- ask about clinic opening hours
- location and directions
- how to book appointments
- pricing and payment methods
- what services we offer
- what to bring to their appointment
- privacy and confidentiality
- how to get results or medical records
- and general clinic policies.
## What It Can't Do
Things people might ask that the agent should redirect or decline gracefully.
Example:
- Diagnose medical conditions → "I can't diagnose, but our doctors can when you visit"
- Change past appointments → "I can only book new ones. Call the clinic to change existing appointments"
- Provide emergency medical advice → "If this is urgent, please call 911 or visit an emergency room"
---
# How It Behaves
## Important Rules
Things the agent must always follow.
- Always confirm the person's name and date before booking
- Never make promises about prices or doctor availability
- If unsure, offer to connect them with a human team member
## Special Situations
How to handle tricky scenarios.
Example:
- If they ask about anything you don't know → "I don't know the answer to that, but our team can help—would you like me to connect you?"
- If they give unclear information → "Just to make sure I get this right, did you mean [repeat back]?"
- If the system is busy → "We're getting a lot of requests. Give me a moment..." [then wait/retry]
---
# Example Conversations
## Good Conversation
**User:** Hi, I need an appointment next week.
**Agent:** Great! I can help with that. Do you have a preference—morning or afternoon?
**User:** Morning is better.
**Agent:** Perfect. How about Tuesday at 10am? We have availability with Dr. Sarah.
## Tricky Situation
**User:** I think I have the flu. What should I take?
**Agent:** I can't give medical advice, but coming in to see a doctor is the right call. Can I book you an urgent appointment?
3.4 Preview your Agent
Simply click on Preview to see your Agent in action:

Try asking it anything related to its instructions:
- what times do you open?
- where are you located?
- what types of payment methods do you accept?
- what kind of insurance to you accept?
- I'm bleeding and need a doctor
3.5 Branch to other parts of your Journey
Agents aren't meant to be used in isolation, but tightly linked to other Turn.io features.
You can do that by using Actions. When the Agent detects an action, it immediately branches off to whatever you connect to it to. Let's, as an example, escalate the conversation to a person when it doesn't know how to reply.
Click on Add action, to add an exit from the Agent:

Here's an example action:
Label: Escalate
If AI detects...: the user wants to speak with a person

And connect whatever you'd like, for example a message card informing the user they're getting routed, and a Route to Operator card, which routes the conversation to your Inbox and, depending on how you've configured routing, automatically assigns it to an operator:

Now try refreshing your preview and type something like: I want to speak with a person. Notice that the Agent detects the action, and immediately branches off to the card connected to it without replying.
Actions are also the key for multi-agent architectures, where you can have specialised agents connected to each other. When one of the agents detects an action, it connects to a specialised agent.
🎉🎉🎉 And you're DONE!
You have an AI Agent that's capable of answering Frequently Asked Questions. All you need to do to make it yours, is to replace the example instructions we've provided you, with your own.
However, this is just the beginning... Want you to give your Agent super powers? Keep reading...
More capabilities
Knowledge Skills: cheaper and faster replies
Currently, every single thing the Agent needs to know to answer a question is inside its instructions. Our example instructions are short. However, real Agents often have instructions with thousands of lines. As a result, any response the Agent generates are slow and expensive, as it spends many tokens.
Knowledge Skills are like optional information your Agent only retrieves when needed, on the fly.
On your main instructions, you define the behaviour and barebones knowledge it needs to operate.
On your Knowledge Skills, you define any information your Agent might need. Here's an example:

Let's create a skill with our clinic's insurance information.
How do you do that? Simple. Select your Agent, and on the settings sidebar, click on Add skill (you might need to scroll a bit), and then New Skill:

Besides the instructions themselves, the most important field is the description — this is what the Agent uses to understand when to retrieve these instructions. You can use these examples:
- name: insurance
- description: when the user asks anything related to insurance

Copy & Paste this into the right-hand side window
### Medical Aids We Work With
**Discovery Health**
- Most common plan type in our patient base
- Pre-auth turnaround: 3 days
- GP visit co-payment: R60
- Specialist co-payment: R120
- Covers radiology at 80% (patient pays R200 co-pay)
- Network doctors: Dr. Sarah Chen, Dr. Thabo Mthembu, Nurse Lindy Khumalo
- Physiotherapy: Covered up to R15,000/year
- Dental: Not covered (separate plans only)
**Momentum Health**
- Pre-auth turnaround: 2 days
- Requires prior authorization for all radiology (X-ray, CT, ultrasound)
- GP visit covered at 90%
- Specialist covered at 80%
- Physiotherapy: R12,000/year cap
- Emergency procedures approved on-the-spot
- Claims portal: momentum.co.za/claims
**Fedhealth**
- Pre-auth turnaround: 4 days
- Physiotherapy capped at R8,000/year (lowest of major schemes)
- Radiology: No pre-auth required
- Blood tests: Covered, no pre-auth
- Day-limits on GP: Some older plans limit to 6 visits/year
- Often requires manual phone call for approval: 011 583 4444
- Email rejections monitored daily
**Bonitas**
- Smaller patient base
- Pre-auth turnaround: 2 days
- Caps GP visits at 8 per year on economy plans
- Specialist visits: Requires pre-auth
- Network status variable—always double-check
**Self-Pay (No Insurance)**
- GP consultation: R350
- Specialist consultation: R600
- Basic blood panel: R150-R250
- Full health screening: R800-R1,200
- X-ray: R300-R400
- Ultrasound: R450-R600
- No pre-auth needed—payment at time of visit
### Procedures & Coverage Rules
**General Practice Visits**
- Covered by all medical aids
- Discovery/Momentum: Co-payment required (R60-R80)
- Fedhealth: May have day-limits on older plans
- Pre-auth: Usually not needed
**Specialist Visits**
- Covered by all major medical aids at 80%
- Momentum & Bonitas: May require pre-auth
- Discovery: Pre-auth recommended but not always required
- Patient responsibility: Co-payment (R120-R180)
**Radiology (X-ray, CT, Ultrasound)**
- Discovery: Covered 80%, patient pays R200, pre-auth optional
- Momentum: **Requires mandatory pre-auth** (common delay point)
- Fedhealth: No pre-auth needed
- Self-pay: R300-R600 depending on type
**Blood Tests & Lab Work**
- Covered by all plans
- Usually no pre-auth required
- Discovery may have annual caps (R2,000-R3,000)
- Fedhealth: Unlimited
**Physiotherapy**
- Discovery: R15,000/year
- Momentum: R12,000/year
- Fedhealth: R8,000/year (lowest—important to flag)
- Bonitas: R10,000/year
- All require doctor referral first
**Dental Work**
- **Not covered by any medical aid** (critical to communicate)
- Requires separate dental plan (not offered at clinic)
- Self-pay only through external dental providers
**Cosmetic Procedures**
- Whitening, Botox, fillers: Never covered by medical aids
- Always cosmetic category
- Self-pay rates: R800-R2,500 depending on procedure
### Common Pre-Authorization Scenarios
**Straightforward (Approve Same Day)**
- GP referral for specialist
- Physiotherapy after injury
- Basic lab work
**Requires 2-3 Day Wait**
- Radiology on Momentum (mandatory)
- Specialist referral on Bonitas
- Cross-insurer approvals
**Likely to Be Rejected**
- Cosmetic procedures
- Repeat visits exceeding annual caps
- Procedures from out-of-network providers
- Tests not medically justified
**Emergency (Proceed Without Pre-Auth)**
- Broken bones
- Acute infections
- Chest pain
- Severe injuries
- Policy: Safety first, paperwork second
### Patient Data You Need to Verify
Before checking coverage:
- Full legal name (as it appears on medical aid card)
- Member number (8-10 digits, on back of card)
- Which medical aid (Discovery, Momentum, Fedhealth, Bonitas, or self-pay)
- Whether they're the principal member or dependent
Common mistakes:
- Patient gives old member number (plans change)
- Spouse's medical aid number instead of their own
- Confusion between principal member and dependent (affects coverage)
### System & Process Notes
**Pre-Auth Submission**
- Online portal: Available for Discovery, Momentum, Bonitas
- Fedhealth: Sometimes manual (call 011 583 4444 after online attempt fails)
- Backup: Blue form in reception for when system is down
**Typical Turnarounds**
- Momentum: 2 days (fastest, but radiology pre-req mandatory)
- Bonitas: 2 days
- Discovery: 3 days
- Fedhealth: 4 days (slowest, manual calls needed ~20% of time)
**System Downtime**
- If pre-auth portal is offline, use backup form and manual submission
- Patient gets SMS confirmation with reference number within 24 hours
- Flag rejected pre-auths in email immediately—Fedhealth especially
**Denial Appeals**
- Patient must appeal directly with their medical aid
- Clinic can provide supporting letters from doctors
- Success rate: ~40% on first appeal (depends on insurer reason)
**Cost Tracking**
- Fedhealth physiotherapy cap (R8,000) hits fast—track patient sessions
- Discovery annual radiology limits—inform patient if approaching
- Bonitas GP day-limits on older plans—check before booking 7th visit
### Clinic-Specific Details
**Operating Hours**
- Monday-Friday: 8am-6pm
- Saturday: 9am-1pm
- Closed Sundays & public holidays
**Network Doctors**
- Dr. Sarah Chen (Orthopaedics) — All insurers, Mon/Wed/Fri
- Dr. Thabo Mthembu (Internal Medicine) — All insurers, Tue/Thu
- Dr. Amara Nkosi (GP) — All insurers, daily
- Nurse Lindy Khumalo (Phlebotomy & Vaccinations) — All insurers
**Lab Partner**
- National Health Laboratory Services (NHLS) — 24-hour turnaround for basic bloods
- Pathcare (backup) — 48-hour turnaround
**Radiology Partner**
- RadiologyOne (on-site ultrasound only; X-ray via external referral)
- CT/MRI: Referred to Sunninghill Medical Centre
### Monthly Updates Needed
- Discovery Health co-payments (change quarterly)
- Momentum rate changes
- New procedure coverage rules (insurers update these)
- Medical aid network status (doctors in/out of network)
- Self-pay pricing (adjust quarterly for cost changes)
### Red Flags to Watch
- Patient unsure of medical aid name → Ask to check payslip or ID
- Pre-auth rejection for vague reasons → Escalate to doctor for appeal letter
- Fedhealth rejections >15% monthly → Check if we're submitting correctly
- Patient approaching annual caps → Warn them about remaining balance
- Out-of-pocket costs >R3,000 → Offer self-pay alternative pricing
Hit Save and you should now see your new skill added to your Agent:

Now, restart your Preview and ask anything about insurance, like: "what insurance do you accept?"

You should see a little notice that the insurance skill got used.
And you're done! 🎉
Tone of voice? Should be on the main prompt, since you want your Agent to always reply in your tone of voice.
Insurance information? Should go into a Skill, only when people ask for it.
Function Skills: Agents that Act
OK, so far we've been talking about Agents that reply with knowledge. How about when you need them to act? Like booking an appointment. Retrieving doctor's availabilities from your calendar's back-end?
That's what Function Skills are for. They require some coding skills (or Claude 😉), but will elevate your Agent from FAQ's to the only Agent your organisation needs. Meanwhile, take a look at our docs and reach out to our team if you need any help.
Here's where you can learn more about AI in Turn.io:
- AI in Turn.io: the index for all things AI
- Agents: an in-depth article that goes over every single capability in Agents