<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">Blog posts by Michał Mitas</title><link href="https://world.optimizely.com/blogs/micha-mitas/" /><updated>2026-11-18T21:30:51.0000000Z</updated><id>https://world.optimizely.com/blogs/micha-mitas/</id><generator uri="https://world.optimizely.com/blogs/micha-mitas/" version="2.0">Optimizely World</generator><entry><title>CMS 13 Headless Masterclass, Part 1: Introduction</title><link href="https://www.michalmitas.com/optimizely/cms-13/headless-masterclass" /><id>https://www.michalmitas.com/optimizely/cms-13/headless-masterclass</id><published>2026-11-18T00:00:00.0000000Z</published><updated>2026-11-18T21:30:49.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">Why Optimizely CMS 13 is ready to build on, why headless is its natural fit, and what this masterclass builds, part by part.</summary></entry><entry><title>Semantic Search - Deep Dive</title><link href="https://michalmitas.com/blog/optimizely/graph/semantic-search" /><id>https://michalmitas.com/blog/optimizely/graph/semantic-search</id><published>2026-05-14T00:00:00.0000000Z</published><updated>2026-05-14T09:30:30.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">Deep dive into semantic search with Optimizely Graph</summary></entry><entry><title>Building a Custom RAG for Optimizely Opal</title><link href="https://michalmitas.com/blog/optimizely/opal/opal-rag" /><id>https://michalmitas.com/blog/optimizely/opal/opal-rag</id><published>2026-05-14T00:00:00.0000000Z</published><updated>2026-05-14T09:30:31.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">Opal's built-in knowledge is limited to content inside Optimizely One. Here's how to design a custom RAG service for documents that live outside the CMS — and plug it into Opal as a custom tool.</summary></entry><entry><title>Building a Custom RAG for Optimizely Opal</title><link href="https://michalmitas.com/blog/optimizely/opal/building-a-custom-rag-for-optimizely-opal" /><id>https://michalmitas.com/blog/optimizely/opal/building-a-custom-rag-for-optimizely-opal</id><published>2026-05-14T00:00:00.0000000Z</published><updated>2026-05-14T10:30:33.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">How to design a standalone RAG service for documents that don't belong in Optimizely One, and expose it to Opal and other AI tools without coupling it to any single platform.</summary></entry><entry><title>Building a Custom RAG for Optimizely Opal</title><link href="https://www.michalmitas.com/blog/optimizely/agent-platform/building-a-custom-rag-for-optimizely-agent-platform" /><id>https://www.michalmitas.com/blog/optimizely/agent-platform/building-a-custom-rag-for-optimizely-agent-platform</id><published>2026-05-14T00:00:00.0000000Z</published><updated>2026-11-18T21:30:50.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">How to build a standalone RAG service for documents that don't belong in Optimizely One, and expose it to Opal as a tool without tying it to one platform.</summary></entry><entry><title>CMS 13: The New Core Element of Your AI-First Optimizely Platform</title><link href="https://michalmitas.com/blog/optimizely/cms13/cms13-ai-first-platform" /><id>https://michalmitas.com/blog/optimizely/cms13/cms13-ai-first-platform</id><published>2026-04-11T00:00:00.0000000Z</published><updated>2026-04-11T13:30:33.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">CMS 13 is out and already brings solid AI-first foundations. With impressive features already shipped and an exciting roadmap ahead, this is the release that changes the conversation around AI adoption on Optimizely.</summary></entry><entry><title>CMS 13: The New Core Element of Your AI-First Optimizely Platform</title><link href="https://www.michalmitas.com/blog/optimizely/cms13/cms13-ai-first-platform" /><id>https://www.michalmitas.com/blog/optimizely/cms13/cms13-ai-first-platform</id><published>2026-04-11T00:00:00.0000000Z</published><updated>2026-11-18T21:30:50.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">CMS 13 is out with real AI-first foundations: Graph as the RAG layer for Opal, ready-made agents, Visual Builder, and what's coming next, like the MCP server.</summary></entry><entry><title>Building AI-Powered Tools with Optimizely Opal - A Step-by-Step Guide</title><link href="https://michalmitas.com/blog/opal-tools-tutorial" /><id>https://michalmitas.com/blog/opal-tools-tutorial</id><published>2026-01-26T00:00:00.0000000Z</published><updated>2026-01-26T16:30:44.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">Learn how to build and integrate custom tools with Optimizely Opal using the Opal Tools SDK. This tutorial walks through creating tools, handling authorization, and leveraging AI reasoning.</summary></entry><entry><title>Building AI-Powered Tools with Optimizely Opal - A Step-by-Step Guide</title><link href="https://michalmitas.com/blog/optimizely/opal/building-ai-powered-tools-with-optimizely-opal-a-step-by-step-guide" /><id>https://michalmitas.com/blog/optimizely/opal/building-ai-powered-tools-with-optimizely-opal-a-step-by-step-guide</id><published>2026-01-26T00:00:00.0000000Z</published><updated>2026-04-10T12:32:11.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">Learn how to build and integrate custom tools with Optimizely Opal using the Opal Tools SDK. This tutorial walks through creating tools, handling authorization, and leveraging AI reasoning.</summary></entry><entry><title>Building AI-Powered Tools with Optimizely Opal - A Step-by-Step Guide</title><link href="https://www.michalmitas.com/blog/optimizely/agent-platform/building-ai-powered-tools-with-optimizely-agent-platform-a-step-by-step-guide" /><id>https://www.michalmitas.com/blog/optimizely/agent-platform/building-ai-powered-tools-with-optimizely-agent-platform-a-step-by-step-guide</id><published>2026-01-26T00:00:00.0000000Z</published><updated>2026-11-18T21:30:50.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">A step-by-step .NET tutorial on building custom tools for Optimizely Opal with the Opal Tools SDK: creating and registering tools, and adding authorization.</summary></entry><entry><title>2025 Wrapped: Optimizely's Year of AI Acceleration and Opal Momentum</title><link href="https://michalmitas.com/blog/2025-wrapped" /><id>https://michalmitas.com/blog/2025-wrapped</id><published>2025-12-29T00:00:00.0000000Z</published><updated>2025-12-29T00:30:38.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">A look back at Optimizely's most transformative year yet, with Opal at the center - and what's coming next in 2026.</summary></entry><entry><title>2025 Wrapped: Optimizely's Year of AI Acceleration and Opal Momentum</title><link href="https://michalmitas.com/blog/optimizely/2025-wrapped-optimizelys-year-of-ai-acceleration-and-opal-momentum" /><id>https://michalmitas.com/blog/optimizely/2025-wrapped-optimizelys-year-of-ai-acceleration-and-opal-momentum</id><published>2025-12-29T00:00:00.0000000Z</published><updated>2026-04-10T12:32:10.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">A look back at Optimizely's most transformative year yet, with Opal at the center - and what's coming next in 2026.</summary></entry><entry><title>2025 Wrapped: Optimizely's Year of AI Acceleration and Opal Momentum</title><link href="https://www.michalmitas.com/blog/optimizely/2025-wrapped-optimizelys-year-of-ai-acceleration" /><id>https://www.michalmitas.com/blog/optimizely/2025-wrapped-optimizelys-year-of-ai-acceleration</id><published>2025-12-29T00:00:00.0000000Z</published><updated>2026-11-18T21:30:51.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">A look back at 2025 for Optimizely: Opal growing from an assistant into agent orchestration, platform progress beyond AI, and what to expect in 2026.</summary></entry><entry><title>Going Headless: 3 Ways to Store Custom Data in Optimizely Graph</title><link href="/Recycle-Bin/going-headless-3-ways-to-store-custom-data-in-optimizely-graph/" /><id>/Recycle-Bin/going-headless-3-ways-to-store-custom-data-in-optimizely-graph/</id><published>2025-11-03T10:23:28.0000000Z</published><updated>2025-11-03T10:23:28.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">&lt;p&gt;Welcome to another installment of my&amp;nbsp;&lt;em&gt;Going Headless&lt;/em&gt;&amp;nbsp;series. Previously, we covered:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/link/e41f24d11ff7488db0b8ccc26b9711a7.aspx"&gt;Going Headless: Making the Right Architectural Choices&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/link/425ad6b768e94410ab706643559c4f96.aspx"&gt;Going Headless: On-Page Editing with Optimizely Graph and Next.js&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/link/c4887f08a93144b19377f27068985f71.aspx"&gt;Going Headless: Optimizely Graph vs Content Delivery API&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So far, we've talked about architectural decisions, on-page editing, and how Optimizely Graph compares to other APIs.&lt;br /&gt;Today, we'll take the next step and look at&amp;nbsp;&lt;strong&gt;how to store and expose your custom data in Optimizely Graph&lt;/strong&gt;&amp;nbsp;&amp;mdash; data that doesn't necessarily come directly from CMS properties.&lt;/p&gt;
&lt;p&gt;This article walks through&amp;nbsp;&lt;strong&gt;three different approaches&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Using the Conventions API&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Creating a custom&lt;/strong&gt;&amp;nbsp;&lt;span style="color: rgb(224, 62, 45);"&gt;&lt;span style="color: rgb(186, 55, 42);"&gt;IContentApiModelProperty&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;implementation&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Using the Graph Source SDK&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Each method offers a different level of control, flexibility, and effort. Let's dive in.&lt;/p&gt;
&lt;h2 class="flex scroll-m-28 flex-row items-center gap-2"&gt;1. Using the Conventions API&lt;/h2&gt;
&lt;p&gt;The first and most straightforward method for influencing how your data is indexed in Optimizely Graph is through the&amp;nbsp;&lt;strong&gt;Conventions API&lt;/strong&gt;. This API allows developers to modify or extend how CMS content is represented when it's sent to the indexing pipeline. In other words, before your content gets published to Graph, the Conventions API gives you a hook to reshape or enrich the data.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;When to use it&lt;/h3&gt;
&lt;p&gt;If you only need to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Exclude specific properties or content types,&lt;/li&gt;
&lt;li&gt;Include some custom fields,&lt;/li&gt;
&lt;li&gt;Add some lightweight metadata derived from existing content properties&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;hellip;then the Conventions API is your best friend.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Example:&lt;/h3&gt;
&lt;p&gt;Let's say you have a&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;LandingPage&amp;nbsp;&lt;/span&gt;and&amp;nbsp;&lt;span style="color: rgb(224, 62, 45);"&gt;&lt;span style="color: rgb(186, 55, 42);"&gt;InternalSettingsPage&lt;/span&gt;&amp;nbsp;&lt;/span&gt;content types:&lt;/p&gt;
&lt;pre class="language-csharp"&gt;&lt;code&gt;// InternalSettingsPage.cs
[ContentType(DisplayName = "Internal Settings Page")]
public class InternalSettingsPage : SitePageData
{
    [Display(
        Name = "Some Internal Setting",
        Description = "A confidential value / setting that should not be published in Graph")]
    public virtual string? SomeInternalSetting { get; set; }
}&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="language-csharp"&gt;&lt;code&gt;// LandingPage.cs
using EPiServer.Core;
using EPiServer.DataAnnotations;
using System.ComponentModel.DataAnnotations;

