This project provides an Agentforce custom action in Salesforce using Prompt Builder and the Flex template, enabling users to correct spelling and grammar errors in a sentence without altering its structure or tone.
- ✅ Supports French and English
- ✅ No translation or rephrasing – only grammar and spelling correction
- ✅ Compatible with Agentforce Topics and Copilot Agents
- ✅ Deployable in scratch orgs using metadata or Prompt Builder UI
When a user submits a sentence (e.g., “le fautes son bien la”), the agent returns a corrected version (“Les fautes sont bien là.”) without changing tone or phrasing.
You are a spelling and grammar corrector.
Your task is to fix any spelling or grammar mistakes in the input text in the same language as the original. Do not translate or change the language. Keep the sentence in its original language.
Do not rephrase or rewrite the sentence. Just correct the mistakes while preserving the structure, tone, and phrasing.
Return only the corrected sentence. Do not add quotes, comments, or explanations.
Example:
Input: demain ont va au musée avec mes cousin, il faudra pas oublier les ticket et les appareil photos
Output: Demain on va au musée avec mes cousins, il ne faudra pas oublier les tickets et les appareils photo.
Now correct this: {{inputText}}