Update the project insights header and footer of your email using script include

task australia Updated Sep 10, 2026 1 min read script-include-email-template.md
Raw file servicenow.com

Use the script include to modifying the email template for project summary.

Before you begin

Install the ServiceNow Otto for SPM application and check if the project insights generation skill is active.

Role required: admin

Procedure

  1. Navigate to All > System UI > Script Includes.

  2. Open the ProjectInsightsEmailTemplateCustomConstants script include and update the ProjectInsightsEmailTemplateCustomConstants.EMAIL_HEADER_HTML constant for email's header.

    This example demonstrates the script include for email's header as follows:

    XML
     ProjectInsightsEmailTemplateCustomConstants.EMAIL_HEADER_HTML = `<p><span style="color: white;"><a href="https://www.servicenow.com/" target="_blank" rel="noopener noreferrer nofollow"><span style="color: white; text-decoration: none;"><span style="color: blue;"><img style="height: 30px; width: 150px; border: none;" src="sn_spm_gen_ai.sn-logo-project-insights.png" alt="servicenow logo" height="30px" border="0" /></span></span></a></span></p>`;
  3. Update the ProjectInsightsEmailTemplateCustomConstants.EMAIL_FOOTER_HTML constant for email's footer.

    This example demonstrates the script include for email's footer as follows:

    XML
    ProjectInsightsEmailTemplateCustomConstants.EMAIL_FOOTER_HTML = `<p style="border-top: 1px solid #293e40; line-height: 0;"><span style="color: #999999;">&nbsp;</span></p><div style="caret-color: #212121; color: #212121; font-family: Aptos; font-size: 16px; width: 100%; margin: 0 auto; padding: 0; background-color: #ffffff;">      <!-- Logo Section -->      <div style="line-height: 0.8;">        <span>          <a href="https://www.servicenow.com/" target="_blank" rel="noopener noreferrer nofollow" style="text-decoration: none;">            <img src="sn_spm_gen_ai.sn-logo-project-insights.png" alt="servicenow logo" style="height: 20px; width: auto; border: none;" />          </a>        </span>      </div>      <!-- Address and Footer Information -->      <div style="font-family: 'Century Gothic', CenturyGothic, Helvetica, sans-serif; font-size: 12px; line-height: 0.8; color: #293e40; margin-top: 5px;">        <p style="margin-bottom: 0; padding: 0; line-height: 0.8; font-size: 10px;">          <span>2225 Lawson Lane, Santa Clara, CA 95054, United States</span>        </p>        <p style="margin-bottom: 0; padding: 0; line-height: 0.8; font-size: 10px; color: #293e40;">          <span>&copy; 2024 ServiceNow. All rights reserved</span>        </p>      </div>    </div>`;

    On completion, the project summary email template is customized with the header and footer.

Parent Topic:Configure AI Admin Hub

Search documentation
Search document titles and file paths on the australia branch