[ContentType(DisplayName = "Landing Page")]
public class LandingPage : SitePageData
{
    [Display(
        Name = "Secret Property",
        Description = "A confidential value not published in Graph")]
    public virtual string? SecretProperty { get; set; }

    [Display(
        Name = "Title Prefix",
        Description = "Prefix for the page title")]
    public virtual string? TitlePrefix { get; set; }

    [Display(
        Name = "Title",
        Description = "The main page title")]
    public virtual string? Title { get; set; }

    public virtual string PageTitle()
    {
        return TitlePrefix + " " + Title;
    }
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For these content types you want to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Exclude&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;InternalSettingsPage&lt;/span&gt;&amp;nbsp;content type from being indexed to Graph&lt;/li&gt;
&lt;li&gt;Exclude the&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;SecretProperty&lt;/span&gt;&amp;nbsp;to prevent it from leaking into Graph, and&lt;/li&gt;
&lt;li&gt;Include custom&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;PageTitle&lt;/span&gt;&amp;nbsp;property (being a mix of TitlePrefix and Title properties) in the Graph index&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can do it with a simple convention registration:&lt;/p&gt;
&lt;pre class="language-csharp"&gt;&lt;code&gt;// GraphConventions.cs
using EPiServer.Framework;
using EPiServer.Framework.Initialization;
using EPiServer.ServiceLocation;
using Optimizely.ContentGraph.Cms.NetCore.ConventionsApi;

[ModuleDependency(typeof(EPiServer.Web.InitializationModule))]
public class GraphConventions : IInitializableModule
{
    public void Initialize(InitializationEngine context)
    {
        var conventionRepository = context.Locate.Advanced.GetInstance&amp;lt;ConventionRepository&amp;gt;();

        conventionRepository.ExcludeContentType&amp;lt;InternalSettingsPage&amp;gt;();

        conventionRepository.ForInstancesOf&amp;lt;LandingPage&amp;gt;()
            .ExcludeField(x =&amp;gt; x.SecretProperty);
            
       conventionRepository.ForInstancesOf&amp;lt;LandingPage&amp;gt;()
            .IncludeField(x =&amp;gt; x.PageTitle());
    }

