# 1-st a Source: https://docs.costcare.ai/1-st-a # API Source: https://docs.costcare.ai/API Preview changes locally to update your docs > [!NOTE] > > **Prerequisites**: > > * Node.js version 19 or higher > * A docs repository with a `docs.json` file Follow these steps to install and run Mintlify on your operating system. **1. Install the Mintlify CLI** ```bash theme={null} npm i -g mint ``` **2. Preview locally** Navigate to your docs directory where your `docs.json` file is located, and run the following command: ```bash theme={null} mint dev ``` A local preview of your documentation will be available at `http://localhost:3000`. ## Custom ports By default, Mintlify uses port 3000. You can customize the port Mintlify runs on by using the `--port` flag. For example, to run Mintlify on port 3333, use this command: ```bash theme={null} mint dev --port 3333 ``` If you attempt to run Mintlify on a port that's already in use, it will use the next available port: ```md theme={null} Port 3000 is already in use. Trying 3001 instead. ``` ## Mintlify versions Please note that each CLI release is associated with a specific version of Mintlify. If your local preview does not align with the production version, please update the CLI: ```bash theme={null} npm mint update ``` ## Validating links The CLI can assist with validating links in your documentation. To identify any broken links, use the following command: ```bash theme={null} mint broken-links ``` ## Deployment If the deployment is successful, you should see the following: ![Screenshot of a deployment confirmation message that says All checks have passed.](https://mintcdn.com/costcare/WsPaeEJGrmCAXBab/images/checks-passed.png?fit=max\&auto=format\&n=WsPaeEJGrmCAXBab\&q=85\&s=04b9b29a4d757baad8e152320caa00c2) ## Code formatting We suggest using extensions on your IDE to recognize and format MDX. If you're a VSCode user, consider the [MDX VSCode extension](https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx) for syntax highlighting, and [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) for code formatting. ## Troubleshooting > [accordion] Error: Could not load the "sharp" module using the darwin-arm64 runtime > > This may be due to an outdated version of node. Try the following: > > 1. Remove the currently-installed version of the CLI: `npm remove -g mint` > 2. Upgrade to Node v19 or higher. > 3. Reinstall the CLI: `npm i -g mint` > [accordion] Issue: Encountering an unknown error > > Solution: Go to the root of your device and delete the `~/.mintlify` folder. Then run `mint dev` again. Curious about what changed in the latest CLI version? Check out the [CLI changelog](https://www.npmjs.com/package/mintlify?activeTab=versions). # AI Agents Overview Source: https://docs.costcare.ai/ai-agents Learn how to create, configure, and manage sales AI agents in CostCare AI. CostCare AI supports two main types of AI agents: **Chat AI Agents** for text-based sales conversations and **Voice AI Agents** for calls. Create, configure, and manage AI agents that help your team communicate with leads, qualify, and turn conversations into sales opportunities. ## Chat AI Agents To engage customers through messaging channels, website chat, and social platforms. > [card] [Hardcore Mode](/ai-agents/chat-ai-agents/hardcore-mode) > > Configure stricter AI agent behavior for sales conversations. ## Voice AI Agents To handle sales calls, qualify customers, answer questions, and move conversations forward. > [card] [Templates](/ai-agents/voice-ai-agents/templates) > > Use templates to create sales AI agents faster by starting from a ready-made setup. # AI Agent Training Overview Source: https://docs.costcare.ai/ai-agents/agent-training-checklist A guide to preparing the business information your AI agent needs to handle sales conversations effectively. The quality of your AI agent depends directly on the quality, completeness, and structure of the business information you provide. A well-configured agent is not a matter of settings alone β€” it is a reflection of how clearly your business knowledge has been prepared and organized. This guide helps you understand what information to prepare at each stage of your agent's development, so it can handle real sales conversations effectively. *** ## How to use this guide AI-agent preparation is organized into four levels. Each level builds on the previous one β€” start with Level 1 and move forward as your agent matures. > [!NOTE] > > You do not need to complete all four levels before launching. A Level 1 agent is already functional. Higher levels add capability, precision, and control over time. | Level | Name | What it enables | | - | - | - | | **1** | Basic | Answers common questions, handles basic conversations | | **2** | Sales-Ready | Qualifies leads, follows your sales logic, handles objections | | **3** | Operational | Operates within your full business process end to end | | **4** | Optimization & Control | Improves over time, maintains consistency and quality | *** ### Minimum viable information set for launch If a client cannot complete all four levels immediately, they can still launch with a minimum viable information set. This allows the agent to start working while the remaining levels are completed over time. The minimum set includes: * primary AI-agent goal; * short business description; * product or service list; * product availability source or inventory update rules, if relevant; * target customer types; * tone of voice rules; * FAQ; * pricing or pricing-response rules; * working hours; * communication channels; * sales, booking, or support logic; * handoff rules; * prohibited topics; * 5–10 examples of good conversations. This minimum set is enough for an initial launch, but it should be improved after reviewing real conversations. If the business has a website, add the URL so the AI agent can send it to customers when they ask for more information, want to review services, pricing, portfolio, or contact details. The more complete the information, the more reliably the agent will perform. > [!NOTE] > > If customers may ask whether a product is currently available, define where the AI agent should get this information from. For static or rarely changing availability, provide an updated product list or availability rules. For real-time availability, connect the agent to the business's inventory, stock management, ERP, POS, or e-commerce system so it can use current data instead of outdated manual information. ### Main rule: the agent cannot work well with information it does not have This is the core principle behind all four levels. The AI agent cannot reliably: * follow rules that were never defined; * answer questions using information that was never provided; * represent a process that the business itself has not documented. To make the AI agent work like the best team member, the business should provide: * what the agent should know; * what goal it should achieve; * how it should speak; * what questions it should ask; * what actions it can perform; * when it should hand off to a human; * what it must never say; * how a good conversation looks; * how success will be measured; * how the agent will be improved over time. **Why it matters** Every gap in the agent's knowledge is a gap in its behavior. The business controls what the agent knows. The more clearly that knowledge is defined, the more the agent can be trusted to represent the business. # Level 1 β€” Basic Source: https://docs.costcare.ai/ai-agents/agent-training-checklist/level-1-basic-agent The minimum information your AI agent needs to start handling conversations. Level 1 is the minimum foundation your AI agent needs before launch. At this stage, the goal is not to make the agent perfect or fully autonomous. The goal is to make sure it understands your business, answers common questions correctly, follows your communication style, and knows when to hand the conversation over to a human manager. A Level 1 agent should be able to handle basic inbound conversations safely and consistently. It should not guess missing information, invent rules, or promise things your business cannot deliver. > [!NOTE] > > In Hardcore Mode, this information becomes the agent's operating logic. The more clearly you describe your business rules, examples, restrictions, and handoff conditions, the more predictable and reliable the agent's behavior will be. ### What Level 1 unlocks After completing Level 1, your AI agent should be able to: * explain what your business does; * describe your products or services; * answer common customer questions; * follow your tone of voice; * understand your working hours and availability rules; * answer pricing and payment questions according to your rules; * know when to transfer the conversation to a human manager; * avoid prohibited topics, risky claims, and unsupported promises. ### 1. Business overview Your AI agent needs a clear understanding of the business it represents. This is the foundation for every answer it gives. Provide: * a short company description; * a more detailed business description; * what you sell or provide; * who your customers are; * where you operate; * whether you work online, offline, or both; * your website link, if you have one; * what makes your business different; * why customers usually choose you. Good input example: ```md theme={null} We are a premium beauty studio in Warsaw. We provide hair coloring, haircuts, styling, and hair care treatments for women who want expert service, predictable results, and a comfortable salon experience. Most customers contact us through Instagram and WhatsApp. The main goal of communication is to understand what service the client needs and guide them toward booking an appointment. ``` > [!TIP] > > **Website link** > > If you have a website, add the link. This helps the agent send customers to the right page when they ask for more information, want to review your services, prices, portfolio, or contacts. **Why it matters** If the agent only receives a vague business description, it will give generic answers. A clear business overview helps the agent explain your company naturally and avoid sounding like a general-purpose chatbot. ### 2. Products, services, and offers Your AI agent needs to know what you sell and how to explain it to customers. Provide a structured list of your products, services, packages, or offers. For each item, include: * name; * short description; * who it is for; * what is included; * price or pricing rule, if applicable; * duration, if applicable; * availability; * limitations or restrictions; * next step for the customer. Good input example: ```md theme={null} Service: Hair coloring consultation Description: A consultation for clients who want to change hair color but are not sure what technique or shade to choose. Best for: New clients or clients planning a major color change. Duration: 30 minutes. Price: Free if the client books a coloring service afterward. Next step: Ask the client to send a photo of their current hair and desired result, then offer available consultation slots. ``` > [!TIP] > > **Hardcore Mode tip** > > Do not only upload a service list. Add decision logic. Explain what the agent should recommend in different situations. For example: ```md theme={null} If the client is unsure which service to choose, ask about their goal first. If the client wants a major color change, recommend a consultation before booking. If the client asks for the cheapest option, explain the basic service options without pushing premium packages. ``` **Why it matters** The agent should not simply list services. It should help the customer understand what fits their need and move them toward the correct next step. ### 3. AI agent goals Your AI agent needs a clear goal. Otherwise, it may answer questions politely but fail to create a business outcome. Define what the agent should achieve in conversations. Common goals include: * answer FAQs; * collect a lead; * book an appointment; * sell a product; * qualify an inquiry; * recommend a service; * collect contact details; * reduce manager workload; * handle inquiries outside working hours; * transfer qualified leads to a manager. Good input example: ```md theme={null} Primary goal: Guide potential clients toward booking an appointment. Secondary goal: Answer common questions about services, prices, working hours, and preparation before the visit. Handoff goal: Transfer the conversation to a manager if the client asks for a custom case, complaint handling, refund, or a service recommendation that requires expert review. ``` > [!TIP] > > **Hardcore Mode tip** > > Be specific about what counts as success. Examples: ```md theme={null} A successful conversation is one where the client books an appointment, leaves a phone number, or is transferred to a manager with enough context. ``` ```md theme={null} The agent should not end the conversation after answering a question if there is a natural opportunity to guide the client toward booking. ``` **Why it matters** AI agents perform better when they know the intended outcome of the conversation. The goal tells the agent when to inform, when to qualify, and when to move the user toward action. ### 4. Brand personality and tone of voice Your AI agent should sound like your brand, not like a random bot. Provide: * how the brand should sound; * how the brand should not sound; * how formal or casual the agent should be; * whether emojis are allowed; * which emojis are allowed; * whether slang is allowed; * which languages the agent should use; * how the agent should respond to rude or confused users. Good input example: ```md theme={null} Tone of voice: Warm, professional, short, and helpful. The agent should sound like an experienced receptionist: polite, calm, and clear. The agent should not sound overly playful, pushy, robotic, or too formal. Use emojis only when the client writes casually. Allowed emojis: 😊 🀍 ✨ If the client writes in Ukrainian, answer in Ukrainian. If the client writes in English, answer in English. ``` > [!TIP] > > **Hardcore Mode tip** > > Add examples of good and bad responses. ```md theme={null} Good response: "Of course. I can help you choose the right service. Could you please tell me what result you would like to achieve?" Bad response: "Hey babe, no worries, we'll fix everything 😍" ``` **Why it matters** Customers experience your brand through the agent's words. Tone of voice helps the agent stay aligned with your brand even when handling many different types of questions. ### 5. Working hours, availability, and booking slots Your AI agent needs to know when your business is open, when managers are available, and how booking should work. Provide: * working days; * working hours; * holidays or days off; * different schedules for different locations; * when managers reply; * what to say outside working hours; * whether the agent can offer slots; * whether slots come from an integration; * what information is required for booking; * what to do if a slot is unavailable; * what to do if the customer wants to reschedule or cancel. Good input example: ```md theme={null} Working hours: Monday to Saturday, 10:00–20:00. Sunday: closed. Managers reply during working hours. Outside working hours, the agent should answer questions and collect the client's name, phone number, desired service, and preferred time. Booking slots must be taken only from the booking system integration. The agent should not invent available times. ``` > [!TIP] > > **Hardcore Mode tip** > > Be explicit about whether the agent can create, change, or cancel bookings. ```md theme={null} The agent can suggest available slots from the booking system. The agent can create a booking only after the client confirms the service, date, time, name, and phone number. The agent cannot cancel a booking without manager confirmation. ``` **Why it matters** If availability rules are unclear, the agent may promise a time, slot, or response speed that your business cannot actually provide. ### 6. Pricing, payment, and commercial rules Your AI agent needs clear rules for discussing prices, discounts, payment, refunds, and commercial conditions. Provide: * exact prices, price ranges, or pricing principles; * when prices can be shared; * when prices require consultation; * active promotions; * discount rules; * payment methods; * deposit or prepayment rules; * refund rules; * whether the agent can send payment links; * whether the agent can offer individual terms; * when pricing questions must be transferred to a manager. Good input example: ```md theme={null} The agent can share standard service prices from the price list. For complex color correction, the agent should not give a final price. It should explain that the final price depends on hair length, condition, and desired result, then offer a consultation. The agent cannot offer discounts unless an active promotion is listed in the knowledge base. Prepayment is required for first-time clients. ``` > [!TIP] > > **Hardcore Mode tip** > > Pricing is a high-risk area. If the agent should not mention exact prices, say so directly. ```md theme={null} Do not mention exact pricing in chat. Explain that pricing depends on the case and guide the user to book a consultation. ``` **Why it matters** Incorrect pricing creates wrong expectations and can lead to customer dissatisfaction. Pricing rules must be clear, current, and specific. ### 7. FAQ and common questions Your AI agent needs a reliable FAQ to answer repetitive questions without involving a manager. Prepare 30–100 common customer questions and approved answers. Useful FAQ categories: * product or service details; * pricing; * booking; * payment; * delivery; * refunds; * guarantees; * preparation instructions; * working hours; * locations; * specialists; * support; * policies; * contraindications or restrictions, if relevant. Good input example: ```md theme={null} Question: Can I reschedule my appointment? Answer: Yes, you can reschedule your appointment at least 24 hours before the visit. Please send the preferred new date and time, and we will check availability. ``` > [!TIP] > > **Hardcore Mode tip** > > Write answers the way you want the agent to say them. Avoid internal shorthand, incomplete notes, or outdated manager comments. **Why it matters** FAQ is the agent's everyday knowledge base. The clearer the approved answers are, the more consistently the agent will handle repeat questions. ### 8. Human handoff rules Your AI agent needs to know when to continue the conversation and when to transfer it to a human manager. Provide clear handoff conditions. Common handoff triggers: * the customer asks to speak with a person; * the customer is angry or dissatisfied; * the customer asks for a refund; * the customer has a complaint; * the customer asks for individual terms; * the customer is ready to buy but needs approval; * the question is complex or unusual; * the agent is not sure about the answer; * the topic is legal, financial, medical, or sensitive; * the request is outside the agent's permissions. Good input example: ```md theme={null} Transfer to a manager if: - the client asks for a refund; - the client wants to speak to a human; - the client asks for an individual discount; - the client is dissatisfied with a previous visit; - the agent cannot answer confidently from the knowledge base. Before transfer, collect: name, phone number, issue summary, and preferred contact time. ``` > [!TIP] > > **Hardcore Mode tip** > > Add the exact message the agent should send before transferring. ```md theme={null} "Thank you for explaining. This is best checked by our manager, so I'll pass your request to the team. Could you please share your phone number and the best time to contact you?" ``` **Why it matters** Good handoff rules prevent the agent from overstepping and help managers receive conversations with enough context. ### 9. Restrictions, prohibited topics, and risk areas Your AI agent needs boundaries. These are as important as the information it can use. Provide a list of what the agent must not do. Examples: * do not give medical advice; * do not provide legal guarantees; * do not promise specific results; * do not confirm availability without checking the system; * do not offer discounts unless they are approved; * do not compare with competitors; * do not criticize customers; * do not argue with rude users; * do not answer questions unrelated to the business; * do not collect sensitive personal data unless required and approved; * do not make decisions that require manager approval. Good input example: ```md theme={null} The agent must not diagnose medical conditions, promise a specific treatment result, or recommend procedures for clients with medical restrictions. In these cases, the agent should politely suggest consultation with a specialist. ``` > [!TIP] > > **Hardcore Mode tip** > > Write boundaries as direct rules, not suggestions. ```md theme={null} Do not confirm a booking unless the slot exists in the booking system. Do not offer a discount unless it is listed in the active promotions section. Do not answer medical questions. Transfer such questions to a specialist. ``` **Why it matters** Restrictions protect the business from wrong promises, risky advice, compliance issues, and poor customer experience. ### Level 1 completion checklist Before launching a Level 1 agent, make sure you have prepared: * business overview; * product or service list; * main AI-agent goal; * tone of voice rules; * working hours and availability rules; * pricing and payment rules; * FAQ with approved answers; * handoff rules; * prohibited topics and restrictions. > [!NOTE] > > If this information is incomplete, the agent can still launch, but it should be treated as a basic version. Missing information should be added after reviewing real conversations. # Level 2 β€” Sales-Ready Source: https://docs.costcare.ai/ai-agents/agent-training-checklist/level-2-sales-ready-agent Information that enables your agent to qualify leads, follow sales logic, and handle objections. Level 2 is where your AI agent becomes more than a basic support assistant. At this stage, the agent should understand how to guide a customer toward a business outcome: a purchase, booking, consultation, application, or qualified lead. A Sales-Ready Agent should not only answer questions. It should understand who the customer is, what they need, what may stop them from moving forward, and what next step makes sense. > [!NOTE] > > In Hardcore Mode, Level 2 information defines the agent's sales logic. This is where you teach the agent how to qualify leads, recognize buyer types, handle objections, and move the conversation toward the right business outcome. ### What Level 2 unlocks After completing Level 2, your AI agent should be able to: * recognize different customer types and adapt communication to them; * ask better qualification questions; * understand which leads are relevant for your business; * guide users toward booking, purchase, consultation, application, or handoff; * respond to common objections without sounding pushy; * adapt answers to different communication channels; * reduce the number of incomplete, irrelevant, or poorly qualified requests sent to your team. ### 1. Core buyer groups and customer personas Your AI agent needs to understand who it is talking to. Different customer types often have different needs, pain points, objections, and reasons to buy. Provide a clear description of your main buyer groups or customer personas. For each buyer group, include: * who they are; * what they usually need; * what matters most to them; * what problems or pain points they have; * what convinces them to move forward; * what objections they usually have; * which products, services, or next steps are most relevant for them; * how the agent should speak to them; * when the agent should transfer them to a human manager. Good input example: ```md theme={null} Buyer group: New clients choosing a beauty service for the first time Who they are: People who have not visited the studio before and are unsure which service to choose. What matters to them: Trust, clear explanation, price transparency, and understanding what result they can expect. Pain points: They may be afraid of choosing the wrong service or not getting the result they want. What convinces them: Expert recommendation, examples of previous work, consultation option, and clear next steps. Best next step: Ask what result they want, offer a consultation, and guide them toward booking. Tone: Warm, reassuring, and professional. Handoff: Transfer to a manager if the client has a complex case or asks for a specialist's personal recommendation. ``` > [!TIP] > > **Hardcore Mode tip** > > Do not only describe your audience in marketing language. Add recognition logic. ```md theme={null} If the customer says they are not sure what to choose, treat them as a first-time client and ask about their desired result. If the customer asks for the fastest available time, prioritize booking logic. If the customer asks detailed technical questions, offer a manager or specialist handoff. ``` **Why it matters** Without buyer groups, the agent will speak to everyone the same way. With buyer groups, it can adapt the message, questions, and next step to the person in front of it. ### 2. Sales or booking logic Your AI agent needs to understand the path from the first message to the desired business outcome. Describe the ideal customer journey step by step. Include: * what should happen after the first message; * what the agent should ask first; * when the agent should recommend a product or service; * when the agent should offer booking, purchase, consultation, or application; * what information the agent must collect; * what counts as a successful conversion; * when the agent should stop selling and transfer to a manager; * what the agent should do if the customer is not ready yet. Good input example: ```md theme={null} Sales flow: 1. Greet the customer and identify what they are interested in. 2. Ask what result they want to achieve. 3. If the request is simple, recommend the relevant service. 4. If the request is complex, offer a consultation. 5. Ask for the preferred date and time. 6. Collect name and phone number. 7. Confirm the next step or transfer to a manager if confirmation is required. Successful conversion: The client books a slot, leaves contact details, or is transferred to a manager with enough context. ``` > [!TIP] > > **Hardcore Mode tip** > > Write your sales logic as rules, not only as a description. ```md theme={null} If the client is ready to book, do not continue explaining all services. Move to booking. If the client is comparing options, ask what matters most: price, result, timing, or specialist experience. If the client asks for a service that requires expert review, offer consultation instead of giving a final recommendation. ``` **Why it matters** If sales logic is missing, the agent may answer every question correctly but fail to move the customer forward. ### 3. Lead qualification rules Your AI agent needs to know what makes a lead relevant, ready, or not suitable for your business. Define what a qualified lead means for your company. Provide: * who your target customers are; * who is not a good fit; * what information must be collected before handoff; * which requests are high priority; * which requests should be rejected or redirected; * what makes a lead hot, warm, cold, or not relevant; * when the agent should continue qualification; * when the agent should transfer to a human. Good input example: ```md theme={null} Qualified lead criteria: - The customer is located in Warsaw or can visit our Warsaw studio. - The customer is interested in one of our listed services. - The customer is ready to book within the next 30 days or wants a consultation. - The agent must collect name, phone number, service of interest, preferred date, and any important notes. Hot lead: Wants to book now or asks for the nearest available slot. Warm lead: Asks about prices, services, or available specialists. Cold lead: Only asks general questions and does not show booking intent. Not relevant: Requests a service we do not provide or is outside our service area. ``` > [!TIP] > > **Hardcore Mode tip** > > Add clear routing logic for each lead type. ```md theme={null} Hot leads should be moved to booking as quickly as possible. Warm leads should receive helpful information and one relevant next-step question. Cold leads should receive a short answer and a soft invitation to ask more. Not relevant leads should receive a polite explanation and, if possible, an alternative suggestion. ``` **Why it matters** Qualification rules help the agent avoid sending every conversation to your team. They also prevent important leads from being missed or treated like casual inquiries. ### 4. Customer objections Your AI agent needs to know how to respond when customers hesitate, compare options, or are not ready to move forward. Prepare a list of common objections and approved responses. Common objections include: * It is too expensive; * I need to think about it; * I need to ask someone else; * I am comparing options; * I do not trust this yet; * I do not understand the value; * I do not have time now; * I had a bad experience before; * competitors are cheaper; * I am not sure this is right for me. For each objection, provide: * what the agent should say; * what the agent must not say; * what value argument to use; * whether to offer an alternative; * whether to ask a follow-up question; * when to transfer to a manager. Good input example: ```md theme={null} Objection: It is too expensive. Approved response: I understand. The price depends on the service level, specialist, and the result you want to achieve. If you share what is most important for you β€” price, timing, or final result β€” I can help suggest the most suitable option. Do not say: "It is not expensive" or "Our competitors are worse." Next step: Ask what matters most to the customer and recommend an option or consultation. ``` > [!TIP] > > **Hardcore Mode tip** > > Objection handling should not sound like pressure. Use a simple structure: ```md theme={null} 1. Acknowledge the concern. 2. Explain the value or reason clearly. 3. Ask a relevant follow-up question. 4. Offer the next step. ``` **Why it matters** Objections are a normal part of the buying process. If the agent knows how to handle them, it can keep the conversation moving without sounding aggressive or robotic. ### 5. Channel-specific communication rules Your AI agent may communicate with customers across different channels. The same answer may not work equally well everywhere. Describe how the agent should behave in each channel. Common channels include: * Instagram; * Facebook Messenger; * WhatsApp; * Telegram; * Viber; * website chat; * email; * phone. For each channel, define: * expected message length; * tone of voice; * whether emojis are allowed; * whether links can be sent; * how quickly the agent should move to action; * whether the agent should ask shorter or more detailed questions; * whether handoff rules are different; * whether booking, payment, or support behavior differs. Good input example: ```md theme={null} Instagram: - Keep answers short and friendly. - Use emojis only if the customer uses a casual tone. - Ask no more than one question per message. - If the customer asks about price, answer briefly and guide toward booking or consultation. Website chat: - Be clear and direct. - Explain the offer faster because the user may be comparing options. - Ask qualification questions earlier. - Avoid overly casual language. Phone: - Keep answers shorter than in chat. - Avoid long explanations. - Move quickly toward identifying the need and confirming the next step. ``` > [!TIP] > > **Hardcore Mode tip** > > If the same agent works across multiple channels, define channel behavior explicitly. ```md theme={null} In Instagram, the agent should sound warmer and shorter. In website chat, the agent should sound more direct and informative. In phone conversations, the agent should use concise answers and avoid long lists. ``` **Why it matters** Channel context affects customer expectations. A message that feels natural in Instagram may feel too casual on a website or too long in a voice conversation. ### Level 2 completion checklist Before launching a Sales-Ready Agent, make sure you have prepared: * core buyer groups or customer personas; * recognition logic for different customer types; * step-by-step sales, booking, or application flow; * definition of a successful conversion; * lead qualification rules; * hot, warm, cold, and not relevant lead logic; * common objections and approved responses; * rules for what not to say when handling objections; * channel-specific communication rules; * clear next steps for different customer intents. > [!NOTE] > > Level 2 is what turns an AI agent from a responder into a sales assistant. If the agent answers questions but does not move customers toward action, the sales or booking logic is probably not defined clearly enough. # Level 3 β€” Operational Source: https://docs.costcare.ai/ai-agents/agent-training-checklist/level-3-operational-agent Information that enables your agent to operate within your full business process end to end. Level 3 is where the AI agent becomes part of your actual business workflow. It is no longer just answering questions or guiding customers toward a decision. At this level, the agent needs to know what systems exist, what actions it is allowed to perform, and how requests should move through your business. An Operational Agent should understand the difference between what it can do on its own and what requires a human. It should know where to route conversations, how to create or update records, when to trigger handoffs, and what it must never do without confirmation. > [!NOTE] > > In Hardcore Mode, Level 3 rules define the agent's operational logic: what systems it can use, what actions it can perform, what records it can create or update, when it should route or escalate, and what it must never do without confirmation. ### What Level 3 unlocks After completing Level 3, your AI agent should be able to: * understand connected systems and their purpose; * know which actions are allowed and which are prohibited; * work with CRM fields, statuses, tags, notes, and next steps; * follow booking and scheduling rules; * support payment-related flows where relevant; * use the right source of truth when information conflicts; * route conversations correctly based on request type; * create cleaner handoffs for managers with full context; * reduce repetitive operational work for your team. ### 1. Integrations and connected systems Your AI agent needs to know what systems exist in your business and how it is allowed to interact with them. List all systems the agent may need to understand or work with. Common systems include: * payment systems (e.g. PayPal, Stripe); * knowledge base tools (e.g. Zendesk, Notion); * booking systems (e.g. Calendly, Booksy); * CRM (e.g. Salesforce, HubSpot); * e-commerce platforms (e.g. WooCommerce, Shopify); * scheduling tools (e.g. Outlook Calendar, Google Calendar); * ERP (e.g. Microsoft Dynamics 365, NetSuite); For each system, provide: * system name; * what it is used for; * whether the agent can access it; * whether the agent can read data; * whether the agent can create or update records; * allowed actions; * prohibited actions; * when a human manager should take over. Good input example: ```md theme={null} System: HubSpot CRM Purpose: Store inbound leads and track sales pipeline stages. Agent can: create a new lead, update contact details, add notes, assign tags, and change lead status according to predefined rules. Agent cannot: delete contacts, change deal value, apply discounts, or mark a deal as won without manager confirmation. Handoff: transfer to a manager if the client asks for custom pricing, legal terms, or contract changes. ``` **Why it matters** Without a clear map of connected systems and permissions, the agent either does too little or tries to do things it is not authorized for. Explicit permission rules protect the business and ensure consistent handling. ### 2. Communication channels The agent needs to know where conversations happen and what behavior is expected in each channel. Unlike Level 2 channel rules, which define communication tone and sales style, Level 3 channel rules define operational behavior: what data to collect, what actions to take, and what records to create in each channel. Common channels include: * Instagram; * Facebook Messenger; * WhatsApp; * Telegram; * Threads; * TikTok; * Viber; * website chat; * email; * phone; * marketplace messages; * other industry-specific channels. For each channel, define: * whether the agent should respond there; * whether the agent can send links; * whether it can collect personal data; * whether it can trigger a handoff; * whether it should create a CRM record; * whether replies should be short or detailed; * whether it can confirm bookings or only collect requests; * any special restrictions. Good input example: ```md theme={null} Instagram: - Keep replies short and friendly. - Ask no more than one question per message. - Create a CRM lead if the user shares name and phone number. - Transfer to manager for complaints or custom cases. Website chat: - Be more direct and informative. - Qualify the lead earlier in the conversation. - Collect name, email, phone, and service of interest before handoff. Phone: - Keep answers short. - Avoid long lists or complex explanations. - Move quickly toward identifying the need and confirming the next step. ``` **Why it matters** Channel rules ensure the agent behaves appropriately in each context and that the right data is collected and routed regardless of where the conversation starts. ### 3. CRM logic: fields, statuses, tags, notes, and next steps If the agent works with a CRM or lead tracking system, you must define the exact rules for creating and updating records. Include: * when to create a lead; * required fields; * optional fields; * available statuses and when to use each; * available tags; * what notes to add; * when to create next steps or reminders; * who owns the lead; * what triggers a handoff. Good input example: ```md theme={null} Create a lead when: - the user shares a phone number or email address; - the user asks to book a consultation; - the user asks for pricing and matches the target customer profile. Required fields: - name; - phone number; - communication channel; - service of interest; - lead source; - preferred date or contact time; - conversation summary. Statuses: - New inquiry; - Qualified lead; - Booking requested; - Manager required; - Not relevant. Tags: - hot_lead; - price_question; - booking_request; - complaint; - custom_case; - returning_client. ``` **Hardcore Mode tip** ```md theme={null} If the user asks for the nearest available appointment and shares a phone number, set status to Booking requested and add tag hot_lead. If the user asks only a general question and does not share contact details, keep status as New inquiry. If the user complains about a previous experience, set status to Manager required and add tag complaint. ``` **Why it matters** Consistent CRM logic means managers always receive leads with complete information. It also allows the business to track conversion, response time, and lead quality accurately. ### 4. Booking and scheduling systems Businesses that use appointments, demos, reservations, or consultations must define explicit booking rules. Include: * booking system used; * whether the agent can read available slots; * whether it can suggest slots; * whether it can create bookings; * whether it can reschedule or cancel bookings; * information required before a booking can be made; * whether manager confirmation is required; * what to do if a requested slot is unavailable; * what to send after a booking is confirmed. Good input example: ```md theme={null} Booking system: Calendly The agent can read available slots and send the booking link. The agent cannot manually create a booking outside the booking system. Required information before sending the booking link: name, service of interest, and preferred time range. If the requested time is unavailable, offer the closest available alternatives. If the client wants to reschedule, collect current booking details and transfer to manager. ``` Important rule: ```md theme={null} The agent can confirm a booking only after the slot is successfully created in the booking system. If the system does not confirm the slot, the agent must not tell the client that the booking is confirmed. ``` **Why it matters** Booking rules prevent double bookings, incorrect confirmations, and uncoordinated scheduling. Clear rules protect both the client experience and your team's calendar. ### 5. Payment systems and payment-related flows Payment flows require strict rules. The agent must know exactly what it is and is not allowed to do with payment information. Include: * accepted payment methods; * whether prepayment is required; * whether the agent can send payment links; * when to send a payment link; * whether the agent can confirm payment; * what to do if payment fails; * what to do after successful payment; * refund rules; * when payment questions must be transferred to a manager. Good input example: ```md theme={null} Payment methods: online payment link, card at location, cash at location. Prepayment: required for first-time clients. The agent can send a payment link only after service, date, time, name, and phone number are confirmed. The agent cannot manually confirm payment. Payment confirmation must come from the payment system. Refund requests must always be transferred to a manager. ``` **Why it matters** Payment rules protect the business from errors, fraud, and disputes. The agent should never make promises about payments or refunds that it cannot verify. ### 6. Routing and escalation workflows The agent needs a clear map of where each type of request should go and what action to take. Define routing rules for each request type: * sales inquiries; * booking requests; * support questions; * complaints; * refund requests; * partnership requests; * technical issues; * VIP clients; * not relevant requests; * urgent requests. For each type, define: * who owns it; * whether the agent handles it or escalates; * what information to collect before escalation; * priority level; * the message shown to the user; * the internal note added to the CRM or handoff. Good input example: ```md theme={null} Sales inquiry: - Agent handles initial qualification. - If qualified, create a CRM lead and assign to the sales manager. - Note should include service or product of interest, budget if mentioned, urgency, and preferred contact time. Complaint: - Acknowledge politely. - Do not argue or defend the company. - Collect name, phone number, order or booking details, and a summary of the issue. - Transfer to support manager with high priority. Partnership request: - Collect name, company, email, and type of partnership. - Assign to business development manager. ``` **Why it matters** Routing logic ensures that requests reach the right person with the right context. Without it, the agent may handle things it should not or fail to escalate things that need human attention. ### 7. Knowledge base and source of truth The agent must rely on accurate, current information. If documents conflict, it needs a clear order of priority. Common sources include: * FAQ; * price list; * product catalog; * service descriptions; * booking instructions; * delivery policy; * refund policy; * scripts; * tone of voice guide; * legal terms; * SOPs; * onboarding documents; * internal process documents; * examples of good and bad conversations. For each source, define: * what it contains; * whether it is current; * who owns it; * how often it is updated; * priority if sources conflict; * whether the agent can quote it directly; * whether it is internal-only or customer-facing. Good input example: ```md theme={null} Source priority: 1. Current price list β€” highest priority for all pricing questions. 2. FAQ β€” highest priority for common customer questions. 3. Booking policy β€” highest priority for rescheduling, cancellation, and no-show rules. 4. Manager scripts β€” use for tone and structure, but do not treat outdated prices in old scripts as current. If two sources conflict, use the newest approved policy document. If the conflict cannot be resolved, transfer to a manager and do not guess. ``` **Why it matters** Without a defined source of truth, the agent may give contradictory or outdated answers. Source priority rules ensure the agent always uses the most reliable information available. ### Level 3 completion checklist Before launching an Operational Agent, make sure you have prepared: * a list of connected systems and their purpose; * agent permissions for each system, including allowed and prohibited actions; * communication channel rules for each active channel; * CRM fields, statuses, tags, notes, and next-step logic; * booking and scheduling rules including confirmation logic; * payment-related rules if payments are part of the workflow; * routing and escalation workflows for each request type; * approved knowledge sources with ownership and update frequency; * source priority rules for when documents conflict; * clear rules for what the agent can and cannot do operationally. > [!NOTE] > > Level 3 turns your AI agent into part of your business workflow. If the agent should perform actions, update systems, or route requests, the operational rules must be written clearly and treated as business logic, not general guidance. # Level 4 β€” Optimization & Control Source: https://docs.costcare.ai/ai-agents/agent-training-checklist/level-4-optimization-control-agent Information and processes that enable your agent to improve over time and maintain quality. Level 4 is where the AI agent becomes a managed, measurable business process rather than a one-time setup. At this stage, the agent should be reviewed, improved, and controlled over time based on real conversations, performance metrics, customer feedback, and business changes. A Level 4 agent is not configured once and left to run. It is actively maintained. The people responsible for the agent review what is working, identify what is not, update the information it uses, and improve the rules it follows. > [!NOTE] > > In Hardcore Mode, Level 4 is where you improve the agent's instructions using real conversation patterns, mistakes, edge cases, and performance data. Every repeated error, missed opportunity, or unclear response becomes a rule, example, FAQ, or restriction that makes the agent more reliable. ### What Level 4 unlocks * better answer quality over time; * clearer understanding of what the agent does well and where it fails; * improved FAQ, rules, and examples based on real conversations; * stronger sales or booking performance; * better handoff quality; * fewer repeated mistakes; * more consistent tone of voice; * better control over risky topics; * measurable agent performance; * a repeatable process for updating the AI agent. ### 1. Conversation examples and review Your AI agent learns and improves when you provide it with real or simulated examples of conversations. These examples show the agent what good behavior looks like and help it avoid repeating mistakes. Provide and regularly update examples in the following categories: * examples of good conversations; * examples of bad conversations; * examples where the agent should have asked a better question; * examples where the agent should have transferred to a manager; * examples where the agent gave an incomplete answer; * examples where the agent handled an objection well; * examples where the agent missed a sales or booking opportunity; * examples of ideal conversations for each main user intent. For each example, define: * user message; * expected AI response; * why this response is correct; * what the agent should not say; * whether handoff is needed; * what business rule this example teaches. **Hardcore Mode tip** ```md theme={null} User: "How much does it cost?" Expected AI response: "The price depends on the service and your specific case. Could you please tell me which service you are interested in, so I can guide you more accurately?" Why this is correct: The agent does not guess the price, asks a relevant qualification question, and keeps the conversation moving. Agent should not say: "I don't know" or invent a price. Business rule: If pricing depends on the case, the agent should explain the pricing principle and ask a clarifying question before giving a final answer. ``` **Why it matters** Examples are the most direct way to teach the agent what a good conversation looks like. Without them, the agent relies only on rules, which may not cover every real situation. ### 2. Feedback loop and improvement process Your AI agent should improve on a regular schedule. Define who is responsible, how often reviews happen, and what happens when a problem is found. Include: * who reviews conversations; * how often conversations are reviewed; * which conversations should be prioritized; * how mistakes are categorized; * how new FAQs are added; * how new objections are added; * how outdated information is removed; * how rules are updated; * how examples are added to Hardcore Mode; * who approves changes. Recommended review cadence: * first week after launch: review daily; * first month: review 2–3 times per week; * after stabilization: review weekly or biweekly; * after major business changes: review immediately. > [!TIP] > > **Hardcore Mode tip** > > Every repeated mistake should become a rule, example, FAQ, or restriction. ```md theme={null} If the agent repeatedly gives vague answers about delivery, add a delivery FAQ. If the agent repeatedly escalates simple pricing questions, clarify pricing rules. If the agent answers refund questions too freely, add stricter refund boundaries. If the agent misses booking opportunities, improve sales or booking logic. ``` **Why it matters** Without a feedback loop, the agent stays at the same level of quality it had at launch. Real conversations reveal edge cases, gaps, and improvements that cannot be planned in advance. ### 3. Source-of-truth maintenance The AI agent can only be as accurate as the information it uses. After launch, the business must keep all source documents updated. Sources that require regular maintenance include: * pricing updates; * service or product changes; * working hours; * promotions; * policies; * availability rules; * delivery or refund terms; * team changes; * CRM statuses; * handoff rules; * integrations; * scripts and examples. For each source, define: * owner; * update frequency; * review date; * priority; * whether the source is customer-facing or internal-only; * what should happen when it becomes outdated. **Hardcore Mode tip** ```md theme={null} If the price list changes, update the knowledge base before the agent answers pricing questions. If a promotion ends, remove it from the agent's active knowledge immediately. If a service is discontinued, mark it as unavailable and define what the agent should recommend instead. If a policy changes, add the new rule and remove outdated wording. ``` **Why it matters** Outdated information is one of the most common causes of incorrect agent answers. Ownership and update rules ensure the agent always works from current, reliable information. ### 4. Quality control and approval rules Not every change to the agent should be added automatically. Some updates affect sensitive areas and must be reviewed before they go live. Define who can approve changes in each area: * pricing rules; * legal or policy language; * refund rules; * medical, financial, or sensitive information; * tone of voice updates; * sales scripts; * integration actions; * handoff rules; * new FAQ answers. Good input example: ```md theme={null} Approval rules: - Pricing changes must be approved by the business owner. - Refund policy answers must be approved by operations or legal. - Sales scripts must be approved by the sales lead. - Tone of voice examples must be approved by marketing or brand owner. - Integration action rules must be approved by the operations or technical owner. ``` **Why it matters** Approval rules prevent accidental updates, wrong promises, and inconsistent communication. They also ensure that sensitive changes are reviewed by the right person before they affect customers. ### Level 4 completion checklist Before treating the agent as a managed business process, make sure you have prepared: * examples of good and bad conversations; * review cadence; * feedback loop owner; * source-of-truth maintenance rules; * approval rules; * minimum viable information set; * process for updating the agent after launch; * clear ownership of agent quality. > [!NOTE] > > Level 4 turns the AI agent into a managed business process. The agent should not be treated as something that is configured once and forgotten. The best AI agents improve continuously based on real conversations, business changes, and clear ownership. # Hardcore Mode Source: https://docs.costcare.ai/ai-agents/chat-ai-agents/hardcore-mode Direct access to the raw YAML and Markdown files that define your agent β€” no visual designer. > [!WARNING] > > Changes made in Hardcore Mode take effect **immediately** on the next incoming message. Edit with care. Hardcore Mode gives you direct access to the raw files that define your agent's behavior. Instead of the visual designer, you edit YAML and Markdown files in a file tree. ## File structure Every agent is a folder with the following layout: ``` agent/ workflows/ main.yaml # entry-point logic β€” runs on every message skills/ {name}.md # config header + system prompt ``` > [!NOTE] > > `agent.yaml` and `flow.yaml` are system files managed by the platform β€” they are **not** available in Hardcore Mode. Never edit them. All `.md` files under `skills/` use the same format: a YAML settings header and a system prompt body. The same file type covers agent prompts, sub-agent prompts, and skills β€” one consistent format for all three. *** ## workflows/ `main.yaml` is the **entry point** β€” the engine runs it for every incoming message. You can have multiple workflow files; additional ones are called via `run_workflow` actions from `main.yaml` or other workflows. Each workflow file is a list of **steps** executed in order. Steps share a `WorkflowState` β€” a key-value store you can write to and read from across steps. ### Minimal example ```yaml theme={null} steps: - type: skill id: answer skill: answer_question result_key: response - type: action id: send action: type: respond value: "{response}" ``` ### Step types > [tab] skill > > **Run an LLM** using the config and prompt defined in a skill file. > > ```yaml theme={null} > - type: skill > id: find_answer # unique ID within this file > skill: answer_question # name of skills/answer_question.md (no extension) > result_key: response # save the LLM's reply under this key (default: "response") > instruction: "Be concise" # optional: extra message injected before the LLM call > ``` > > The LLM receives the system prompt from the skill file, the full conversation history, and any messages accumulated by earlier steps (e.g. previous tool results). > [tab] evaluate > > **Extract structured data** from the conversation and previous step outputs. No tools, no back-and-forth β€” one structured LLM call. > > ```yaml theme={null} > - type: evaluate > id: score_lead > model: claude-haiku-4-5-20251001 > description: | > Determine whether the customer has a clear budget and timeline. > output: > - field: has_budget > type: boolean > - field: timeline > type: string_or_null # null when not mentioned > - field: score > type: int > ``` > > **Field types:** `boolean`, `string`, `string_or_null`, `int` > [tab] if > > **Branch on a condition** β€” checks a workflow state value and dispatches an action. > > ```yaml theme={null} > - type: if > id: route > branches: > - condition: > field: has_budget # key from workflow state > op: truthy # truthy | falsy | eq | neq > action: > type: respond > value: "Score: {score}, timeline: {timeline}" > - condition: > field: score > op: eq > value: 0 > action: > type: do_nothing > else: > type: transfer_to_human > ``` > > `{key}` placeholders in `respond.value` are replaced with the matching workflow state value. > [tab] action > > **Direct action, no LLM** β€” immediately executes an action without calling a model. > > ```yaml theme={null} > - type: action > id: escalate > action: > type: transfer_to_human > ``` ### Actions | Action | Stops execution | Description | | - | :-: | - | | `respond` | βœ“ | Sends a reply. Supports `{key}` placeholders from workflow state. | | `do_nothing` | βœ“ | Stops silently β€” no reply is sent. | | `transfer_to_human` | βœ“ | Escalates the conversation to a human. | | `run_workflow` | βœ“ | Runs another workflow file as a sub-flow. | | `set_value` | β€” | Writes `key: value` to workflow state and continues to the next step. | > [accordion] run\_workflow example > > ```yaml theme={null} > action: > type: run_workflow > workflow: escalation.yaml # must exist under workflows/ > ``` > [accordion] set\_value example > > ```yaml theme={null} > action: > type: set_value > key: greeted > value: true > ``` *** ## skills/\{name}.md A skill file has two parts separated by `---`: **1. YAML settings header** Between `---` markers β€” configures the LLM, tools, and iteration limits. **2. System prompt** Everything after the closing `---` β€” the instructions sent to the LLM. ### Full example ```markdown theme={null} --- skill: answer_question description: Search the knowledge base and answer customer questions llm: model: claude-haiku-4-5-20251001 tools: [search_qa] max_iterations: 5 --- You are a helpful support agent. Use the search_qa tool to find answers. Always reply in the same language the customer used. If nothing is found, say you'll escalate to a human. ``` ### Settings header fields | Field | Required | Description | | - | :-: | - | | `skill` | βœ“ | Must match the filename without `.md` | | `description` | β€” | Short description shown in the file list | | `llm.model` | βœ“ | Model to use (see [Models](#models)) | | `llm.thinking_budget` | β€” | Anthropic extended thinking budget in tokens (e.g. `8000`) | | `llm.reasoning_effort` | β€” | OpenAI reasoning effort: `low` \| `medium` \| `high` | | `tools` | β€” | List of tool names. Use `[]` for no tools. | | `max_iterations` | β€” | Maximum tool-call loops before stopping (default: `10`) | ### Injecting workflow state into prompts Use `{values.key}` anywhere in the system prompt body to inject a value from workflow state: ```markdown theme={null} The customer's lead score is {values.score}. Based on this, adjust your tone accordingly. ``` ### Models > [tab] Anthropic > > Recommended for most use cases. > > | Model | Best for | > | - | - | > | `claude-haiku-4-5-20251001` | Fast, cost-efficient tasks | > | `claude-sonnet-4-6` | Balanced performance | > | `claude-opus-4-6` | Most capable, complex reasoning | > > Use `llm.thinking_budget` to enable extended thinking (tokens budget, e.g. `8000`). > [tab] OpenAI > > | Model | Best for | > | - | - | > | `gpt-5.5` | Flagship, highest capability | > | `gpt-5.4` | Balanced | > | `gpt-5.4-mini` | Affordable, lighter tasks | > > Use `llm.reasoning_effort` (`low` / `medium` / `high`) instead of `thinking_budget`. ### Tools | Tool | Description | | - | - | | `search_qa` | Semantic search over this org's Q\&A knowledge base | | `web_search` | Live web search | | `list_files` | List files in this agent's directory | | `read_file` | Read a file from this agent's directory | | `write_file` | Create or overwrite a file in this agent's directory | | `delete_file` | Delete a file from this agent's directory | *** ## Rules & gotchas > [!WARNING] > > `workflows/main.yaml` is **required**. Without it the agent returns no response. > [accordion] Step IDs must be unique > > `id` values must be unique within a workflow file. Duplicate IDs cause unpredictable behavior. > [accordion] skill: must match the filename exactly > > `skill:` must exactly match `skills/{skill}.md` β€” the match is **case-sensitive**. > [accordion] Stopping actions end execution immediately > > `respond`, `do_nothing`, `transfer_to_human`, and `run_workflow` stop execution immediately. Any steps listed after them in the workflow **do not run**. > [accordion] set\_value does not stop execution > > Unlike other actions, `set_value` writes a value to workflow state and moves on to the **next step** β€” it never stops the workflow. > [accordion] evaluate outputs land in workflow state > > Fields produced by `evaluate` are stored in workflow state and can be read by any later `if` branch or `respond` placeholder. > [accordion] Never edit agent.yaml or flow\.yaml > > These are system files managed by the platform. Editing them directly may break your agent in unexpected ways. # Templates Source: https://docs.costcare.ai/ai-agents/voice-ai-agents/templates # Analytics Overview Source: https://docs.costcare.ai/analytics-overview Learn how to track AI agent performance, monitor conversations, and understand sales results in CostCare AI. # Analytics Use Analytics to understand how your AI agents perform across conversations, channels, and sales workflows. Analytics helps your team monitor customer interactions, evaluate AI agent effectiveness, and identify opportunities to improve lead qualification, response quality, and conversion. # Channels Overview Source: https://docs.costcare.ai/channels-overview Learn how to connect customer communication channels to CostCare AI. # Channels Connect the channels where your customers already communicate with your business. In CostCare AI, channels let your AI agents receive messages, respond to customers, qualify leads, and support conversations across messengers, social media, calls, and your website. > [card] [Facebook](/channels-overview/facebook) > > Connect Facebook to CostCare AI so your AI agents can respond to customer messages from your Facebook presence. > [card] [Instagram](/channels-overview/instagram) > > Let your AI agents handle Instagram conversations and help customers directly from a channel they already use. > [card] [Telegram](/channels-overview/telegram) > > Connect a Telegram bot to CostCare AI so your AI agents can receive and respond to customer messages on Telegram. # Facebook Source: https://docs.costcare.ai/channels-overview/facebook # Instagram Source: https://docs.costcare.ai/channels-overview/instagram # Telegram Source: https://docs.costcare.ai/channels-overview/telegram Connect Telegram to CostCare AI so your AI agents can respond to customer messages from Telegram. # Telegram Connect a Telegram bot to CostCare AI so your AI agents can receive and respond to messages from your customers on Telegram. You can connect a bot you already created with [BotFather](https://t.me/botfather), or create a new one from scratch. ## Connect an existing Telegram bot **1. Open BotFather** In Telegram, search for **BotFather** and open it. Make sure you're using the official, verified BotFather account. **2. Find your existing bot** In BotFather, choose your bot from **My Bots**, then open its settings/token screen. **3. Copy the bot token** Copy the HTTP API token. It looks like this: ``` 1234567890:ABCDefGhIJKlmnoPQRstuVWxyz... ``` > [!WARNING] > > Don't share this token publicly. Anyone with the token can control your bot. **4. Open the CostCare dashboard** Go to **Dashboard β†’ Channels** and click **Add new channel**. **5. Select Telegram** In the modal, choose **Telegram**, then click **Connect Telegram**. **6. Paste the token** Paste the BotFather token into the **Bot Token** field, then click **Connect Bot**. **7. Check that the channel was created** The Telegram channel should appear in the left channel list, showing something like: ``` @your_bot_name Type: telegram Status: Disabled / AI inactive ``` **8. Enable AI for the channel** * **Channels β†’ Telegram channel β†’ Enable AI for this channel** **9. Choose an agent** On the **Channels** page, open the **Agent** block for the channel and select an agent from the **Assigned agent** dropdown. **10. Test the bot** Open your bot in Telegram and send `/start`, then type your message. In CostCare, go to **Dashboard β†’ Chats** β€” a new Telegram chat should appear with your message. [Connecting an existing Telegram bot](https://www.loom.com/embed/5bb1f0aa0aef4ce883b44652a5b46ede) Connecting an existing Telegram bot ## Connect a new Telegram bot **1. Open BotFather** In Telegram, search for **@BotFather** and open the official bot. **2. Start bot creation** Send `/newbot`. **3. Enter a bot display name** When BotFather asks "Alright, a new bot. How are we going to call it?", enter the public-facing name, for example `CostCare Bot`. This name is shown to your customers. **4. Enter a bot username** Enter a username for the bot. It must be unique, use only Latin letters, numbers, or underscores, and end with `bot` β€” for example, `cool_costcare_bot`. **5. Copy the generated token** BotFather replies with "Use this token to access the HTTP API:" followed by the token. Copy it. **6. Connect it in CostCare** Go to **Dashboard β†’ Channels β†’ Add new channel**, choose **Telegram**, paste the token into **Bot Token**, then click **Connect Bot**. **7. Enable AI** Toggle **Disable AI in all chat**, then confirm **Yes, enable**. Send message from Telegram and check that the AI responds. **8. Choose an agent** On the **Channels** page, open the **Agent** block for the channel and select an agent from the **Assigned agent** dropdown. [Creating and connecting a new Telegram bot](https://www.loom.com/embed/99d11c1ae205400d9c9ecc4952e781f5) Creating and connecting a new Telegram bot # Welcome to the Help Center Source: https://docs.costcare.ai/index Use this page as a starting point to find the right section for your task. ## Start with onboarding If you are setting up CostCare AI for the first time, start with onboarding. > [card] [Onboarding](/quickstart) > > The onboarding section will help you understand the basic setup flow and complete the first steps before moving to platform settings, AI agents, integrations, or channels. *** ## Structure This documentation helps you set up CostCare AI, understand the platform, create and manage AI agents, connect integrations, add communication channels, and follow product updates. > [card] [Platform](/platform-overview) > > Learn how to use the CostCare AI platform and manage platform-level settings. > [card] [AI Agents](/ai-agents) > > Explore how to create, configure, test, and improve Chat AI Agents and Voice AI Agents. > [card] [Integrations](/integrations-overview) > > Integrate CostCare AI with external systems and tools that your business already uses. > [card] [Channels](/channels-overview) > > Connect and manage communication channels where your AI agents interact with customers. > [card] [Analytics](/analytics-overview) > > Track performance, monitor conversations, and understand how your AI agents and channels are working. > [card] [Product Updates](/product-updates) > > Follow monthly release notes, new features, improvements, and system updates. *** ## Need help finding the answer? πŸ”Ž If you can’t find the information you need, contact the CostCare AI team. We’ll help you navigate the platform or find the right documentation. [Contact Support](mailto:support@costcare.ai) # Integrations Overview Source: https://docs.costcare.ai/integrations-overview Explore CostCare AI integrations and learn how to connect external tools and business systems. # Integrations Connect CostCare AI with the tools your team already uses. Use integrations to sync data, support your workflows, and help AI agents work with the systems that are important for your business. > [card] [KeyCRM](/integrations-overview/key-crm) > > Learn how to connect KeyCRM with CostCare AI and use CRM data in your customer communication workflows. # KeyCRM with CostCare AI Source: https://docs.costcare.ai/integrations-overview/key-crm Learn how to connect KeyCRM with CostCare AI, trigger AI-agent processing from a KeyCRM pipeline stage, and escalate leads back to a manager. # KeyCRM with CostCare AI Connect KeyCRM with CostCare AI to automate lead processing with AI agents and keep your KeyCRM pipeline updated. With this integration, CostCare AI can receive signals from KeyCRM when a lead moves to a specific pipeline stage. This signal starts the AI-agent workflow. If the AI agent needs help from a real manager, CostCare AI can move the lead card in KeyCRM to a dedicated manager stage. > [!NOTE] > > CostCare AI listens to webhook events from KeyCRM and can update the lead card stage in KeyCRM when the AI agent escalates the lead to a manager. ## How the integration works The integration works with KeyCRM pipeline stages and webhook events. There are two main flows: > [card] KeyCRM to CostCare AI > > When a lead moves to a specific stage in KeyCRM, KeyCRM sends a webhook signal to CostCare AI. This signal tells the AI agent to start processing the lead. > [card] CostCare AI to KeyCRM > > When the AI agent escalates a lead to a real manager, CostCare AI can move the lead card in KeyCRM to a dedicated stage, such as β€œManager work”. ## Lead processing flow **1. Lead is created or updated in KeyCRM** A lead exists in your KeyCRM pipeline and contains the information your team uses during the sales process. **2. Lead moves to the AI-processing stage** A manager or automation moves the lead to the stage where AI processing should begin. **3. KeyCRM sends a webhook to CostCare AI** KeyCRM sends the lead data and stage-change event to the webhook URL generated in CostCare AI. **4. AI agent starts processing** CostCare AI receives the webhook signal and starts the AI-agent workflow for this lead. **5. AI agent continues or escalates** If the AI agent has enough information, it continues processing the lead according to the configured scenario. If the agent does not have enough information or the conversation requires human support, it can escalate the lead to a real manager. **6. Lead is moved to the manager stage in KeyCRM** During escalation, CostCare AI can move the lead card to a dedicated stage in KeyCRM, for example β€œManager work”. > [!NOTE] > > The manager escalation stage must be created in KeyCRM before you configure the AI agent to transfer leads to this stage. ## Before you start Before connecting KeyCRM to CostCare AI, make sure you have: > [card] Access to CostCare AI > > You need access to your CostCare AI workspace and the Integrations section. > [card] Access to KeyCRM > > You need access to the KeyCRM account where your leads and sales pipelines are managed. > [card] KeyCRM API key > > You need a KeyCRM API key to connect your account with CostCare AI. > [card] AI-processing stage > > Decide which KeyCRM stage should trigger the AI agent to start processing the lead. > [card] Manager escalation stage > > Create a dedicated stage in KeyCRM where leads should be moved when the AI agent escalates them to a real manager. ## Recommended KeyCRM pipeline setup Before configuring the AI agent, prepare the required stages in your KeyCRM pipeline. For example, your pipeline may include: * **New lead** β€” the lead has just entered the pipeline. * **AI processing** β€” the stage that triggers CostCare AI to start the AI-agent workflow. * **Manager work** β€” the stage where the lead is moved if the AI agent escalates the conversation to a real manager. * **Qualified** β€” the lead has been successfully qualified. * **Closed** β€” the lead has been completed or rejected. > [!NOTE] > > You can use your own stage names. The important part is to clearly define which stage starts AI processing and which stage is used for manager escalation. ## Connect KeyCRM to CostCare AI ### 1. Open Integrations in CostCare AI In your CostCare AI account, go to **Integrations**. Select **KeyCRM** from the list of available integrations. Click **Connect**. ![Integration KeyCRM 1 eng](https://mintcdn.com/costcare/SXwrUt5wnUNM4GM3/images/Integration_KeyCRM_1_eng.png?fit=max\&auto=format\&n=SXwrUt5wnUNM4GM3\&q=85\&s=7785fa48b04fd3da05ff04a147466f37) ### 2. Add your KeyCRM API key Paste your KeyCRM API key into the connection window. Then click **Continue**. ![Integration KeyCRM 2 eng](https://mintcdn.com/costcare/SXwrUt5wnUNM4GM3/images/Integration_KeyCRM_2_eng.png?fit=max\&auto=format\&n=SXwrUt5wnUNM4GM3\&q=85\&s=140441bf9dd560b4913d11b97cd3219e) > [!NOTE] > > The API key allows CostCare AI to connect with your KeyCRM account, receive lead data, and update the lead card stage when required by the AI-agent scenario. ### 3. Copy the webhook URL After the API key is added, CostCare AI will generate a webhook URL. Copy this webhook URL. You will need to add it to KeyCRM. ### 4. Add the webhook in KeyCRM In KeyCRM, create a webhook that triggers when a lead moves to the stage where the AI agent should start processing. Paste the webhook URL copied from CostCare AI into the webhook settings in KeyCRM. ![Integration KeyCRM 3 eng](https://mintcdn.com/costcare/SXwrUt5wnUNM4GM3/images/Integration_KeyCRM_3_eng.png?fit=max\&auto=format\&n=SXwrUt5wnUNM4GM3\&q=85\&s=e32beec358e203094fced1a4f06fa03a) > [!NOTE] > > The webhook should be configured for the stage-change event that represents the moment when the lead should be passed to the AI agent. ### 5. Finish the connection After adding the webhook in KeyCRM, return to CostCare AI and click **Done**. Once completed, the integration status will change to **Connected**. ![Integration KeyCRM 4 eng](https://mintcdn.com/costcare/SXwrUt5wnUNM4GM3/images/Integration_KeyCRM_4_eng.png?fit=max\&auto=format\&n=SXwrUt5wnUNM4GM3\&q=85\&s=e936569e2bd8701c2829b3d657d5f7ef) ## Configure AI-agent escalation After the KeyCRM integration is connected, you can configure the AI agent to escalate leads to a real manager. This behavior is configured in the AI-agent prompt. For example, you can instruct the AI agent to escalate the lead when: * the customer asks a question the AI agent cannot answer; * the AI agent does not have enough information to continue; * the customer requests to speak with a real person; * the conversation requires manual review; * the lead is ready for a manager to continue the sales process. When escalation happens, CostCare AI can move the lead card in KeyCRM to the stage created for manager work. > [!WARNING] > > Create the manager escalation stage in KeyCRM before adding this behavior to the AI-agent prompt. If the stage does not exist, the lead may not be moved correctly. ## Example AI-agent prompt instruction You can add this instruction to the AI-agent prompt: > [!NOTE] > > If you do not have enough information to answer the customer’s question, or if the customer asks to speak with a real manager, escalate the lead to a human manager. > > When escalating, transfer the lead to the β€œManager work” stage in KeyCRM. Use the exact name of the stage from your KeyCRM pipeline when describing the escalation rule in the AI-agent prompt. ## What happens after connection After the integration is connected, CostCare AI listens for webhook events from KeyCRM. When a lead moves to the defined AI-processing stage, CostCare AI receives the signal and starts the AI-agent workflow. If the AI agent continues the conversation successfully, the workflow follows the configured scenario. If the AI agent escalates the lead to a manager, CostCare AI updates the lead card in KeyCRM and moves it to the manager escalation stage. > [!WARNING] > > The AI agent will not start processing every new lead automatically. It starts only when the lead moves to the KeyCRM stage configured as the trigger. ## What data is sent to CostCare AI Depending on your KeyCRM setup and webhook configuration, CostCare AI may receive: * lead details; * contact information; * pipeline information; * current lead stage; * order or request details; * custom fields used in your sales process. > [!NOTE] > > The exact data depends on the fields available in KeyCRM and the webhook payload configured in your KeyCRM account. ## Important behavior > [card] AI starts from a stage > > The AI agent starts processing only after the lead moves to the selected stage in KeyCRM. > [card] CostCare AI listens to webhooks > > CostCare AI receives stage-change signals from KeyCRM through webhook events. > [card] Escalation moves the lead > > If the AI agent escalates the lead to a real manager, CostCare AI can move the lead card to the manager stage in KeyCRM. > [card] Stage must exist first > > The manager escalation stage must be created in KeyCRM before it is used in the AI-agent prompt. > [card] Agent logic is prompt-based > > The escalation behavior is described in the AI-agent prompt after the KeyCRM integration is connected. > [card] No separate chat card in KeyCRM > > CostCare AI does not create a separate chat card in KeyCRM for this integration. ## Test the integration To check whether the integration works correctly: **1. Create or choose a test lead in KeyCRM** Use an existing lead or create a new test lead in your KeyCRM pipeline. **2. Move the lead to the AI-processing stage** Move the lead to the stage that should start AI processing. **3. Check the webhook event** Make sure the webhook was triggered successfully in KeyCRM. **4. Check CostCare AI** Confirm that the AI agent received the lead data and started processing. **5. Test escalation** Ask a question that should trigger manager escalation, or simulate a case where the AI agent does not have enough information. **6. Check the lead stage in KeyCRM** Confirm that the lead card was moved to the manager escalation stage, such as β€œManager work”. ## Troubleshooting If the lead was not passed to CostCare AI or was not moved to the correct stage, check the following: > [accordion] The webhook URL is incorrect > > Make sure the webhook URL in KeyCRM is the same as the URL generated in CostCare AI. > [accordion] The API key is invalid or inactive > > Check whether your KeyCRM API key is active and was copied correctly. > [accordion] The wrong event is selected in KeyCRM > > Make sure the webhook is triggered by the correct lead stage-change event. > [accordion] The lead moved to a different stage > > The AI agent starts only when the lead moves to the stage selected for AI processing. > [accordion] The manager stage does not exist in KeyCRM > > Create the manager escalation stage in KeyCRM before configuring the AI agent to move leads to this stage. > [accordion] The stage name in the prompt is incorrect > > Make sure the stage name in the AI-agent prompt matches the stage name in KeyCRM. > [accordion] The escalation rule is missing from the AI-agent prompt > > Add a clear instruction to the AI-agent prompt that explains when the lead should be escalated and which KeyCRM stage should be used. > [accordion] CostCare AI balance is low > > If your balance is low, agents may not work without interruptions. Top up your balance and try again. ## Disconnect KeyCRM To disconnect KeyCRM from CostCare AI: **1. Open Integrations** Go to **Integrations** in your CostCare AI account. **2. Select KeyCRM** Open the connected KeyCRM integration. **3. Click Disconnect** Click **Disconnect** to stop receiving data from KeyCRM. After disconnecting, CostCare AI will no longer receive webhook events from KeyCRM or update lead stages in KeyCRM. ## FAQ > [accordion] Does CostCare AI create a chat card in KeyCRM? > > No. CostCare AI does not create a separate chat card in KeyCRM. The integration receives data through a webhook when a lead moves to a specific stage. > [accordion] When does the AI agent start processing a lead? > > The AI agent starts when the lead moves to the KeyCRM stage configured as the trigger for AI processing. > [accordion] Can I choose which KeyCRM stage triggers the AI agent? > > Yes. You can define the stage in your KeyCRM pipeline that should send the signal to CostCare AI. > [accordion] Can CostCare AI move a lead to another stage in KeyCRM? > > Yes. If the AI agent escalates the lead to a real manager, CostCare AI can move the lead card to a dedicated manager stage in KeyCRM. > [accordion] Where is escalation configured? > > Escalation is configured in the AI-agent prompt after the KeyCRM integration is connected. > [accordion] Do I need to create the manager stage before configuring the AI agent? > > Yes. Create the manager escalation stage in KeyCRM first, then add the escalation instruction to the AI-agent prompt. > [accordion] What should I do if the lead is not sent to CostCare AI? > > Check the API key, webhook URL, webhook event settings, selected pipeline stage, and your CostCare AI balance. > [accordion] What should I do if the lead is not moved to the manager stage? > > Check whether the manager stage exists in KeyCRM, whether its name matches the AI-agent prompt, and whether the escalation rule is clearly described in the prompt. # Platform Overview Source: https://docs.costcare.ai/platform-overview Learn how to use the CostCare AI platform, manage your workspace, and access core platform features. # Platform Use the CostCare AI platform to manage your workspace, AI agents, communication channels, and sales conversations in one place. This section covers the core platform features that help your team set up CostCare AI, manage account access, add company knowledge, and keep your workspace ready for sales automation. > [card] [Knowledge Base](/platform-overview/knowledge-base) > > Add company materials to the Knowledge Base so your AI agents can use them during sales. > [card] [Log in](/platform-overview/how-to-login) > > Learn how to log in to your existing CostCare AI account and access your workspace. # Account Source: https://docs.costcare.ai/platform-overview/account # Aura Source: https://docs.costcare.ai/platform-overview/aura Learn how to write requests for Aura, investigate issues, update AI agents, and analyze chats. ## What is Aura? Aura is an AI assistant for managing, analyzing, and improving CostCare AI. Describe an issue, a change, or a task, and Aura identifies the request type and brings in the appropriate AI specialist. ## The main rule **New issue or goal β†’ new request β†’ new chat.** Start a separate chat for a new request type. If you are clarifying details of the same task, continue in the current chat. Start a new chat when you: * Report a new issue. * Want to make a different type of request. * Add a separate task, case, or AI agent. ![Ask Aura section with the New chat button](https://mintcdn.com/costcare/PUo9B9TXQ-6Rtvyw/images/aura/new-chat-en.png?fit=max\&auto=format\&n=PUo9B9TXQ-6Rtvyw\&q=85\&s=c2d59ff303d327d3cc276ad6cb2ee7a3) *** ## Request types > [card] Investigate > > Use when you see an issue but do not know its cause. > [card] Update > > Use when you know exactly what needs to change. > [card] Analyze > > Use when you need to identify patterns across multiple chats. ### Investigate Use **Investigate** when you see an issue but do not know why it happened. The specialist examines specific chats and AI agent behavior to find the cause. This request type helps you understand why an AI agent: * Gives an incorrect answer. * Does not follow the required scenario. * Repeats questions, messages, or steps. * Skips an important stage of the conversation. **Example request** > In this conversation \[conversation link], the AI agent moves to selling too quickly and does not clarify the customer's needs. Investigate why this happens. Do not make changes yet β€” find the cause first. To help Aura find the chat or AI agent, include a conversation link, a username from the communication channel, a phone number, a screenshot, or the AI agent's name. ### Update Use **Update** when you know exactly what needs to change. If the cause is unclear, start with **Investigate**. Aura proposes changes, updates, or improvements and tests them before presenting them to you. When the work is complete, Aura typically asks whether to apply the changes to the live agent. **Example request** > Change the response logic for delivery questions. If a lead asks about delivery time, the AI agent should say that delivery takes 1–3 business days. Do not use the wording β€œup to 5 days.” ### Analyze Use **Analyze** to identify patterns across conversations. Aura can analyze **up to 50 chats per request**. After the analysis, Aura attaches the results as a file in the conversation. Use analysis to: * Prepare recommendations for improvement. * Find recurring issues, frequently asked questions, and objections. * Identify weaknesses in chats and AI agents. * Assess the quality of AI agent communication and the reasons leads are lost. **Example request** > Analyze the last 50 chats. Identify: > > 1. Which questions customers ask most often. > 2. Where conversations most often end. > 3. In which situations the AI agent cannot provide an answer. > 4. Which recurring communication issues appear. > > Do not make changes yet. Share your findings first. *** ## How to give Aura feedback Explain your task in text, add a screenshot or link, or dictate it by voice. Structure your request around five points: 1. **What happened?** Briefly describe the issue or observation. 2. **Where did you see it?** Include a specific chat, example, screenshot, or file. 3. **What is wrong?** Explain which part of the behavior is incorrect. 4. **What should happen instead?** Describe the expected AI agent behavior after the fix. 5. **What should Aura do now?** State one clear request. ## Strong and weak requests ### Weak request > The AI agent responds poorly to customers. Fix it! This request does not provide enough information: * There are no specifics or source examples. * It is unclear what exactly is wrong. * The expected behavior is not explained. * The request type is not specified: investigation, update, or analysis. ### Strong request > In this chat \[chat link], the AI agent repeated the delivery information three times and then asked a question the customer had already answered. > > Expected behavior: if the customer has already provided information, the AI agent should not ask for it again. > > First, investigate why this happened. Do not make changes. This request includes: * A link to a chat with a specific example of the error. * A clear description of the issue. * The expected behavior and the condition under which it should apply. * A clear task for Aura, including the request type and the order of actions. *** ## Checklist before sending a request Take 30 seconds to review your request for a better result. Check the items that apply to your task. When reviewing request types and sources, choose the relevant option. ### 1. Is this a new request? * [ ] If the issue, goal, or task is new, start a new chat. * [ ] If you are clarifying the same task, continue in the current chat. ### 2. Have you clearly described what happened? * [ ] There is a specific issue or observation. * [ ] There are no vague statements such as β€œThe AI agent is not working correctly. Fix it.” ### 3. Have you included a source or example? * [ ] A link to a specific chat. * [ ] A screenshot. * [ ] A file. * [ ] Another example. ### 4. Have you explained what is wrong? * [ ] You identify the specific incorrect behavior. * [ ] The issue is clear, rather than simply stating that β€œthe answer is bad.” ### 5. Have you described what should happen instead? * [ ] You specify the expected AI agent behavior or action. * [ ] You describe the result you want to achieve. ### 6. Have you chosen the right request type? * [ ] **Investigate** β€” when you see an issue but do not know its cause. * [ ] **Update** β€” when you know exactly what needs to change. * [ ] **Analyze** β€” when you need to identify patterns across many chats. ### 7. Is the cause unclear? * [ ] Use **Investigate** first. * [ ] After the investigation, proceed to **Update**. ### 8. Does the chat focus on one task? * [ ] Do not combine several independent issues in one request. * [ ] Start a new chat for a different issue, case, or AI agent. ### 9. If you only need analysis, have you said so explicitly? * [ ] Include a clear instruction, such as β€œDo not change anything yet. Share your findings first.” ### 10. Have you clearly stated what Aura should do now? Specify the action you need: * [ ] Find the cause. * [ ] Make a specific change. * [ ] Analyze chats. * [ ] Use the attached information. * [ ] Suggest improvements. # How to Log In Source: https://docs.costcare.ai/platform-overview/how-to-login Learn how to log in to your existing CostCare AI account and access your workspace. Log in to CostCare AI to access your workspace, manage AI agents, connect channels, and continue working with sales conversations. Use this page if you already have a CostCare AI account and want to enter your existing workspace. *** ## Log in to CostCare AI To log in to your CostCare AI account: **1. Open the CostCare AI start page** Open the CostCare AI start page and click **Log In**. **2. Enter your email address** Enter the email address connected to your CostCare AI account. **3. Click Continue** Click **Continue** to proceed to the password step. **4. Enter your password** Enter your password and click **Continue** to access your CostCare AI dashboard. ![CostCare AI start page with Log In and Register options](https://mintcdn.com/costcare/9xGeEJWqVHT7sibN/images/Login_page.png?fit=max\&auto=format\&n=9xGeEJWqVHT7sibN\&q=85\&s=d1d29c501ec88db7cf752faeb7f42e80) *** ## Enter your email address After clicking **Log In**, you'll see the login form. Enter the email address connected to your CostCare AI workspace and click **Continue**. ![CostCare AI login form with email and password steps](https://mintcdn.com/costcare/lh070ejNuT8ACKcr/images/Login_1_and_2.png?fit=max\&auto=format\&n=lh070ejNuT8ACKcr\&q=85\&s=80e9b466966a2e5c05c24f5fed8d4472) > [!NOTE] > > Make sure you use the same email address that was used to create or access your CostCare AI workspace. *** ## Log In vs Register Use **Log In** if you already have a CostCare AI account or your team has already created a workspace for you. Use **Register** only if you need to create a new CostCare AI account. > [!WARNING] > > If you already have an account, choose **Log In**. Choosing **Register** may create a new account instead of opening your existing workspace. *** ## When to use Log In Use **Log In** when: * you already have a CostCare AI account; * your team has invited you to an existing workspace; * you have used CostCare AI before; * you want to access existing AI agents, channels, or conversations; * you want to continue working in your current workspace. *** ## When to use Register Use **Register** only when: * you are creating a new CostCare AI account; * your company does not have a workspace yet; * you are setting up CostCare AI for the first time. If you are not sure whether your company already has a workspace, check with your team admin before registering. *** ## If you cannot log in If you cannot access your account: * check that your email address is correct; * make sure you are using **Log In**, not **Register**; * use **Reset password** if you forgot your password; * ask your workspace admin to confirm your access; * contact the CostCare AI team if the issue continues. > [card] [Contact Support](mailto:support@costcare.ai) > > Contact the CostCare AI team if you need help accessing the right account. # Knowledge Base Source: https://docs.costcare.ai/platform-overview/knowledge-base Learn how to add company materials to the Knowledge Base so your CostCare AI agents can use them during sales conversations. The **Knowledge Base** is where you can upload company materials that your AI agents can use during conversations. > [!NOTE] > > Knowledge Base is available to all CostCare AI users. *** ## What the Knowledge Base is for CostCare AI agents can use files from the Knowledge Base during conversations with customers. This helps your AI agents: * answer customer questions more accurately; * provide more complete product or service information; * reduce generic or inaccurate responses; * follow your company's sales logic and tone of voice; * use up-to-date materials during conversations; * rely less on manual agent configuration. You can use the Knowledge Base to centralize the information your AI agents need for sales conversations. *** ## Where to find the Knowledge Base You can find the Knowledge Base in the left sidebar of your CostCare AI workspace. To open it, go to: **Left sidebar β†’ Knowledge Base** ![Knowledge Base Main 2](https://mintcdn.com/costcare/XF52KxfG7meglidY/images/Knowledge-Base_Main_2.png?fit=max\&auto=format\&n=XF52KxfG7meglidY\&q=85\&s=c0889890caf760eb87aec6856384c415) *** ## How to add files To add files to the Knowledge Base: **1. Open Knowledge Base** In the left sidebar, open **Knowledge Base**. **2. Click Add files** Click **Add files** or drag files into the upload area. **3. Upload your documents** Select the files you want your AI agents to use during conversations. After uploading, your AI agent can immediately use the information from these files in responses. *** ## Supported file formats The Knowledge Base supports the following file formats: > [card] Documents > > PDF, DOCX, TXT, MD > [card] Tables and presentations > > XLSX, CSV, PPTX The maximum file size is **10 MB per file**. There is no limit on the number of documents you can upload. > [!WARNING] > > Files should contain text-based information. If important content is stored only as images or screenshots inside a document, the AI agent may not be able to read it correctly. *** ## What files to add You can upload any materials that help your AI agents handle sales conversations better. For example: * FAQ; * price lists and pricing rules; * product descriptions; * service descriptions; * tone of voice guidelines; * sales logic; * sales funnel materials; * sales scripts; * internal instructions; * onboarding materials for sales teams. Good Knowledge Base files help your AI agents understand what to say, how to say it, and when to move the customer forward in the sales process. ![Knowledge Base Example 2](https://mintcdn.com/costcare/XF52KxfG7meglidY/images/Knowledge-Base_Example_2.png?fit=max\&auto=format\&n=XF52KxfG7meglidY\&q=85\&s=750a39b3b92e0a81944420d189b9ae40) *** ## How to update files Currently, files cannot be edited directly in CostCare AI. You also cannot rename a file after uploading it to the platform. If a document is no longer relevant or contains outdated information, you need to delete the old file first and then upload the updated version. To update a file: **1. Prepare the updated file** Make changes to the document outside CostCare AI and save the updated version with a clear file name. **2. Delete the outdated file** In **Knowledge Base**, find the file with outdated information and click the delete icon. **3. Confirm deletion** In the confirmation window, click **Delete**. **4. Upload the new version** Click **Add files** and upload the updated document. > [!WARNING] > > Deleting a file cannot be undone. If you delete a file by mistake, you will need to upload it again. ![Knowledge Base Delete File Option](https://mintcdn.com/costcare/XF52KxfG7meglidY/images/Knowledge-Base_Delete_file_option.png?fit=max\&auto=format\&n=XF52KxfG7meglidY\&q=85\&s=96c03120ace47de8a07a9856dbd35b74) Before uploading a new or updated file, make sure that: * the file has a clear and understandable name; * the information inside the file is up to date; * important content is provided as text; * the file does not contain outdated information; * there are no duplicate or conflicting versions. *** ## Best practices To help your AI agents use the Knowledge Base effectively: * upload only relevant and up-to-date files; * use clear file names; * keep one source of truth for each topic; * remove outdated versions; * avoid files where key information is stored only in images; * add materials that reflect your current sales process, pricing, and communication style. The better your Knowledge Base is structured, the easier it is for AI agents to provide accurate, useful, and sales-focused answers. # Product Updates Overview Source: https://docs.costcare.ai/product-updates Explore CostCare AI product updates, monthly release notes, new features, improvements, and system changes. # What’s new? Stay up to date with the latest CostCare AI releases, product improvements, and new features. Use this page to explore monthly release notes and learn what has changed across the platform, AI agents, integrations, channels, and analytics. > [card] [May 2026](/product-updates/may-2026) > > Knowledge Base, improved login, AI agent page updates, and AI agent templates. # June 2026 Source: https://docs.costcare.ai/product-updates/june-2026 # May 2026 Source: https://docs.costcare.ai/product-updates/may-2026 CostCare AI product updates for May 2026: Knowledge Base, improved login experience, AI agent page updates, and AI agent templates. # Knowledge Base and new AI agent capabilities In this release, we're making CostCare AI more useful for teams that want to launch AI agents faster, configure them for their business context, and provide customers with more accurate answers. Key updates include the **Knowledge Base** for AI agents, improvements to the AI agent page, new templates for creating AI agents, and an improved login experience. *** ## Knowledge Base for AI agents CostCare AI now has a new section β€” **Knowledge Base**. This is where you can upload files with information your AI agent can use during customer interactions. The AI agent can search through documents while responding and adapt its answers to your company materials and business context. The Knowledge Base helps your AI agent: * provide more accurate and complete answers; * reduce the number of inaccurate or generic responses; * better understand your products, services, and company processes; * rely less on manual configuration; * use up-to-date materials during conversations; * centralize knowledge for the AI agent and identify which materials may still be missing. > [!NOTE] > > Knowledge Base is available to all CostCare AI users. ![Knowledge Base Main 2](https://mintcdn.com/costcare/XF52KxfG7meglidY/images/Knowledge-Base_Main_2.png?fit=max\&auto=format\&n=XF52KxfG7meglidY\&q=85\&s=c0889890caf760eb87aec6856384c415) ### Where to find Knowledge Base To add files: **1. Open Knowledge Base** Go to the left sidebar and open **Knowledge Base**. **2. Click Add files** Click **Drag files here** to upload documents. **3. Upload your documents** Select the files you want to add to the Knowledge Base. After uploading, the AI agent can immediately use the information from these files in its responses. ### Supported file formats Knowledge Base supports the following file formats: > [card] Documents > > PDF, DOCX, TXT, MD > [card] Tables and presentations > > XLSX, CSV, PPTX The maximum file size is **10 MB per file**. There is no limit on the number of documents you can upload. > [!WARNING] > > Documents should contain only **text-based** information. If important data is stored only as images or screenshots inside a file, the AI agent may not be able to read it correctly. ### What materials you can add You can upload any materials that help your AI agent provide better answers to customers, including: * FAQ; * price lists and pricing rules; * product and/or service descriptions; * tone of voice; * sales logic; * sales funnel materials; * scripts; * instructions; * internal materials used for sales team training and onboarding. ![Knowledge Base Example 2](https://mintcdn.com/costcare/XF52KxfG7meglidY/images/Knowledge-Base_Example_2.png?fit=max\&auto=format\&n=XF52KxfG7meglidY\&q=85\&s=750a39b3b92e0a81944420d189b9ae40) ### How to update documents Currently, documents cannot be edited directly in CostCare AI. You also cannot rename a file after uploading it to the platform. Before uploading a file, we recommend checking: * whether the file has a clear name; * whether the information is up to date; * whether important data is provided as text; * whether there are outdated versions or duplicates. ![Knowledge Base Delete File Option](https://mintcdn.com/costcare/XF52KxfG7meglidY/images/Knowledge-Base_Delete_file_option.png?fit=max\&auto=format\&n=XF52KxfG7meglidY\&q=85\&s=96c03120ace47de8a07a9856dbd35b74) > [!NOTE] > > If a file is no longer relevant, delete it from the Knowledge Base and upload a new version. [Learn more about Knowledge Base](/platform-overview/knowledge-base) *** ## Improved login page We also updated the **Log in** page. ![Login Page](https://mintcdn.com/costcare/9xGeEJWqVHT7sibN/images/Login_page.png?fit=max\&auto=format\&n=9xGeEJWqVHT7sibN\&q=85\&s=d1d29c501ec88db7cf752faeb7f42e80) The changes include updated buttons and clearer visual separation between login and registration. This helps users better understand where to log in to an existing account and where to create a new one. This update is designed to reduce situations where a customer accidentally creates a new account instead of logging in to an existing one. This improvement applies to all users who access the platform. [How to Login](/platform-overview/how-to-login) *** ## Updated AI agent page ... *** ## AI agent templates ... # Quickstart Source: https://docs.costcare.ai/quickstart Get started with CostCare AI in a few steps ## Get started in three steps Get your documentation site running locally and make your first customization. ### Step 1: Set up your local environment > [accordion] Clone your docs locally > > During the onboarding process, you created a GitHub repository with your docs content if you didn't already have one. You can find a link to this repository in your [dashboard](https://dashboard.mintlify.com). > > To clone the repository locally so that you can make and preview changes to your docs, follow the [Cloning a repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) guide in the GitHub docs. > [accordion] Start the preview server > > 1. Install the Mintlify CLI: `npm i -g mint` > > 2. Navigate to your docs directory and run: `mint dev` > > 3. Open `http://localhost:3000` to see your docs live! > > > [!TIP] > > > > Your preview updates automatically as you edit files. ### Step 2: Deploy your changes > [accordion] Install our GitHub app > > Install the Mintlify GitHub app from your [dashboard](https://dashboard.mintlify.com/settings/organization/github-app). > > Our GitHub app automatically deploys your changes to your docs site, so you don't need to manage deployments yourself. > [accordion] Update your site name and colors > > For a first change, let's update the name and colors of your docs site. > > 1. Open `docs.json` in your editor. > > 2. Change the `"name"` field to your project name. > > 3. Update the `"colors"` to match your brand. > > 4. Save and see your changes instantly at `http://localhost:3000`. > > > [!TIP] > > > > Try changing the primary color to see an immediate difference! ### Step 3: Go live > [accordion] Publish your docs > > 1. Commit and push your changes. > 2. Your docs will update and be live in moments! ## Next steps Now that you have your docs running, explore these key features: > [card] [Platform overview](/platform-overview) > > Get familiar with the CostCare AI platform. > [card] [AI agents](/ai-agents) > > Learn how to configure and deploy AI agents. > [!NOTE] > > **Need help?** See our [full documentation](https://mintlify.com/docs) or join our [community](https://mintlify.com/community). # Platform settings Source: https://docs.costcare.ai/settings Manage working hours, AI agent behavior, and notifications. View your balance and legal documents. Open **Settings** in the left menu of CostCare AI and select the tab you need. Use the guides below to configure the platform for your team. > [card] [Business hours](/settings/business-hours) > > Set your time zone, reminder schedule, and days off. > [card] [Agent hours](/settings/agent-hours) > > Set the AI agent's working hours or let it work around the clock. > [card] [Agents](/settings/agents) > > Configure response delay, handling of chats with history, and agent automation. > [card] [Balance](/settings/balance) > > View your remaining credits and subscription status. > [card] [Notifications](/settings/notifications) > > Choose which events trigger email notifications. > [card] [Legal documents](/settings/legal-documents) > > Find the documents governing your use of CostCare AI. # Agent hours Source: https://docs.costcare.ai/settings/agent-hours Set the AI agent's working hours or let it work around the clock. You can let the AI agent work around the clock or limit it to a schedule. Outside the configured hours, the AI agent does not respond or take on new chats. 1. Open **Settings β†’ Agent hours**. 2. Enable **Limit the AI agent to these hours** to apply a schedule. 3. Select a **Time zone**, enable the relevant days, and set working hours. Use **Copy to all days** if needed. 4. To use your business schedule, click **Same as business hours** and review the resulting settings. 5. In **Days off**, select the relevant dates and click **Add date**. 6. Click **Save agent hours**. ![Agent hours: schedule restrictions, days off, and saving](https://mintcdn.com/costcare/usej2wNwo3JOl0lQ/images/settings/agent-hours-uk.gif?s=11ea3fb3d4586f84498741de1e67dc6c) The illustration shows the Ukrainian interface. To remove schedule restrictions, disable **Limit the AI agent to these hours** and save your changes. The agent will work without working-hour restrictions; other settings governing its behavior in chats still apply. # Agents Source: https://docs.costcare.ai/settings/agents Configure response delay, handling of chats with history, and agent automation. Open **Settings β†’ Agents** to control how the AI agent responds and when it automatically joins a conversation. Save changes separately in each section. ## Response delay A delay gives customers time to send several short messages in a row. The agent waits after the user's last message so it can process the messages together. 1. In **Response delay**, enter a value in **Delay before responding**. 2. Set a value from **0 to 40 seconds**. **0** means the agent responds without an additional delay. 3. Click **Save response delay**. ## Handling chats with history **Respond in chats with history** determines whether the AI agent can handle chats that already contain previous messages, including conversations with returning customers. 1. Find **Handling chats with history**. 2. Enable **Respond in chats with history** to allow these chats, or disable it to restrict the agent to new chats. 3. Click **Save** in this section. Enabling this option does not send messages to old chats on its own. The agent only responds to a user message. ![Response delay and settings for chats with history](https://mintcdn.com/costcare/YQbNVQpCiWEnCHct/images/settings/agent-responses-uk.gif?s=3446107cc43e7dcbcbe646d7991df6ad) The illustration shows the Ukrainian interface. ## Agent automation The **Agent automation** section has two independent switches: * **Enable the agent in new chats** β€” the agent automatically joins new chats and starts responding without a manager's involvement. * **Disable the agent after a manager's message** β€” the agent turns off in the chat as soon as a manager sends a message, and a person continues the conversation. Set the options you need and click **Save** in this section. ## New conversation after a pause This option treats the next message after a long break as the start of a new conversation. 1. In **New conversation after a pause**, enable **Start a new conversation after a pause**. 2. In **Pause duration**, enter the number of days. 3. Click **Save** in this section. The pause is measured from the last message of any type: customer, manager, or AI agent. > [!NOTE] > > When this option is enabled, after the specified pause the agent sees only messages from the new conversation. **Enable the agent in new chats** treats this chat as new. Keep this in mind if you want the agent to resume work automatically after a break. For example, if you set **7 days**, the next message after that pause starts a new conversation. The agent uses the messages sent after the pause as the context for that conversation. ![Automatic agent activation and deactivation, and a new conversation after a pause](https://mintcdn.com/costcare/usej2wNwo3JOl0lQ/images/settings/agent-automation-uk.gif?s=ec2e4bea01d104e5055607f1eae6a43e) The illustration shows the Ukrainian interface. # Balance Source: https://docs.costcare.ai/settings/balance View your remaining credits and subscription status. Open **Settings β†’ Balance** to view: * **Current balance** β€” the credits remaining in your account. * **Subscription** β€” your current subscription status. This tab shows your account status. The values in the screenshot are examples. ![Current credit balance and subscription status](https://mintcdn.com/costcare/llw1Y59To5dy_hWH/images/settings/balance-uk.png?fit=max\&auto=format\&n=llw1Y59To5dy_hWH\&q=85\&s=7f170ea3f40c39a08e024771e691aa08) The screenshot shows the Ukrainian interface. # Business hours Source: https://docs.costcare.ai/settings/business-hours Set your time zone, reminder schedule, and days off. This schedule determines when reminders can be sent. Configure the AI agent's working hours separately in the **Agent hours** tab. 1. Open **Settings β†’ Business hours**. 2. Select your business's **Time zone**. 3. Enable the relevant days of the week and set the start and end times. 4. If the schedule is the same across days, click **Copy to all days** next to a configured day. After copying, check each day and disable non-working days. ## Add days off and save the schedule 1. Scroll to the **Days off** section. 2. Select a date and click **Add date**. The entire date is treated as closed. 3. Repeat for any other days off. 4. Click **Save business hours**. ![Setting business hours, copying the schedule to all days, and saving changes](https://mintcdn.com/costcare/YQbNVQpCiWEnCHct/images/settings/business-hours-uk.gif?s=975521cb1131379e7595147b55fe76c1) The illustration shows the Ukrainian interface. > [!NOTE] > > The interface tooltip states that closing all days means 24/7 availability. Do not disable all days as a way to stop reminders. # Legal documents Source: https://docs.costcare.ai/settings/legal-documents Find the documents governing your use of CostCare AI. Open **Settings β†’ Legal documents** and click the name of the document you need. Each document opens in a new tab. Available documents: * **Public offer**. * **Terms of use**. * **Privacy policy**. * **Cookie policy**. * **Data Processing Agreement (DPA)**. * **Subprocessor list**. ![CostCare AI legal documents](https://mintcdn.com/costcare/llw1Y59To5dy_hWH/images/settings/legal-documents-uk.png?fit=max\&auto=format\&n=llw1Y59To5dy_hWH\&q=85\&s=4078f7221981a638a9fcb0a3fb2924d8) The screenshot shows the Ukrainian interface. # Notifications Source: https://docs.costcare.ai/settings/notifications Choose which events trigger email notifications. Choose which events you want to receive notifications about at the email address you use to sign in to CostCare AI. 1. Open **Settings β†’ Notifications**. 2. In the **Email** column, select the events you want to receive notifications about. 3. Clear the checkboxes for events you do not want notifications about. | Notification | When it is sent | | - | - | | **Negative balance** | Your balance has fallen below zero or AI has stopped because of it. | | **Subscription expiry** | The billing period is about to end and the next month has not been paid for: 5, 3, and 1 day before expiry. | | **AI handed off a chat** | The AI agent handed a chat over to a manager. | | **Channel reconnection required** | A channel lost access to the account and needs to be reconnected. | ![Selecting email notifications for balance, subscription, chat handoff, and channel status](https://mintcdn.com/costcare/ZwRadyRnHOtSDZZE/images/settings/notifications-uk.gif?s=72123eb7dd7e8204ae7cf9afdbbadb3e) The illustration shows the Ukrainian interface.