Skip to main content
Every reply sent from an email address connected to OpenCX, whether the AI or a teammate wrote it, is wrapped in that address’s HTML template. The template is also where the signature goes: its variables fill in the teammate who replied, so each agent signs their own emails from one shared layout.

Where to edit it

  • Template: open the address under Channels → Email. The editor lists every variable and previews the result with sample values. You can also ask the Companion to write it, or use the email channels API.
  • Each teammate’s job title: set by the teammate in Settings → My Profile, or by an admin from the edit dialog on the Members page.
Without a custom template, OpenCX uses a simple default layout.

Variables

The agent_* variables are empty while only the AI has handled a session. Wrap a personal sign-off in a condition, or AI replies will end with a blank name line.

Sign each reply as the agent

Conditions support {{#if …}}, {{elseif …}}, {{else}} and {{/if}}, with ==, !=, &&, || and !, for example {{#if session.language == "ar"}}.

Tips

  • Use tables and inline style attributes for layout; many mail clients ignore <style> blocks.
  • Host logos and images at a public URL rather than embedding them; many mail clients block embedded images.
  • Saving a template applies to the next reply from that address. Send yourself a test reply to check it in a real mail client.