    public void Uninitialize(InitializationEngine context) { }
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once this convention is registered, Optimizely will skip excluded content types and apply defined adjustments whenever a &lt;code&gt;LandingPage&lt;/code&gt; is serialized for indexing in Graph.&lt;/p&gt;
&lt;h2 class="flex scroll-m-28 flex-row items-center gap-2"&gt;2. Creating a Custom&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;IContentApiModelProperty&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Sometimes conventions alone aren't enough.&lt;br /&gt;Maybe you want to inject&amp;nbsp;&lt;strong&gt;dynamic data&lt;/strong&gt;&amp;nbsp;that doesn't exist in CMS at all &amp;mdash; data coming from another service, or a calculated value that depends on runtime conditions.&lt;/p&gt;
&lt;p&gt;That's when&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;IContentApiModelProperty&lt;/span&gt;&amp;nbsp;comes into play.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;What it does&lt;/h3&gt;
&lt;p&gt;&lt;span style="color: rgb(186, 55, 42);"&gt;IContentApiModelProperty&lt;/span&gt;&amp;nbsp;allows you to define&amp;nbsp;&lt;strong&gt;a new property&lt;/strong&gt;&amp;nbsp;that will be available for all content items (or selected ones) when indexed in Optimizely Graph.&lt;br /&gt;You can think of it as a plug-in point for adding custom, computed, or external data to the Graph model.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Example: Adding a custom property&lt;/h3&gt;
&lt;p&gt;Here's a simple implementation:&lt;/p&gt;
&lt;pre class="language-csharp"&gt;&lt;code&gt;using Optimizely.ContentGraph.Cms.Core.ContentApiModelProperties;

public sealed class CustomApiModelProperty : IContentApiModelProperty
{
    private readonly IContentLoader _contentLoader;

