The AI component selects a provider, model and generation settings in Deskgram 2 modules that support it. It is not a separate task: the working module determines the message source, when AI is called and how its output is sent.
Checked against the implementation on 24 October 2026. See the AI provider page for custom connections.
Enable AI in the working module
Open the AI tab and enable Use AI for generation. Choose a provider and model. AI commenting generates a response to a channel post; AI chatting processes group context; the standalone autoresponder uses these settings for private replies.

Do not assume every module uses AI in the same way. The branching autoresponder's AI decision chooses an existing branch rather than generating new text for every node. See the conversation-tree guide.
Choose a provider
The current interface offers io.net, OpenRouter, Mistral, and saved custom connections with a default model. DG2 free is hidden. Old presets can contain an unavailable choice; after loading one, inspect the actual provider, model and generation switch.

The provider receives the API request. A model is a particular API identifier within that service. The same model name on two platforms does not imply shared credentials, balance or limits.
Setup guides: Mistral, io.net, OpenRouter. Obtain your own access, then save that service's API key in Deskgram. Do not substitute your account password or Deskgram license key.
Balance and cost
The component supports balance retrieval for OpenRouter. This block does not display balances for io.net or Mistral. Custom-provider balance depends on a separate capability setting and service endpoint. N/A does not mean requests cost nothing.
Free models only appears where the provider supports that attribute. It filters the catalog, without guaranteeing unrestricted access or removing quotas. Zero price for a manually configured model or local catalog entry can be a default value. Check actual pricing and quota with the service. External AI requests are not included in a Deskgram subscription.
Refresh and select a model
Refresh the model list, wait for the result and select your model. For manual entry, enable Custom model and enter the exact API ID rather than its marketing name. Entering a name does not download, train or host a model on your computer.
A saved key, a loaded catalog and a successful answer are three separate checks. A service can return its catalog without allowing generation by your chosen model. Recheck the model after changing providers: the old ID may belong to another API.
Configure style and prompt
The component offers preset styles and Custom prompt. Choose the latter for your own instructions. Supply a role, known facts, language and output format rather than only “answer well”.

Hypothetical support instruction:
Answer using the product instructions provided. Installation follows the link below. Do not invent prices or features. If the supplied information does not answer the question, suggest contacting support. Give a short answer in the question's language.
Add actual facts and your link. Mentioning a document's name does not automatically load it into context. Supply information through the working module's supported fields.
For a comment, specify relevance to the post and length. For a private response, supply information needed to answer the sender. Conversation history and the option to include the incoming message belong to the working module and differ between features.
Temperature
Temperature affects variation, not factual accuracy. Start with the interface's value, compare several outputs and change one parameter at a time. A model may constrain or reject the parameter; inspect the provider's actual response. Raising temperature does not supply missing facts.
Save the API key
Open global program settings, then API. Enter the selected service's key and save. Return to the module and inspect provider, model and generation settings.

Screenshots show older Russian labels. They help locate controls, but the current interface determines available models, balance capabilities and providers. An old button in a screenshot does not prove it is still available.
Connect a custom service
Under API → Custom AI providers, add a connection with name, Base URL, API key, at least one exact model ID and a default model. The client uses OpenAI-compatible GET /models and POST /chat/completions. Base URL must be the API root, including a required version prefix if applicable, not the complete chat/completions endpoint.
The test first requests /models. A valid nonempty catalog confirms catalog access, not generation with the selected model. If no catalog is obtained and a default model exists, the test makes a short chat/completions request. This can consume tokens or quota.
Save the connection, select it in the module's AI component, and test the actual workflow. Your API must return the expected response format, not merely HTTP 200 with an arbitrary page. See the custom-provider guide.
Test a short task
- Choose one test account and a controlled private conversation, group or channel appropriate to the module.
- Check provider, key, model, style and prompt.
- Submit a known question or a new test post instead of starting a large batch.
- Compare output with your facts, language, link and requested length.
- Ask something not covered in the materials and inspect behavior.
- Compare logs with usage in the provider dashboard.
Successful AI generation and successful Telegram delivery are separate stages. Error handling depends on the module. There is no universal promise of automatic template fallback or backup-model switching for every provider, particularly custom services.
Troubleshooting
| Symptom | Check |
|---|---|
| Provider missing | Connection saved with a default model; DG2 free is hidden |
| Model not found | Refresh, exact API ID, selected service |
| AI API 401/403 | Key and service permissions |
| 429 | Provider quotas and rate limits; repeated requests can use resources |
| Catalog works, generation fails | Generation permission, request format, module log |
| Irrelevant answer | Style, prompt, supplied context and working module |
| N/A balance or zero price | Whether price data is available; check service dashboard |
| Settings changed after preset | Unavailable old provider/model; inspect current values |