---
title: "AI in Personalize"
slug: "ai-in-personalize"
abstract: "Get AI-powered insights and recommendations, and use natural language prompts to create custom JavaScript for working with Sitecore Personalize data in audience export, conditions, and session traits."
---
# AI in Personalize

Sitecore Personalize includes AI features that enhance your work with the data available in your instance of Personalize. AI features are powered by [Sitecore Stream](https://doc.sitecore.com/stream/en/users/sitecore-stream/sitecore-stream.html).

## AI-assisted code generation via Sitecore Stream

You can write code in Personalize with the help of the Code Assistant, an AI-powered tool that generates JavaScript tailored to the specific Personalize feature you are working with. You prompt the Code Assistant in natural language, and it responds with complete JavaScript code, ready for use within that feature.

Code Assistant is available in the following areas of Personalize:

- [Conditions](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/developer-center/conditions/create-a-condition-with-the-code-assistant.html "Create a condition with the Code Assistant") - create custom conditions so you can filter the audience for an experience or experiment.
- [Programmables](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-decisioning-in-sitecore-personalize/managing-programmable-decisions/create-a-programmable-with-the-code-assistant.html "Create a programmable with the Code Assistant") - create programmables in decision models to assist with offer decisioning in an experience or experiment.
- [Session traits](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/developer-center/session-traits/create-a-session-trait-with-the-code-assistant.html "Create a session trait with the Code Assistant") - create a session trait to aggregate events from a customer's web session, perform calculations at the end of the session, and store the results as a session trait attribute in the guest profile. You can use session traits when creating experiences, experiments, and decision models.

For more information about the assistant and how to best prompt it, see [Code Assistant](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/ai-in-personalize/code-assistant.html "Code Assistant").