    public CustomApiModelProperty(IContentLoader contentLoader)
    {
        _contentLoader = contentLoader;
    }

    public string Name =&amp;gt; "CustomPropertyName";

    public object GetValue(ContentApiModel contentApiModel)
    {
        // Example: Load the content and derive a value dynamically
        if (_contentLoader.TryGet(
            new ContentReference(contentApiModel.ContentLink.Id ?? 0), 
            out SitePageData page))
        {
            return $"calculated-value-for-{page.Name}";
        }

        return null;
    }
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When this property is registered,&amp;nbsp;&lt;strong&gt;every content item&lt;/strong&gt;&amp;nbsp;sent to Optimizely Graph will include an additional field called&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;CustomPropertyName,&lt;/span&gt; with whatever value you return from&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;GetValue()&lt;span style="color: rgb(255, 255, 255);"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;For example, the Graph output might look like this:&lt;/p&gt;
&lt;pre class="language-javascript"&gt;&lt;code&gt;{
  "name": "About Us",
  "customPropertyName": "calculated-value-for-About Us"
}&lt;/code&gt;&lt;/pre&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Practical uses&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Injecting content from external APIs (for example, pulling stock data for product pages)&lt;/li&gt;
&lt;li&gt;Calculating derived values (e.g., reading time, rating averages)&lt;/li&gt;
&lt;li&gt;Adding environment or contextual metadata&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 class="flex scroll-m-28 flex-row items-center gap-2"&gt;3. Using the Graph Source SDK&lt;/h2&gt;
&lt;p&gt;The last approach is the most flexible &amp;mdash; and the most decoupled from CMS.&lt;br /&gt;If you have data&amp;nbsp;&lt;strong&gt;completely external&lt;/strong&gt;&amp;nbsp;to the CMS (e.g., from a CRM, ERP, or a custom database), you can use the&amp;nbsp;&lt;strong&gt;Optimizely Graph Source SDK&lt;/strong&gt;&amp;nbsp;to push it directly into Graph.&lt;/p&gt;
&lt;p&gt;The SDK gives you full control over what and how you publish to Optimizely Graph, allowing you to create&amp;nbsp;&lt;strong&gt;custom schemas&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;populate data manually&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;When to use it&lt;/h3&gt;
&lt;p&gt;Use the SDK when:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You need to index non-CMS data (e.g., product catalogs, events, user profiles)&lt;/li&gt;
&lt;li&gt;You want to synchronize third-party data sources with Graph&lt;/li&gt;
&lt;li&gt;You're building a headless architecture where CMS is just one of multiple content sources&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Example: Pushing external data&lt;/h3&gt;
&lt;p&gt;Here's a simplified example based on the&amp;nbsp;&lt;a href="https://github.com/episerver/graph-source-sdk"&gt;Graph Source SDK on GitHub&lt;/a&gt;:&lt;/p&gt;
&lt;pre class="language-csharp"&gt;&lt;code&gt;using Optimizely.Graph.Source.Sdk;
using Optimizely.Graph.Source.Sdk.SourceConfiguration;

public class ExternalProduct
{
    public string? Id { get; set; }
    public string? Name { get; set; }
    public double Price { get; set; }
}

// Initialize the GraphSourceClient by calling the Create method
var source = "custom-source";
var appKey = "your-app-key";
var secret = "your-secret";

// Initialize the GraphSourceClient by calling the Create method
var client = GraphSourceClient.Create(new Uri("https://cg.optimizely.com"), source, appKey, secret);

// Add a language preference
client.AddLanguage("en");

// Configure content type for ExternalProduct
client.ConfigureContentType&amp;lt;ExternalProduct&amp;gt;()
    .Field(x =&amp;gt; x.Id, IndexingType.Searchable)
    .Field(x =&amp;gt; x.Name, IndexingType.Searchable)
    .Field(x =&amp;gt; x.Price, IndexingType.Queryable);

// Save content types to Optimizely Graph
client.SaveTypesAsync();

// Instantiate and assign values for ExternalProduct
var product = new ExternalProduct
{
    Id = "SKU-001",
    Name = "Custom Running Shoes",
    Price = 129.99,
};

// Use the client to sync the product
client.SaveContentAsync(generateId: (x) =&amp;gt; x.Id, "en", product);&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This code defines a custom schema &lt;span style="color: rgb(186, 55, 42);"&gt;(ExternalProduct)&lt;/span&gt; and publishes it to Optimizely Graph.&lt;br /&gt;Once indexed, you can query your data directly through GraphQL &amp;mdash; just like CMS content.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Important note about Optimizely Graph sources:&lt;/strong&gt;&lt;br /&gt;In the code above, we specified the source as&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;custom-source,&lt;/span&gt; but you may choose any name to logically separate your data sources. Each&amp;nbsp;&lt;em&gt;source&lt;/em&gt;&amp;nbsp;acts as its own container in Optimizely Graph.&lt;/p&gt;
&lt;p&gt;By default, CMS content is stored in the&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;default&lt;/span&gt;&amp;nbsp;source. If you were to use&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;default&lt;/span&gt;&amp;nbsp;as the source when pushing custom types, you risk overwriting your entire Graph schema for that source. This is because calling&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;client.SaveTypesAsync()&lt;/span&gt;&amp;nbsp;replaces all content types in the target source with only those specified by&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;ConfigureContentType.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To avoid disrupting your CMS data and schema, always register external data under a separate source name (such as&amp;nbsp;&lt;span style="color: rgb(186, 55, 42);"&gt;custom-source).&lt;/span&gt; This keeps your external types isolated and safe from unintended changes.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Example query&lt;/h3&gt;
&lt;pre class="language-javascript"&gt;&lt;code&gt;query CustomQuery {
  ExternalProduct {
    items {
      Id
      Name
      Price
    }
  }
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And you'll get:&lt;/p&gt;
&lt;pre class="language-javascript"&gt;&lt;code&gt;{
  "data": {
    "ExternalProduct": {
      "items": [
        {
          "Id": "SKU-001",
          "Name": "Custom Running Shoes",
          "Price": 129.99
        }
      ]
    }
  },
  "extensions": {
    "correlationId": "998b0a360df95906",
    "cost": 23,
    "costSummary": [
      "ExternalProduct(23) = limit(20) + 3*fields(1)"
    ]
  }
}&lt;/code&gt;&lt;/pre&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Key takeaway&lt;/h3&gt;
&lt;p&gt;Use the Graph Source SDK when:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Your data lives outside CMS,&lt;/li&gt;
&lt;li&gt;You want total control over schemas,&lt;/li&gt;
&lt;li&gt;You're integrating Graph as part of a larger headless ecosystem.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It's the most advanced option &amp;mdash; but it also opens up the most possibilities.&lt;/p&gt;
&lt;h2 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Wrapping Up&lt;/h2&gt;
&lt;p&gt;In a headless setup,&amp;nbsp;&lt;strong&gt;Optimizely Graph&lt;/strong&gt;&amp;nbsp;becomes much more than a content delivery layer.&lt;br /&gt;It can act as a&amp;nbsp;&lt;strong&gt;centralized data hub&lt;/strong&gt;&amp;nbsp;&amp;mdash; combining CMS content, computed properties, and external datasets under one unified GraphQL API.&lt;/p&gt;
&lt;p&gt;To recap:&lt;/p&gt;
&lt;div class="relative overflow-auto prose-no-margin my-6"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;th&gt;Level of Effort&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Conventions API&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Shaping existing CMS data&lt;/td&gt;
&lt;td&gt;🟢 Low&lt;/td&gt;
&lt;td&gt;Ideal for renaming, excluding, or slightly enriching data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;IContentApiModelProperty&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Injecting dynamic or computed data&lt;/td&gt;
&lt;td&gt;🟠 Medium&lt;/td&gt;
&lt;td&gt;Great for adding calculated or external fields&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Graph Source SDK&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Indexing non-CMS data sources&lt;/td&gt;
&lt;td&gt;🔴 High&lt;/td&gt;
&lt;td&gt;Full control over schema and indexing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Choosing the right approach depends on your architectural goals &amp;mdash; and how &amp;ldquo;headless&amp;rdquo; you really want to go.&lt;/p&gt;
&lt;p&gt;In most projects, a combination works best:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use&amp;nbsp;&lt;strong&gt;Conventions&lt;/strong&gt;&amp;nbsp;for quick tweaks,&lt;/li&gt;
&lt;li&gt;Add&amp;nbsp;&lt;strong&gt;custom properties&lt;/strong&gt;&amp;nbsp;for dynamic logic, and&lt;/li&gt;
&lt;li&gt;Extend with the&amp;nbsp;&lt;strong&gt;SDK&lt;/strong&gt; when you need full control.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That's it for this installment of&amp;nbsp;&lt;em&gt;Going Headless&lt;/em&gt;!&lt;br /&gt;In the next part, we'll look at how to query your combined datasets efficiently &amp;mdash; and how to design your schema for real-world performance.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Further Reading&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.developers.optimizely.com/graph/docs"&gt;Optimizely Graph Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.developers.optimizely.com/content-management-system/docs/conventions-api"&gt;Conventions API Reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/episerver/graph-source-sdk"&gt;Graph Source SDK on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/link/e41f24d11ff7488db0b8ccc26b9711a7.aspx"&gt;Going Headless: Making the Right Architectural Choices&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/link/c4887f08a93144b19377f27068985f71.aspx"&gt;Going Headless: Optimizely Graph vs Content Delivery API&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</summary></entry><entry><title>Going Headless - 3 Ways to Store Custom Data in Optimizely Graph</title><link href="https://michalmitas.com/blog/custom-graph-data" /><id>https://michalmitas.com/blog/custom-graph-data</id><published>2025-11-03T00:00:00.0000000Z</published><updated>2025-12-28T17:30:37.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">Three different approaches to storing custom data in Optimizely Graph.</summary></entry><entry><title>Going Headless - 3 Ways to Store Custom Data in Optimizely Graph</title><link href="https://michalmitas.com/blog/optimizely/cms12/headless/going-headless-3-ways-to-store-custom-data-in-optimizely-graph" /><id>https://michalmitas.com/blog/optimizely/cms12/headless/going-headless-3-ways-to-store-custom-data-in-optimizely-graph</id><published>2025-11-03T00:00:00.0000000Z</published><updated>2026-04-10T12:32:11.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">Three different approaches to storing custom data in Optimizely Graph.</summary></entry><entry><title>Going Headless - 3 Ways to Store Custom Data in Optimizely Graph</title><link href="https://www.michalmitas.com/blog/optimizely/cms12/headless/going-headless-3-ways-to-store-custom-data-in-optimizely-graph" /><id>https://www.michalmitas.com/blog/optimizely/cms12/headless/going-headless-3-ways-to-store-custom-data-in-optimizely-graph</id><published>2025-11-03T00:00:00.0000000Z</published><updated>2026-11-18T21:30:51.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">Three ways to get custom data into Optimizely Graph: the Conventions API, a custom IContentApiModelProperty and the Graph Source SDK, and when to use each.</summary></entry><entry><title>Going Headless: Making the Right Architectural Choices</title><link href="/Recycle-Bin/going-headless-making-the-right-architectural-choices/" /><id>/Recycle-Bin/going-headless-making-the-right-architectural-choices/</id><published>2025-10-17T07:19:44.0000000Z</published><updated>2025-10-17T07:19:44.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">&lt;p&gt;Earlier this year, I began a series of articles about headless architecture:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/link/c4887f08a93144b19377f27068985f71.aspx"&gt;Going Headless: Optimizely Graph vs Content Delivery API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/link/425ad6b768e94410ab706643559c4f96.aspx"&gt;Going Headless: On-Page Editing with Optimizely Graph and Next.js&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Today's post continues that series. Having just completed the launch of a new website built with a headless architecture, I'd like to share key observations, strategic considerations, and my own perspective on the strengths and challenges of the headless model. My goal is to help you make confident, informed choices for your own future project architecture.&lt;/p&gt;
&lt;h2 class="flex scroll-m-28 flex-row items-center gap-2"&gt;What This Article Covers&lt;/h2&gt;
&lt;p&gt;In today's post, we'll start with the fundamentals:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What &amp;ldquo;headless&amp;rdquo; really means in the Optimizely context&lt;/li&gt;
&lt;li&gt;Why some choose it (and why some shouldn't)&lt;/li&gt;
&lt;li&gt;Choosing the right architecture for your headless Optimizely setup&lt;/li&gt;
&lt;li&gt;A high-level architecture overview to ground future discussions&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 class="flex scroll-m-28 flex-row items-center gap-2"&gt;What &amp;ldquo;Headless&amp;rdquo; Means in the Optimizely World&lt;/h2&gt;
&lt;p&gt;In a headless Optimizely setup, the CMS focuses on storing and structuring content and exposing it via APIs. Whether you use a&amp;nbsp;&lt;a href="/link/c4887f08a93144b19377f27068985f71.aspx"&gt;Content Delivery API or Optimizely Graph&lt;/a&gt;, the &amp;ldquo;head&amp;rdquo; (the UI) is a separate app that fetches the content and renders it.&lt;/p&gt;
&lt;h2 class="flex scroll-m-28 flex-row items-center gap-2"&gt;When Headless Might Not Be the Right Choice&lt;/h2&gt;
&lt;p&gt;The headless separation lets the front-end team ship without touching the CMS, and enables you to serve multiple channels from a single content source. While this flexibility is appealing, headless isn't always the right fit for every scenario.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;When headless may not be necessary:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Simple site needs&lt;/strong&gt;: If you only require a basic site, headless can introduce unnecessary complexity.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Limited developer capacity&lt;/strong&gt;: Headless architectures require a skilled front-end team comfortable with API-driven development.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Budget constraints&lt;/strong&gt;: Having two applications means you need to host two applications. This can impact your infrastructure or require additional licences and potentially higher costs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Key challenges of going headless:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Routing and URL management&lt;/strong&gt;: You are responsible for route generation and resolution (slugs, dynamic routes, canonical URLs, redirects, and localization-aware paths). With Optimizely Graph, there's no built-in URL resolver, so you must design and maintain this logic on the front end.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;On-page editing and preview&lt;/strong&gt;: Traditional on-page editing from MVC is not available by default. You'll need to implement preview rendering of drafts, signed preview tokens, and live refresh hooks. If editors require a visual page preview, you'll have to build or integrate that experience. As a starting point you can follow my guide -&amp;nbsp;&lt;a href="/link/425ad6b768e94410ab706643559c4f96.aspx"&gt;Going Headless: On-Page Editing with Optimizely Graph and Next.js&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CI/CD complexity&lt;/strong&gt;: Headless usually means separate pipelines for the CMS and front end, so you need to coordinate deployments and keep everything in sync. Additionally, managing schema changes in Optimizely Graph introduces further challenges, as updates must be reflected and tested across both applications.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Authentication and authorization&lt;/strong&gt;: You'll need to handle user logins, editor previews, and protect your APIs. This means managing secrets and reviewing security.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As you can see, adopting a headless approach involves trade-offs and added complexity. Make sure your decision is guided by genuine business requirements, rather than simply following industry trends.&lt;/p&gt;
&lt;h2 class="flex scroll-m-28 flex-row items-center gap-2"&gt;When Headless Is a Way To Go&lt;/h2&gt;
&lt;p&gt;Opting for a headless architecture can be a game changer for organizations that need agility, omnichannel delivery, and modern development workflows. If your content needs to be reused across multiple front ends&amp;mdash;such as websites, mobile apps, IoT devices, or digital kiosks &amp;mdash; headless streamlines the process and reduces duplication. It enables independent development and deployment of the frontend and backend, letting teams iterate quickly and select best-in-class technologies for each layer. For companies with demanding editorial workloads, headless can provide enhanced flexibility, customizable authoring experiences, and the ability to scale globally by leveraging CDN-backed static sites or API-first delivery. If you need powerful integrations, advanced personalization, or the latest in frontend performance tooling, headless often opens more doors than traditional approaches. Ultimately, headless is especially valuable when your project requires future-proofing, composability, and the freedom to evolve both your frontend and backend at their own pace.&lt;/p&gt;
&lt;h2 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Choosing the Right Architecture for Your Headless Optimizely&lt;/h2&gt;
&lt;p&gt;When picking your setup, balance short-term delivery with long-term flexibility. Consider who you're building for, which channels you must support, your team's skills, latency/scale needs, security/compliance, and total cost of ownership. Write these down up front-they'll keep trade-offs honest.&lt;/p&gt;
&lt;h1 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Technical decisions&lt;/h1&gt;
&lt;p&gt;These days, the variety of tools and architectural options can feel overwhelming, so it's impossible to cover every scenario here. Instead, I'll highlight some key decisions I've faced recently and briefly explain each. Hopefully, these insights will be helpful.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;CMS PaaS vs SaaS&lt;/h3&gt;
&lt;p&gt;PaaS offers greater control over your codebase and infrastructure, but comes with increased operational responsibilities. SaaS minimizes maintenance and accelerates upgrades, though it restricts server-side customization and hosting flexibility. Your choice should depend on your need for custom server logic and regional deployment control. For our project, we selected PaaS to retain full control over our source code and to support future integrations.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Optimizely DXP vs self-hosted&lt;/h3&gt;
&lt;p&gt;DXP gives you managed hosting, a global CDN, built-in security, and guaranteed SLAs right from the start. So a lot of the heavy lifting is taken care of for you. On the other hand, self-hosting might be the way to go if you have strict data residency requirements or unique networking needs, but just keep in mind that you'll be responsible for monitoring, scaling, patching, and handling any incidents yourself. Be sure to realistically weigh the operational costs of each option before making your choice.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Graph (GraphQL) vs CDA (Content Delivery API)&lt;/h3&gt;
&lt;p&gt;Optimizely Graph shifts content delivery to a managed service, enabling precise GraphQL queries-ideal for retrieving deeply nested or specific content-and offers advanced search capabilities. In contrast, the Content Delivery API (CDA) is simpler, REST-based, and provides built-in URL resolution, but may require additional effort for complex content structures or scaling needs. For a detailed comparison, see my article:&amp;nbsp;&lt;a href="/link/c4887f08a93144b19377f27068985f71.aspx"&gt;Going Headless: Optimizely Graph vs Content Delivery API&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For our project, we chosed Optimizely Graph because its data residency met our requirements and it provided greater flexibility for content delivery.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Next.js vs other front-end frameworks&lt;/h3&gt;
&lt;p&gt;Next.js offers SSR, SSG, and ISR out of the box, making it a strong choice for content-rich sites. Alternatives like React with Vite or Angular are also solid. Choose the framework your team is most comfortable with and that aligns with your hosting environment (Node, Edge, or serverless).&lt;/p&gt;
&lt;p&gt;For our project, rapid time to market was essential. We selected Next.js together with Vercel for its seamless support of SSR/SSG/ISR, integrated Turbo monorepo tooling, and a deployment workflow that enabled us to iterate quickly, gather feedback, and launch efficiently.&lt;/p&gt;
&lt;p&gt;If you're using the SaaS version of Optimizely CMS, you may want to explore the newly introduced DXP hosting for front-end applications. Learn more in the official documentation:&amp;nbsp;&lt;a href="https://docs.developers.optimizely.com/content-management-system/v1.0.0-CMS-SaaS/docs/host-a-front-end-with-optimizely"&gt;https://docs.developers.optimizely.com/content-management-system/v1.0.0-CMS-SaaS/docs/host-a-front-end-with-optimizely&lt;/a&gt;&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;GitHub vs Azure DevOps&lt;/h3&gt;
&lt;p&gt;Pick the platform your team knows and that fits your cloud targets. GitHub pairs nicely with Actions and Vercel; Azure DevOps integrates tightly with Azure and enterprise governance. Both support trunk-based development, protected branches, and good CI/CD.&lt;/p&gt;
&lt;p&gt;We chose GitHub because we didn't need the additional features offered by Azure DevOps, and hosting our app in DXP meant Azure integrations were minimal. GitHub's seamless integration with Vercel was also a significant advantage for our workflow.&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Opti ID vs other SSO providers&lt;/h3&gt;
&lt;p&gt;Use Opti ID where it makes sense within the Optimizely ecosystem. For your site/app users and internal editors, standard OpenID Connect/SAML providers (Azure AD, Okta, Auth0, etc.) work well. Confirm MFA, provisioning, and claim mapping early.&lt;/p&gt;
&lt;p&gt;We selected Opti ID because it met all our requirements and enabled us to implement authentication quickly and efficiently. For more details, refer to the official documentation:&amp;nbsp;&lt;a href="https://support.optimizely.com/hc/en-us/articles/12613241464461-Get-started-with-Opti-ID"&gt;https://support.optimizely.com/hc/en-us/articles/12613241464461-Get-started-with-Opti-ID&lt;/a&gt;&lt;/p&gt;
&lt;h3 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Common Repository vs Separate Repositories&lt;/h3&gt;
&lt;p&gt;In a headless setup, the frontend and the CMS/backend are independent. You can keep them in one repository (monorepo) or split them into separate repositories.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Monorepo (one repository):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Pros: single place for code and tooling, atomic changes across front end and CMS, easier end-to-end testing and shared packages&lt;/li&gt;
&lt;li&gt;Cons: more complex pipelines, risk of unnecessary deploys without proper path filters, larger repo to maintain&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Separate repositories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Pros: clear ownership and access control, simpler pipelines per app, easier to replace one part without touching the other&lt;/li&gt;
&lt;li&gt;Cons: coordination overhead (shared contracts, schemas, SDK versions), more cross-repo communication&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Opt for a single repository when teams need to collaborate closely, share code, or coordinate changes across frontend and backend. Separate repositories are preferable when independent deployments and isolated responsibilities are a priority.&lt;/p&gt;
&lt;p&gt;We chose a monorepo approach because our team size makes close collaboration easier, and it gives us greater control and visibility over the entire CI/CD process.&lt;/p&gt;
&lt;h1 class="flex scroll-m-28 flex-row items-center gap-2"&gt;Summary&lt;/h1&gt;
&lt;p&gt;In summary, successful modern web architecture is about making the right choices for your team, business needs, and long-term maintainability. Each architectural decision, whether it's PaaS vs SaaS, managed services vs custom hosting, or selecting the front-end framework should reflect your unique requirements in performance, scalability, flexibility, and collaboration. By evaluating trade-offs at each level and prioritizing seamless integration, you can build solutions that are robust, adaptable, and future-proof.&lt;/p&gt;</summary></entry><entry><title>Going Headless - Making the Right Architectural Choices</title><link href="https://michalmitas.com/blog/architecture-overview" /><id>https://michalmitas.com/blog/architecture-overview</id><published>2025-10-17T00:00:00.0000000Z</published><updated>2025-12-28T17:30:36.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">A high-level overview of the architectural decisions made for the new website built with a headless architecture.</summary></entry><entry><title>Going Headless - Making the Right Architectural Choices</title><link href="https://michalmitas.com/blog/optimizely/cms12/headless/going-headless-making-the-right-architectural-choices" /><id>https://michalmitas.com/blog/optimizely/cms12/headless/going-headless-making-the-right-architectural-choices</id><published>2025-10-17T00:00:00.0000000Z</published><updated>2026-04-10T12:32:12.0000000Z</updated><author><name>michal.mitas@noaignite.com</name></author><category term="Blog post" /><summary type="html">A high-level overview of the architectural decisions made for the new website built with a headless architecture.</summary></entry></feed>