Quick Start

Best Practices

This page offers tips to help you improve your AI agent's performance and user experience. It covers improving the instructions, teaching the bot how to send links, and choosing the right AI model.

Refine the AI Agent's Instructions

The system prompt (instructions) is the most important factor in shaping your AI agent's behavior and personality. Clear, specific instructions ensure your agent responds consistently and aligns with your brand voice and business goals.

A well-crafted system prompt should define the agent's role, tone, constraints, and formatting preferences. Use the examples below as templates and customize them for your specific use case.

Pro Tip: Test your instructions in the Playground tab before deploying. Try edge cases, intentionally confusing questions, and requests outside your knowledge base to ensure your agent handles them gracefully.

Improve Readability of Data Sources

The quality of your AI agent's responses depends heavily on the quality and structure of your data sources. Well-organized, clearly formatted documents with consistent headings and bullet points improve retrieval accuracy and response quality.

Avoid long walls of text, ambiguous pronouns, and complex nested structures. Instead, use clear headings, concise sentences, and explicit key-value pairs for factual information like pricing, policies, and specifications.

Important: Docimal currently cannot parse complex visual charts, diagrams, or handwritten text from images. Always include textual descriptions or alternative text for visual content. For tables, consider converting them to CSV or structured markdown.
[Placeholder: Diagram illustrating structured vs unstructured data]

For your AI agent to suggest specific URLs in responses, those links must be explicitly included in your training data. While web crawling extracts content for context, the agent may not remember exact URLs unless they're clearly documented.

Create a dedicated document that maps page names to URLs. This ensures your agent can provide accurate links when users ask for resources, documentation pages, or specific content.

Example Link Mapping Document:

# Important Links Pricing Page: https://docimal.ai/pricing Documentation: https://docs.docimal.ai API Reference: https://docs.docimal.ai/api-reference Support Portal: https://support.docimal.ai Contact Sales: https://docimal.ai/contact-sales Status Page: https://status.docimal.ai

When a user asks "Where can I see pricing?", the agent can confidently respond with the exact URL from your link mapping.

Add Suggestable Images

Docimal agents can display images in chat responses using standard markdown image syntax: ![Alt Text](image-url)

To enable image display, include instructions in your system prompt that tell the agent when and how to show images. Ensure image URLs are publicly accessible and end with common image extensions (.png, .jpg, .gif, .webp).

Example System Prompt Addition:

When answering questions about product features, include relevant screenshots using markdown image syntax: ![Feature Screenshot](https://cdn.example.com/screenshots/dashboard-overview.png) # Available Images: - Dashboard: https://cdn.example.com/screenshots/dashboard.png - Analytics: https://cdn.example.com/screenshots/analytics.png - Settings: https://cdn.example.com/screenshots/settings.png
Best Practice: Store images on a CDN or reliable hosting service to ensure fast loading times. Test image URLs in the Playground before deployment to verify they display correctly in the chat widget.

Choose the Suitable AI Model

Selecting the right AI model is crucial for balancing speed, cost, accuracy, and reasoning capability. Docimal supports multiple model providers and tiers, allowing you to optimize for your specific use case and budget.

Available Models: GPT-4o, GPT-4, GPT-4 Turbo, GPT-4o mini, Claude 3.5 Sonnet, Claude 3 Opus, Claude 3 Haiku, Gemini 1.5 Pro, and more.

AI Model Recommendations by Use Case

1Customer Support & FAQ

High-volume, standard queries (shipping, returns, basic troubleshooting)

Recommended:

GPT-4o mini, Claude 3 Haiku

Fast responses, low cost, handles repetitive queries well

2Content Creation & Marketing

Blog outlines, marketing copy, brand-aligned creative writing

Recommended:

Claude 3.5 Sonnet, GPT-4o

Highly fluent, creative, well-structured text with strong coherence

3E-commerce & Lead Qualification

Product recommendations, multi-turn sales conversations, lead capture

Recommended:

GPT-4o, GPT-4 Turbo

Balanced reasoning and speed for nuanced user needs

4Technical Support & Research

Complex technical manuals, code generation, multi-step debugging

Recommended:

GPT-4o, Claude 3 Opus

Highest reasoning capability for complex, multi-step problems

Cost vs. Performance: Lightweight models like GPT-4o mini can be 10-20x cheaper than flagship models. Start with a balanced model like GPT-4o for testing, then optimize based on your quality requirements and budget.

Utilize the "Revise" Feature and Q&A Data

Even with well-structured documents, your AI agent may occasionally provide suboptimal answers or miss key nuances. Docimal's Revise feature and Q&A Data tool allow you to manually correct responses and teach your agent specific answers for common edge cases.

Revise Feature: Review past conversations in the Activity tab, identify incorrect or incomplete responses, and use the "Revise" button to provide the correct answer. The agent learns from these corrections over time.

Q&A Data Type: Upload explicit question-answer pairs in the Knowledge tab. These are prioritized over general document retrieval, ensuring your agent gives exact answers for critical questions like pricing, policies, and key features.

When to Use Revise

  • Agent gave an incorrect answer based on outdated data
  • Response was technically correct but missing important context
  • Agent failed to include a relevant link or resource
  • Tone or formatting didn't match brand guidelines

When to Use Q&A Data

  • Frequently asked questions that need exact answers
  • Policy updates that override older document content
  • Product-specific questions with precise specifications
  • Legal or compliance responses that require word-for-word accuracy
Best Practice: Regularly review conversation logs in the Activity tab to identify patterns in user questions. Create Q&A pairs for the most frequent queries to ensure consistent, accurate responses.