Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
PersonalizeCloud Portal
Sitecore Personalize
        • Add a programmable decision
        • Create a programmable with the Code Assistant
        • Add a decision template
        • Examples of programmable decisions
        • Use custom fields
        • Including dates
        • Copy programmable decisions
        • Including print statements
        • Troubleshooting
    • Managing data systems
  • Using client-side JavaScript
  • Glossary
  1. Managing programmable decisions
  1. Sitecore Personalize
  2. Introduction to decisioning in Sitecore Personalize
  3. Managing programmable decisions
  4. Add a decision template to the decision canvas

Add a decision template to the decision canvas

You can add a preconfigured decision to a decision model variant, by using a decision template. You just drag-and-drop a decision template to the decision canvas. Decision templates enable you to use JavaScript in decision model variants without having to edit or look at code.

If the creator of the decision template configured a form to display, you can further configure the decision by completing the form.

To add a decision template to a decision model variant:

  1. From the decision canvas, click and drag the Decision Template component from the palette to the decision canvas.

  2. Place your cursor on the component where it reads the name of the Decision Template.

    The name becomes editable.

  3. Enter a unique name for the Decision.

  4. Click the Edit icon to configure the Decision further.

    A new tab displays. If the creator of the Decision Template configured a form, it displays for you to complete. Alternatively, the JavaScript editor displays, if you want to edit or write JavaScript.

  5. Click Save.

Note

If you're a technical user and want to edit the Decision Template, click the Advanced Mode link to access the Decision Template. See Creating Decision Templates for details on how to edit Decision Templates.

 

If you have suggestions for improving this article, let us know!

© Copyright 2026, Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use