Toggle menu

Configuration

Components

Templates are managed using a single iCM Form App. Template data is saved to the iCM database in two encoded iCM Objects. A group of end points handles the creation, retrieval, import and export of template data. A single end point can be used to send all communications.

Component TypeName
FormCOMMSTEMPLATEMANAGER
End Point Groupgoss.CommsTemplateManager
Configuration End Pointconfig.[env].CommsTemplatemanager.getConfig
Object TypesEMAILMANAGEMENT and EMAILTEMPLATES

End Points

The CTM uses the standard GOSS end point configuration structure.

The configuration end point holds the following settings.

function(params, credentials) {
    let config = {};
    config.sendEmail = true;
    config.sendSMS = false;
    config.emailWorker = '';
    config.smsWorker = '';
    config.commsProviders = {
        icm: {},
        govNotify: {
            emailTemplateId: "b9c6be73-xxxx-xxxx-xxxx-8bce922c18ec",
            smsTemplateId: "e4d3358a-xxxx-xxxx-xxxx-b82b240ae0cd"
        }
    };
    return config;
}

PropertyTypeDescription
sendEmailBooleantrue to enable emails
sendSMSBooleantrue to enable SMS messages
emailWorkerStringThe name of the email worker. An empty string will use the platform's "email" worker. The only options are icm or govNotify
smsWorkerStringThe name of the SMS worker. An empty string will use the platform's "sms" worker (if enabled)
commsProvidersObjectAdditional configuration for the email or SMS service, see below

Enabling GOV.UK Notify

Notify is a premium service. You'll need to have a GOV.UK Notify account and the GOSS GovNotify Connector (worker) to use this feature.

Changing the worker configuration to use govNotify is a universal change that will be applied to all products/applications that send emails via the Comms Manager. If you have existing HTML templates this will need to be rewritten in Markdown.

The Notify integration has been written in a way that expects your full template to be written in the Comms Manager, and a single basic template, with just a ((body)) placeholder is created in Notify and used for all emails - see Markdown with GOV.UK Notify for a full description.

The ID of your template should be added here as the emailTemplateId. Only a single template can be supported and it will be used for all emails.

Last modified on 30 January 2025

Share this page

Facebook icon Twitter icon email icon

Print

print icon