The Ask AI action with the Private & Secure AI source lets you run open-source AI models hosted on TimeTonic's sovereign infrastructure in France.
Processed data never leaves the environment controlled by TimeTonic. No transfer to any external provider.
Each AI call consumes TimeTonic credits (1 credit = 1,000 tokens). Consumption varies depending on the selected model.
Mistral, LLaMA, Qwen, and other models deployed on TimeTonic's infrastructure.
1. Model selection
Choose the AI model to use from those available on TimeTonic's sovereign infrastructure. Each model displays its maximum context window and credit cost directly in the list.
📎 Vision: the model can analyze an attached image and understand its content
📄 OCR: the model can extract structured text from document photos
Total context = combined input + output · Input /M and Output /M = credits per million tokens · K = thousands · M = millions
2. AI role description
This field defines the expected behavior and context for the model. A precise role significantly improves the quality and consistency of responses.
"You are an assistant responsible for extracting structured information."
"You are an expert in analyzing administrative documents."
3. Prompt
The prompt is the precise instruction sent to the model. Use the
$ symbol to dynamically inject values from your fields.
💡 The more precise and contextualized the prompt, the more relevant the response will be.
For PDF or image analysis, a specific prompt is required → See OCR PDF & images prompts
4. Attachments
Select a field containing image files to allow the AI to analyze their content. Useful for:
⚠️ Only models with the 📎 Attachments badge support this option. Verify compatibility before using in production.
For PDF file processing → See the OCR PDF & images procedure
5. Maximum token count
The Maximum token count field caps the length of the response generated by the model.
Adjust this parameter to match the nature of the task → limiting tokens helps control your TimeTonic credit consumption. A 100-token response costs ten times less than a 1,000-token response.
The token count directly impacts your credit consumption. To anticipate the impact before configuring your action → Estimate your AI credit consumption
6. Response format
The response format determines how the AI-generated response will be structured and stored in your notebook. Two options are available:
The response is stored as-is in a text field. Ideal for summaries, comments, or free-form responses.
Each JSON property is stored in a dedicated field. Recommended for structured extractions and automated processing.
💡 The Structured JSON format requires a specific prompt in the Prompt field to instruct the model on which data to extract and in what structure → especially for PDF or image analysis. Each JSON key then maps to a destination field in your record.
See the OCR PDF & images configuration →
7. Response field
This field determines where the AI response will be stored in your notebook. Its behavior depends directly on the format selected in the previous step.
8. Credit consumption
Learn more
AI credits by license plan
Learn more
Consumption in the logs
Learn more
Credits exhausted: what to do?
Best practices
- Define a precise role before writing the prompt.
- Limit the token count when a short response is sufficient.
- Test the automation with realistic data.
- Check consumption in the logs after the first runs.