Blog

Insights, tutorials, and updates from the ZharfAI team

AI Tutorials

Learn about AI technologies and implementations

Build an AI Bot on Bale: Step-by-Step with Python and n8n
AI TutorialsNovember 16, 2026•43 min read

Build an AI Bot on Bale: Step-by-Step with Python and n8n

Create a Bale bot in BotFather, run a Python echo bot, connect a language model, move to webhooks or n8n, respect Bale's limits and host the whole bot inside Iran.

NotebookLM Tutorial (Gemini Notebook): A Complete Guide for Your Documents
AI TutorialsNovember 16, 2026•30 min read

NotebookLM Tutorial (Gemini Notebook): A Complete Guide for Your Documents

Create a notebook, add sources, check citations, and make Persian audio overviews, quizzes and slides in NotebookLM, now Gemini Notebook, with limits, Iran status and an open-source option.

Ollama Tutorial: Install on Windows, Linux and a Server, Run DeepSeek Locally
AI TutorialsNovember 16, 2026•36 min read

Ollama Tutorial: Install on Windows, Linux and a Server, Run DeepSeek Locally

Install Ollama on Windows, macOS, Linux or a server with exact commands, run DeepSeek and Persian-capable models locally, use the OpenAI-compatible API, secure port 11434 and work offline.

Persian Speech to Text: Voice Messages, Audio Files and Meetings
AI TutorialsNovember 16, 2026•25 min read

Persian Speech to Text: Voice Messages, Audio Files and Meetings

Turn Persian voice messages, recordings and meetings into text: phones, Telegram, Bale, Rubika, Word, Google Docs, Iranian services, open models you run, and how to check accuracy.

Persian Text to Speech: Methods, Tools and Natural-Sounding Voices
AI TutorialsNovember 16, 2026•36 min read

Persian Text to Speech: Methods, Tools and Natural-Sounding Voices

Persian voices on iPhone, Android and Windows, online and Iranian services, open models with runnable code, text preparation for ezafe and numbers, and choosing a voice.

Prompt Writing Guide: Principles, Techniques and Ready-to-Use Examples
AI TutorialsNovember 16, 2026•35 min read

Prompt Writing Guide: Principles, Techniques and Ready-to-Use Examples

Prompt writing from the model makers' own guides: the parts of a strong prompt, prompting in Persian, copyable examples for content, code, legal work and images, and a way to test prompts.

Reconcile Every Record Before Accepting an AI Batch
AI TutorialsNovember 12, 2026•12 min read

Reconcile Every Record Before Accepting an AI Batch

A practical guide to matching batch AI responses to their inputs, finding missing and duplicate records, and deciding what to accept, repair, or retry.

Prove Training Can Resume Before Choosing Interruptible GPUs
AI TutorialsOctober 29, 2026•12 min read

Prove Training Can Resume Before Choosing Interruptible GPUs

A loadable weights file does not prove training can resume. Test checkpoint completeness, data position and recovery overhead before choosing interruptible GPUs.

Why an AI Assistant Cannot See the Change It Just Saved
AI TutorialsOctober 22, 2026•12 min read

Why an AI Assistant Cannot See the Change It Just Saved

A successful write can still be missing from a replica or search index. Choose a dependable verification path before stale evidence makes an assistant repeat the action.

A Signed Webhook Is Not Permission to Run the AI Workflow Again
AI TutorialsOctober 15, 2026•11 min read

A Signed Webhook Is Not Permission to Run the AI Workflow Again

Separate signature checks, durable receipt and permission to act. A practical webhook admission design keeps repeated deliveries from becoming fresh AI workflow requests.

When One JSON Key Has Two Values, Which One Reaches the Tool?
AI TutorialsOctober 9, 2026•11 min read

When One JSON Key Has Two Values, Which One Reaches the Tool?

Repeated JSON keys can disappear before validation begins. Reject ambiguity at the raw-input boundary and keep reviewers and executing tools on the same accepted data.

A Closed AI Stream Is Not a Completed Answer
AI TutorialsOctober 8, 2026•12 min read

A Closed AI Stream Is Not a Completed Answer

Decide when streamed AI output may become a final answer by separating byte decoding, event boundaries, stop reasons and application acceptance.