Translate French to English (or back) for an AI agent: the manual method, then one call
When an AI agent has to handle French text (a supplier email, a Quebec contract clause, a product page), it often needs an English version, or the reverse. This guide covers the manual method first, then the shortest automated path.
1. Decide what the translation is for
Before choosing a tool, answer three questions:
- Is it a legal or contractual text? A translation of a contract, a licence or a regulatory notice should be reviewed by a human translator. A machine output is a draft, not a legal version.
- Is it a working text? Emails, summaries, support tickets and product descriptions can be translated automatically and spot-checked.
- Does the agent need the meaning or the exact wording? For a summary, a faithful meaning is enough. For a quote, the exact words matter.
2. The manual method (free)
- Look for an existing official translation first. Many Canadian government texts already exist in both languages.
- Check the terms in Termium Plus, the federal government's terminology bank: https://www.btb.termiumplus.gc.ca/ . It gives the official English or French term for administrative and legal vocabulary (for example "sous-traitant" = "subcontractor", "licence" = "licence").
- Use a general machine translator for a first draft, then compare the key terms (names, amounts, dates, legal references) against the source. Never trust a number you have not checked.
- Ask a bilingual human to read the result when the text has consequences (a signed contract, a notice, a price list).
Quebec-specific terms are the usual trap: "RBQ" stays "RBQ" (Régie du bâtiment du Québec), "REQ" is the Registraire des entreprises du Québec, and "inc." or "ltée" are not translated.
3. The automated path with Tolca
If your agent calls many texts a day, a manual check does not scale. Tolca exposes a translation endpoint for agents:
- HTTP (x402, pay per call in USDC on Base):
POST https://tolca.tonbot.ca/v1/translate. The exact request fields are in the OpenAPI description: https://tolca.tonbot.ca/openapi.json - MCP server:
https://tolca.tonbot.ca/mcp/public. Connect it to an agent framework that supports remote MCP servers, then call the translate tool with the text and the direction (French to English or English to French).
The output is a machine translation. Keep the step 2 checks for any text that has legal or financial consequences: compare names, amounts, dates and reference numbers against the source before you use the result.
4. A simple pipeline for an agent
- Detect the language of the input (if it is already in the target language, skip the call).
- Translate the text in one call.
- Run a check on the output: the same numbers, dates and proper names as in the source.
- If a check fails, send the text to a human reviewer instead of guessing.
5. What to avoid
- Translating a whole document in one unchecked pass when it contains amounts or deadlines.
- Translating names of companies or people: keep them as they appear in the official register.
- Treating a machine translation as a certified translation for court or government filings.
Related reading
- Tolca guide on checking a Quebec company before paying it: https://tolca.tonbot.ca/guides
- Tolca guide on extracting structured data from a web page for an agent: https://tolca.tonbot.ca/guides/extraire-donnees-page-web-agent-ia-json
- What x402 is and how an agent pays for an API call: https://tolca.tonbot.ca/guides/what-is-x402
POST https://tolca.tonbot.ca/v1/verify-business (x402, USDC on Base) · free in Claude or ChatGPT through MCP: https://tolca.tonbot.ca/mcp/public