<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Uday Sanghani on Medium]]></title>
        <description><![CDATA[Stories by Uday Sanghani on Medium]]></description>
        <link>https://medium.com/@sanghaniuday0508?source=rss-424814f54411------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4GaHzQkFHFuhu-xCUcBQbg.jpeg</url>
            <title>Stories by Uday Sanghani on Medium</title>
            <link>https://medium.com/@sanghaniuday0508?source=rss-424814f54411------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 16:22:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sanghaniuday0508/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Rights-Aware DAM Asset Picker with SitecoreAI]]></title>
            <link>https://medium.com/@sanghaniuday0508/building-a-rights-aware-dam-asset-picker-with-sitecoreai-a9428109949b?source=rss-424814f54411------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9428109949b</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[sitecore-xm-cloud]]></category>
            <category><![CDATA[digital-asset-management]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[sitecore]]></category>
            <dc:creator><![CDATA[Uday Sanghani]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 06:13:22 GMT</pubDate>
            <atom:updated>2026-12-03T09:07:08.383Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to use the new DAM Assets API and DAM Context API to find assets based on campaign dates, territories and permitted media usage.</em></p><figure><img alt="Rights-Aware DAM Asset Picker with SitecoreAI" src="https://cdn-images-1.medium.com/max/1024/1*8piuVoonG2SPJDFs7K-VQg.png" /></figure><p>Imagine a content author preparing a campaign page for multiple markets. They open the DAM asset picker, search for a product image and find several matching assets. The thumbnails look correct, the titles match the campaign, and the images are approved.</p><p>But there is another question: can this image actually be used for this campaign, in these markets, during these dates?</p><p>A matching image is not necessarily an eligible image.</p><p>This is a practical problem when building DAM integrations for enterprise websites. Searching by filename, title or taxonomy is only part of the job. The application also needs to consider the intended use of an asset.</p><p>On November 17, 2026, Sitecore released the <a href="https://api-docs.sitecore.com/dam/assets-api">DAM Assets API</a> and <a href="https://api-docs.sitecore.com/dam/context-api">DAM Context API</a> in Early Access for SitecoreAI DAM and Content Hub. The Assets API searches by text, visual similarity and filters, and can evaluate a permitted-use scenario. The Context API tells you which keys, operators and capabilities your tenant supports.</p><p>Let’s build the workflow.</p><h3>1. The scenario</h3><p>Consider a campaign with the following requirements:</p><ul><li><strong>Campaign:</strong> Product Launch</li><li><strong>Search term:</strong> Product packaging</li><li><strong>Markets:</strong> Germany and France</li><li><strong>Campaign period:</strong> December 1–31, 2026</li><li><strong>Media usage:</strong> Online</li><li><strong>Results per page:</strong> 20</li></ul><p>The author should see assets that match the search and satisfy the requested usage-rights conditions.</p><p>The important distinction is that ordinary asset filters and usage-rights checks are separate parts of the request, although the API combines them into a single result.</p><h3>2. Integration architecture</h3><p>I would keep the DAM communication behind a server-side integration layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ySobELQo4VaJzv5TzgDOcg.png" /></figure><p>The responsibilities are straightforward:</p><ul><li>The picker handles the author experience.</li><li>The Next.js API route handles application requests, authentication and validation.</li><li>The Context API provides the tenant’s searchable asset context: taxonomies, fields, data sources, relations, renditions, usage-rights dimensions and capabilities.</li><li>The Assets API performs asset discovery and usage-rights evaluation.</li></ul><p>This separation also keeps DAM credentials out of browser-side JavaScript.</p><h3>3. First discover the tenant’s capabilities</h3><p>Before constructing a usage-rights request, retrieve the DAM context.</p><pre>GET /api/v1/dam/assets/context</pre><p>The include parameter takes a comma-separated list of sections: taxonomies, fields, dataSources, relations, renditions and usageRights. It defaults to taxonomies only, so you must ask for usageRights explicitly. An unknown section name returns 400 UNKNOWN_INCLUDE. Request only the sections you need, because each one adds to the response size.</p><pre>curl -X GET \<br>  &quot;https://YOUR-CONTENT-HUB-HOST/api/v1/dam/assets/context?culture=en-US&amp;include=taxonomies,fields,relations,renditions,usageRights&quot; \<br>  -H &quot;Authorization: Bearer YOUR_ACCESS_TOKEN&quot;</pre><p>Pay particular attention to the capabilities object, which is always returned:</p><pre>{<br>  &quot;capabilities&quot;: {<br>    &quot;visualSearch&quot;: true,<br>    &quot;imageTagging&quot;: true,<br>    &quot;usageRights&quot;: true<br>  }<br>}</pre><p>This is an illustrative fragment, not a complete response.</p><p>The application should check capabilities.usageRights before attempting rights-based filtering.</p><p>It should also inspect usageRights.constraints. Each constraint describes one usage-rights dimension the tenant supports:</p><ul><li><strong>key</strong>: the key to send in a search constraint, for example territories.</li><li><strong>operators</strong>: which of anyOf and allOf the dimension accepts.</li><li><strong>hierarchical</strong>: whether the dimension is a taxonomy tree. Rights on a parent value cover its descendants.</li><li><strong>definitionName</strong>: the taxonomy definition to query for valid values.</li><li><strong>label</strong>: display text only. Never send it as a filter value.</li></ul><p>The constraints list can be empty. When capabilities.usageRights is true, you can still filter by dates alone, even if no dimensions are advertised.</p><p>Why does this matter? A territory or media key that works in one Content Hub tenant should not automatically be assumed to exist in another.</p><p>The spec doesn’t give caching guidance. Because this context describes tenant configuration rather than assets, I would retrieve it once, cache it for a reasonable period and use it when constructing subsequent search requests.</p><h3>4. Build the actual asset search request</h3><p>Now we have the campaign requirements and the relevant tenant context. The DAM Assets API provides the following search endpoint:</p><pre>POST /api/v1/dam/assets/search</pre><p>Here is the request for our scenario:</p><pre>{<br>  &quot;query&quot;: {<br>    &quot;text&quot;: &quot;product packaging&quot;<br>  },<br>  &quot;filters&quot;: [],<br>  &quot;exclusions&quot;: [],<br>  &quot;usageRights&quot;: {<br>    &quot;start&quot;: &quot;2026-12-01&quot;,<br>    &quot;end&quot;: &quot;2026-12-31&quot;,<br>    &quot;constraints&quot;: [<br>      {<br>        &quot;key&quot;: &quot;territories&quot;,<br>        &quot;operator&quot;: &quot;anyOf&quot;,<br>        &quot;values&quot;: [&quot;territory-germany&quot;, &quot;territory-france&quot;]<br>      },<br>      {<br>        &quot;key&quot;: &quot;media&quot;,<br>        &quot;operator&quot;: &quot;allOf&quot;,<br>        &quot;values&quot;: [&quot;media-online&quot;]<br>      }<br>    ]<br>  },<br>  &quot;include&quot;: {<br>    &quot;fields&quot;: [],<br>    &quot;taxonomies&quot;: [],<br>    &quot;relations&quot;: [],<br>    &quot;renditions&quot;: [&quot;Preview&quot;]<br>  },<br>  &quot;culture&quot;: &quot;en-US&quot;,<br>  &quot;skip&quot;: 0,<br>  &quot;take&quot;: 20<br>}</pre><p>The constraint identifiers follow the usageRights example in Sitecore&#39;s API reference. In a real tenant, use the keys, values and operators returned by the Context API. Rendition keys are configured per tenant too, so copy them from the Context API&#39;s renditions section. You don&#39;t need to request a thumbnail rendition: the response includes thumbnailUrl whenever an asset has one.</p><p>A few rules from the spec are worth knowing:</p><ul><li>start and end are inclusive YYYY-MM-DD dates, and end must be on or after start.</li><li>Each constraint key can appear only once.</li><li>take accepts 1 to 100 and defaults to 10.</li><li>With a text query and no sorting, results are sorted by relevance.</li></ul><p>There are four details worth understanding.</p><p><strong>First: anyOf versus allOf.</strong> For territories, anyOf means at least one of the supplied values must match. It does not mean the asset must be licensed for both territories. For media, allOf requires every supplied value to match. If the campaign genuinely runs in both markets, consider allOf for territories as well.</p><p><strong>Second: usage rights are not ordinary metadata filters.</strong> The usageRights property evaluates the permitted-use scenario against the asset&#39;s rights profiles. The dates and all constraints are checked together against one combined rights profile. That result is then ANDed with the normal filters and exclusions. For hierarchical dimensions, rights granted on a parent value, such as Europe, cover its descendants, such as Germany.</p><p><strong>Third: unrestricted assets qualify.</strong> An asset with no usage restrictions always passes the rights check. A restricted asset qualifies only if its combined profile covers the requested dates and constraints. Rights-aware search excludes assets that aren’t cleared. It doesn’t hide assets that carry no rights data.</p><p><strong>Fourth: what you leave out matters.</strong> Any dimension you omit isn’t checked. &quot;usageRights&quot;: {} checks only today&#39;s date, and omitting usageRights entirely skips the rights check altogether.</p><p>This is the part that makes the API particularly useful for campaign-oriented asset discovery.</p><h3>5. Implement the search in Next.js</h3><p>I would expose a small application endpoint rather than allowing the browser to call Content Hub directly.</p><p>Two details shape the code below. First, Sitecore’s docs define the server value as the Content Hub hostname without https:// or a trailing slash, so the route adds the scheme itself. Second, the route passes the DAM&#39;s error details back to the picker instead of hiding them. That way the picker can tell USAGE_RIGHTS_UNAVAILABLE apart from a throttled or failed request.</p><pre>// app/api/dam/search/route.ts<br>import { NextRequest, NextResponse } from &quot;next/server&quot;;<br><br>// Hostname only, e.g. &quot;your-tenant.sitecorecontenthub.cloud&quot;<br>const DAM_HOST = process.env.CONTENT_HUB_HOST;<br>export async function POST(request: NextRequest) {<br>  try {<br>    const body = await request.json();<br>    const searchTerm = String(body.searchTerm ?? &quot;&quot;).trim();<br>    if (!searchTerm || searchTerm.length &gt; 200) {<br>      return NextResponse.json(<br>        { error: &quot;Invalid search term&quot; },<br>        { status: 400 }<br>      );<br>    }<br>    const token = await getDamAccessToken();<br>    const response = await fetch(<br>      `https://${DAM_HOST}/api/v1/dam/assets/search`,<br>      {<br>        method: &quot;POST&quot;,<br>        headers: {<br>          Authorization: `Bearer ${token}`,<br>          &quot;Content-Type&quot;: &quot;application/json&quot;<br>        },<br>        body: JSON.stringify({<br>          query: { text: searchTerm },<br>          filters: [],<br>          exclusions: [],<br>          usageRights: {<br>            start: &quot;2026-12-01&quot;,<br>            end: &quot;2026-12-31&quot;,<br>            constraints: [<br>              {<br>                key: &quot;territories&quot;,<br>                operator: &quot;anyOf&quot;,<br>                values: [&quot;territory-germany&quot;, &quot;territory-france&quot;]<br>              },<br>              {<br>                key: &quot;media&quot;,<br>                operator: &quot;allOf&quot;,<br>                values: [&quot;media-online&quot;]<br>              }<br>            ]<br>          },<br>          include: {<br>            fields: [],<br>            taxonomies: [],<br>            relations: [],<br>            renditions: [&quot;Preview&quot;]<br>          },<br>          culture: &quot;en-US&quot;,<br>          skip: 0,<br>          take: 20<br>        }),<br>        cache: &quot;no-store&quot;,<br>        signal: AbortSignal.timeout(10_000)<br>      }<br>    );<br>    if (!response.ok) {<br>      return forwardDamError(response);<br>    }<br>    // { culture, skip, take, total, items }<br>    const results = await response.json();<br>    return NextResponse.json(results);<br>  } catch (error) {<br>    console.error(&quot;DAM search error:&quot;, error);<br>    return NextResponse.json(<br>      { error: &quot;Unable to retrieve DAM assets&quot; },<br>      { status: 502 }<br>    );<br>  }<br>}<br>async function forwardDamError(response: Response) {<br>  // 429 bodies are plain text; most other errors are JSON.<br>  const raw = await response.text();<br>  let detail: unknown = raw;<br>  try {<br>    detail = JSON.parse(raw);<br>  } catch {}<br>  // 401/403 here mean the integration&#39;s own credentials failed.<br>  // Don&#39;t present that to the browser as the author&#39;s auth failure.<br>  const status = [401, 403].includes(response.status)<br>    ? 502<br>    : response.status;<br>  const headers: Record&lt;string, string&gt; = {};<br>  const retryAfter = response.headers.get(&quot;Retry-After&quot;);<br>  if (retryAfter) headers[&quot;Retry-After&quot;] = retryAfter;<br>  return NextResponse.json(<br>    { error: &quot;DAM search failed&quot;, upstreamStatus: response.status, detail },<br>    { status, headers }<br>  );<br>}</pre><p>getDamAccessToken() represents your server-side authentication provider. It isn&#39;t a Sitecore SDK method. Implement it with the OAuth flow configured for your DAM client; the token endpoint is <a href="https://{server}/oauth/token.">https://{server}/oauth/token</a></p><p>For a reusable implementation, move the campaign dates and rights constraints into validated request configuration rather than hardcoding them in the route. Validate them against the cached Context API response before sending.</p><p>Also add application-user authorization and rate limiting before exposing this endpoint.</p><h3>6. What happens when the author selects an asset?</h3><p>The search response returns culture, skip, take, total and items. Each item includes a thumbnailUrl when the asset has a thumbnail, plus a delivery url for each rendition you listed in include.renditions. Search results don&#39;t include rendition width, height or file size.</p><p>For the picker, I would display:</p><ul><li>Asset thumbnail</li><li>Asset title</li><li>Asset identifier</li><li>Available renditions</li><li>Relevant metadata</li></ul><p>Use total to drive pagination with skip and take.</p><p>When the author opens an asset, retrieve its details through:</p><pre>GET /api/v1/dam/assets/{id}</pre><p>This endpoint returns the asset’s width and height in pixels and fileSize in bytes. It also returns fields, taxonomies, relations and renditions, with width, height and file size for each rendition. The expansions parameter can add publicLinks and collections. If you omit a selector such as fields, you get that whole section; pass it empty to get none. An asset that doesn&#39;t exist, or that the caller can&#39;t see, returns 404 ASSET_NOT_FOUND.</p><p>I would keep asset selection separate from asset delivery.</p><p>In particular, a successful usage-rights search doesn’t authorize a download or create a publishing permission. Sitecore’s API reference states this directly: there is no administrator bypass and no download authorization. The application’s publishing and access-control workflows still need to respect the DAM’s security model, including its DRM request flow for restricted assets.</p><h3>7. A few cases worth handling</h3><p>Before shipping this picker, I would test these scenarios. For each one: what the API does, then how the picker should handle it.</p><ul><li><strong>Usage rights unsupported.</strong> API: 400 USAGE_RIGHTS_UNAVAILABLE, not retryable. Handle: disable rights-based search and explain why.</li><li><strong>Invalid key, operator, value or date.</strong> API: 400 UNKNOWN_FILTER, UNSUPPORTED_OPERATOR or INVALID_VALUE, naming the field path, e.g. usageRights.constraints[0].values[0]. Handle: revalidate against the Context API and log the path.</li><li><strong>No matching assets.</strong> API: 200 with an empty items list. Handle: show an empty search state.</li><li><strong>Restricted asset, rights expired.</strong> API: asset excluded. Handle: confirm it doesn’t appear for the requested period.</li><li><strong>Restricted asset, territory mismatch.</strong> API: asset excluded. Handle: confirm it doesn’t appear for the requested territories.</li><li><strong>Unrestricted asset.</strong> API: asset included. Handle: confirm it appears; it has no rights to fail.</li><li><strong>Missing rendition.</strong> API: no URL for that key. Handle: fall back to thumbnailUrl or a placeholder without breaking the card.</li><li><strong>Authentication failure.</strong> API: 401. Handle: refresh the integration token and report a service error, not an author error.</li><li><strong>Access denied.</strong> API: 403. Handle: check the integration user&#39;s permissions.</li><li><strong>Throttled.</strong> API: 429 with a Retry-After header in seconds. Handle: wait at least that long, then retry with a cap.</li><li><strong>Rights couldn’t be applied.</strong> API: 503 SERVICE_UNAVAILABLE. Handle: show a temporary error and retry later.</li></ul><p>One behavior deserves emphasis. If capabilities.usageRights is false and you send usageRights, the request fails with 400 USAGE_RIGHTS_UNAVAILABLE.</p><p>Do not silently fall back to an unrestricted asset search. That would change the meaning of the author’s original request.</p><p>The API follows the same principle. If a failure prevents it from applying a requested usage-rights scenario, it returns 503 SERVICE_UNAVAILABLE. It never returns unfiltered results instead.</p><h3>Conclusion</h3><p>For me, the interesting part of the new DAM APIs is not simply that developers can search for assets using another endpoint. It is the ability to build a search experience around the intended use of an asset.</p><p>A content author shouldn’t have to understand DAM metadata structures, rights profiles or API filter operators to find a suitable image. Those responsibilities belong in the integration layer.</p><p>The DAM Context API gives developers a way to discover tenant-specific keys, operators and capabilities. The DAM Assets API provides the search and permitted-use evaluation. Together, they offer a useful foundation for building more intelligent asset-selection experiences in SitecoreAI.</p><p>One practical takeaway: don’t stop at finding the right image. Build the integration to help authors find an image that is suitable for the intended use, and remember that “suitable” includes assets that carry no restrictions at all.</p><h3>Official references</h3><ul><li><a href="https://api-docs.sitecore.com/dam/assets-api">DAM Assets API: search and retrieve assets</a></li><li><a href="https://api-docs.sitecore.com/dam/context-api">DAM Context API: discover tenant capabilities</a></li><li><a href="https://doc.sitecore.com/changelog/sitecoreai/17112026/early-access-dam-apis-for-sitecoreai-dam-and-content-hub">Sitecore changelog: Early Access DAM APIs for SitecoreAI DAM and Content Hub, November 17, 2026</a></li><li><a href="https://doc.sitecore.com/ch/en/users/content-hub/match-strategies.html">Content Hub: match strategies for rights profiles</a></li></ul><p><em>Note: These APIs are in Early Access as of November 28, 2026. Sitecore states that endpoints, schemas and behavior may change before General Availability. Validate the current API contract and your tenant’s configuration before implementation.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9428109949b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When an LLM Reads Your SitecoreAI Site, It Gets the Default Variant]]></title>
            <link>https://pub.aeosoup.com/when-an-llm-reads-your-sitecoreai-site-it-gets-the-default-variant-f00bc1e9cc65?source=rss-424814f54411------2</link>
            <guid isPermaLink="false">https://medium.com/p/f00bc1e9cc65</guid>
            <category><![CDATA[aeo]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[sitecore]]></category>
            <category><![CDATA[sitecore-ai]]></category>
            <dc:creator><![CDATA[Uday Sanghani]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 09:23:51 GMT</pubDate>
            <atom:updated>2026-12-03T09:08:28.476Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What Content SDK 2.4 and 2.5 actually do for AI discoverability: llms.txt, metadata, JSON-LD and bot tracking, checked against the package source.</em></p><figure><img alt="Diagram of an LLM agent, labelled ChatGPT-User, Claude-User and Perplexity-User, sending a request through a proxy.ts filter set to skipForBot: true. Two personalized page variants, “returning visitor” and “EMEA segment”, are stamped “skipped”. The highlighted front page, the default variant, is served to the LLM, with llms.txt, JSON-LD and og:title tags attached." src="https://cdn-images-1.medium.com/max/1024/1*OX493965VdVzcdK4JiJxKg.png" /><figcaption>AI assistants are bots to your proxy chain, so every LLM reading your SitecoreAI site sees the default variant, never the personalized ones.</figcaption></figure><p>Symposium 2026 was about one thing: AI discoverability. MarketingIQ, Scrunch citation data, the “40% of AI assistant sessions never touch the open web” stat. All of that is pitched at marketers, and most of the recaps I’ve read since Orlando are written for marketers too.</p><p>But while that was going on, the Content SDK shipped the developer side of the same story, spread over a few minor releases with fairly sparse release notes. Version 2.4 added llms.txt support and automatic page metadata. Version 2.5 added Schema.org JSON-LD rendering. And the current starter template now runs a BotTrackingProxy in front of everything else.</p><p>The release notes don’t tell you how any of this behaves, so I pulled the published npm packages and read the code. Here’s what I found, including one behavior I think every SitecoreAI team should know about before their marketing team starts asking why AI assistants describe their site the way they do.</p><p>The versions I looked at:</p><ul><li>@sitecore-content-sdk/nextjs 2.5.1</li><li>@sitecore-content-sdk/react 2.5.0</li><li>@sitecore-content-sdk/content 2.4.0</li><li>@sitecore-content-sdk/analytics-core 2.1.2</li><li>create-content-sdk-app 2.4.2 (App Router template)</li></ul><p>A quick aside on those numbers. The packages are versioned independently now, so “we’re on Content SDK 2.5” really means “our nextjs package is on 2.5&quot;. core is still on 2.1.4. If you&#39;re comparing your package.json against a blog post (including this one), compare package by package.</p><h3>AI assistants are bots, so they skip personalization</h3><p>This is the part that surprised me.</p><p>The template’s proxy.ts now chains six proxies:</p><pre>return defineProxy(preview, botTracking, locale, multisite, redirects, personalize).exec(req);</pre><p>BotTrackingProxy runs second. It checks the user agent, sets an sc_bot cookie, and sends a single server-side page view on a separate bot channel, so crawlers don&#39;t inflate your real analytics. Then PersonalizeProxy reads that cookie and skips variant resolution for bots. In the source, skipForBot defaults to true.</p><p>So which user agents count as bots? The detection is handed to the open-source isbot library (^5.1.39; npm resolved 5.2.4 for me). I tested it against the current AI crawler and AI agent user agents:</p><pre>GPTBot           true<br>OAI-SearchBot    true<br>ChatGPT-User     true<br>ClaudeBot        true<br>Claude-User      true<br>PerplexityBot    true<br>Perplexity-User  true<br>Googlebot        true<br>Bingbot          true<br>Chrome (human)   false</pre><p>The training and indexing crawlers being flagged is expected. Look at the -User agents, though. ChatGPT-User, Claude-User and Perplexity-User are what fetch your page when a real person asks an assistant a question and it goes to read your site for the answer. All three are classified as bots, so they never get a personalized variant.</p><p><strong>Whatever an AI assistant reads, summarizes or quotes from your site is your default variant.</strong></p><p>I think that’s the right default. Personalizing for crawlers would burn CDP calls and muddy your experiment data. But it has real consequences that I haven’t seen anyone discuss:</p><ul><li>If your strongest product messaging only lives in a personalized variant (returning visitors, a specific region, a segment), AI answers will never see it.</li><li>If you’re A/B testing a hero, the AI-facing version is always the control.</li><li>If marketing uses Scrunch to see how an assistant describes the brand, and then tunes a personalized variant in response, nothing changes. They need to tune the default.</li></ul><p>So treat the default variant as the AI-facing version of every page. Make it complete and accurate, and never use it as a stripped-down fallback.</p><p>If you really do need bots to get personalized content, PersonalizeProxy accepts skipForBot: false. I wouldn&#39;t do it site-wide.</p><p>One practical note for testing: bot tracking switches itself off when NODE_ENV is development and on localhost. To see it working locally, set:</p><pre>SITECORE_ENABLE_BOT_TRACKING=true</pre><p>Then send a request with a bot user agent:</p><pre>curl -s -o /dev/null -D - \<br>  -A &quot;Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ChatGPT-User/1.0; +https://openai.com/bot)&quot; \<br>  http://localhost:3000/ | grep -i sc_bot</pre><h3>llms.txt: what the handler really does</h3><p>llms.txt is a proposal, not a standard. Nobody can promise you which assistants read it or how much weight it gets. But it costs almost nothing to serve, and the SDK makes it a content-managed field instead of a file in your repo, which is the right call.</p><p>How it fits together:</p><ul><li>Authors write the content per site in SitecoreAI.</li><li>The client fetches it through Experience Edge GraphQL with client.getLlmsTxt({ siteName }).</li><li>The App Router template serves it from a route handler, and a rewrite in next.config.ts maps it to /llms.txt.</li></ul><p>The route handler:</p><pre>// src/app/api/llms-txt/route.ts<br>import { createLlmsTxtRouteHandler } from &#39;@sitecore-content-sdk/nextjs/route-handler&#39;;<br>import sites from &#39;.sitecore/sites.json&#39;;<br>import client from &#39;lib/sitecore-client&#39;;<br><br>export const dynamic = &#39;force-dynamic&#39;;<br>export const { GET } = createLlmsTxtRouteHandler({ client, sites });</pre><p>The rewrite:</p><pre>// next.config.ts (excerpt)<br>rewrites: async () =&gt; [<br>  { source: &#39;/llms.txt&#39;, destination: &#39;/api/llms-txt&#39;, locale: false },<br>],</pre><p>If you migrated before 2.4 and kept your own next.config.ts, you won&#39;t have this rewrite. That&#39;s the first thing to check if /llms.txt returns your 404 page.</p><p>Things I only learned by reading the handler:</p><ul><li><strong>Caching.</strong> The Edge call is wrapped in unstable_cache with revalidate: 60 by default and the cache tag llms-txt. Pass revalidate to change it, or false to cache until you invalidate it yourself. The Angular middleware works differently: per its docs, it doesn&#39;t cache at all.</li><li><strong>Invalidation.</strong> Because of that tag, you can flush the cache on publish instead of waiting out the TTL. In Next.js 16 that’s revalidateTag(&#39;llms-txt&#39;, &#39;max&#39;) from a webhook-protected route. The SDK&#39;s own revalidate handler uses the same two-argument form.</li><li><strong>Site resolution.</strong> The site comes from x-forwarded-host, then host (port removed), then localhost. Behind a CDN, make sure the forwarded host is your public hostname. Otherwise every site in a multisite setup resolves the same way.</li><li><strong>Empty content.</strong> If the field is empty you get a 404 with placeholder markdown, content-type: text/markdown; charset=utf-8. That&#39;s honest, but it means a missing field shows up as an error in your monitoring.</li></ul><p>One more thing, from the template’s proxy matcher. The negative lookahead excludes api/, sitemap, robots, Next internals and static file extensions. It does <strong>not</strong> exclude llms. I ran the regex against a few paths:</p><pre>/llms.txt          proxy runs<br>/robots.txt        skipped<br>/sitemap.xml       skipped<br>/api/llms-txt      skipped</pre><p>So every request to /llms.txt goes through the full proxy chain before the rewrite: preview, bot tracking, locale, multisite, redirects and personalize. robots.txt doesn&#39;t. I haven&#39;t seen this break anything, and you could argue that tracking AI bots fetching llms.txt is useful. But it&#39;s an inconsistency, and on a platform where you pay per edge invocation, I&#39;d make a deliberate choice. If you don&#39;t want the proxies on it, add llms to the lookahead next to sitemap|robots. Either way, curl it on a deployed environment, not just localhost.</p><h3>Metadata: no fallbacks, on purpose</h3><p>For page metadata, the App Router template now does this:</p><pre>export const generateMetadata = async ({ params }: PageProps): Promise&lt;Metadata&gt; =&gt; {<br>  const { path, site, locale } = await params;<br>  const page = await client.getPage(path ?? [], { site, locale });<br>  return getPageMetadata(page?.layout.sitecore.route);<br>};</pre><p>getPageMetadata maps route fields to the Next.js Metadata object:</p><ul><li>Title → &lt;title&gt;. This is the only field with a fallback (defaultTitle, which defaults to &#39;Page&#39;).</li><li>baseMetadataTitle → &lt;meta name=&quot;title&quot;&gt;. It doesn&#39;t set &lt;title&gt;.</li><li>baseMetadataDescription, baseMetadataKeywords, baseMetadataAuthor → the matching meta tags.</li><li>baseOgTitle, baseOgDescription, baseOgImage, baseOgType → Open Graph.</li><li>When baseOgType is article, the route&#39;s published and updated values become article:published_time and article:modified_time.</li></ul><p>The code comment says it plainly: there’s <strong>no cross-field fallback</strong>. An empty baseOgTitle doesn&#39;t fall back to Title; the og:title tag is just left out. The same goes for og:description and the meta description.</p><p>That’s a reasonable design for an SDK, since it never guesses. But authors rarely fill in every field, so on a real site you’ll get a lot of pages with no og:title and no og:description. Those tags are what link previews use, and they&#39;re one of the cheapest signals any crawler gets about a page.</p><p>Also, the defaultTitle of &#39;Page&#39; is a terrible thing to have quoted back at you. Pass your brand name.</p><p>If you want fallbacks, add them yourself in one place:</p><pre>export const generateMetadata = async ({ params }: PageProps): Promise&lt;Metadata&gt; =&gt; {<br>  const { path, site, locale } = await params;<br>  const page = await client.getPage(path ?? [], { site, locale });<br>  const meta = getPageMetadata(page?.layout.sitecore.route, &#39;Acme Corp&#39;);<br><br>  const og = meta.openGraph ?? {};<br>  return {<br>    ...meta,<br>    openGraph: {<br>      ...og,<br>      title: og.title ?? (typeof meta.title === &#39;string&#39; ? meta.title : undefined),<br>      description: og.description ?? meta.description ?? undefined,<br>    },<br>  };<br>};</pre><p>On the Pages Router, the equivalent is the PageMetaTags component, which follows the same rules and renders through next/head.</p><h3>JSON-LD: configured in the content tree, rendered by one component</h3><p>Structured data is the piece with the most moving parts, because most of the work happens in SitecoreAI, not in your code.</p><p><strong>In the content tree:</strong> each site needs a Schema item under its Settings. It isn&#39;t created for you. Under it you add Template Schema items that map templates to Schema.org types, and Template Schema Property items that map fields to properties. There are three kinds:</p><ul><li><strong>Page schemas</strong> map a page template’s fields.</li><li><strong>Rendering schemas</strong> map a data source template’s fields. These also need <strong>Include in schema</strong> turned on for each rendering instance. Enabling it on one instance doesn’t enable it on the others, which will catch you out on a page with five promo blocks.</li><li><strong>Site schemas</strong> hold site-wide values, such as your Organization.</li></ul><p>The Layout Service returns the resolved objects in sitecore.context.schemas. If two sources produce the same @type, the one with more populated properties wins.</p><p><strong>In the head app:</strong> the template renders all of it with one component inside SitecoreHead.tsx:</p><pre>import { Page, JsonLdSchema } from &#39;@sitecore-content-sdk/nextjs&#39;;<br><br>const SitecoreHead = ({ page }: { page: Page }) =&gt; (<br>  &lt;&gt;<br>    &lt;Scripts /&gt;<br>    &lt;SitecoreStyles layoutData={page.layout} /&gt;<br>    &lt;JsonLdSchema page={page} /&gt;<br>  &lt;/&gt;<br>);</pre><p>It writes one &lt;script type=&quot;application/ld+json&quot;&gt; containing every schema as a JSON array, and filters out anything that isn&#39;t an object.</p><p>The detail that will cost you an afternoon: <strong>it renders nothing unless the page is in normal mode.</strong> Not in Page builder, not in preview, not in Design Library. That’s deliberate, so editing chrome never ends up in structured data. But it means you can’t check your schema mappings in any of the places your team usually checks things.</p><p>To verify, publish, request the live page, and view the source:</p><pre>curl -s https://www.example.com/some-article | grep -o &#39;&lt;script type=&quot;application/ld+json&quot;&gt;.*&lt;/script&gt;&#39;</pre><p>Then run that output through the Schema Markup Validator. The SDK serializes whatever the Layout Service gives it and doesn’t validate it.</p><p>If you already render JSON-LD yourself, remove it when you adopt this component. Otherwise you’ll ship two scripts with overlapping types.</p><h3>None of this matters if the content needs JavaScript</h3><p>Sitecore’s own “Optimizing content for AI” recipe on the developer portal says this outright: most AI crawlers don’t execute JavaScript and rely on the HTML you send.</p><p>App Router with Server Components handles that well. The weak spots are the client-side holdouts every project has: a product list loaded in useEffect, tabs whose inactive panels are fetched on click, a search results page that only renders in the browser. Whatever those components show, an AI crawler won&#39;t see.</p><p>Here’s a quick way to check. I’m using the ChatGPT-User string here, but any AI agent&#39;s user agent works the same way:</p><pre>curl -s -A &quot;Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; ChatGPT-User/1.0; +https://openai.com/bot&quot; \<br>  https://www.example.com/products | sed &#39;s/&lt;[^&gt;]*&gt;/ /g&#39; | tr -s &#39; \n&#39; | head -c 2000</pre><p>What comes back is roughly what an assistant gets to work with. It will be the default variant, server-rendered, with no JavaScript run. If your key facts aren’t in there, the AI has no way to know them.</p><h3>Checklist</h3><ul><li><strong>Packages:</strong> @sitecore-content-sdk/nextjs ≥ 2.5 for JSON-LD, ≥ 2.4 for llms.txt and getPageMetadata. Check each package&#39;s version separately.</li><li><strong>Default variants:</strong> review the default variant of your top pages as if it were the only version, because for AI assistants it is.</li><li><strong>proxy.ts:</strong> BotTrackingProxy present and before PersonalizeProxy. Decide on purpose whether /llms.txt should go through the proxy chain.</li><li><strong>next.config.ts:</strong> the /llms.txt rewrite exists if you migrated before 2.4.</li><li><strong>SitecoreAI:</strong> llms.txt content filled in for every site, not just the main one.</li><li><strong>Publishing:</strong> a publish webhook that calls revalidateTag(&#39;llms-txt&#39;, &#39;max&#39;), or an explicit revalidate you&#39;re comfortable with.</li><li><strong>Metadata:</strong> generateMetadata passes a real defaultTitle, plus your own OG fallbacks if authors won&#39;t fill every field.</li><li><strong>Schemas:</strong> a Schema container per site, mappings for your main templates, <strong>Include in schema</strong> on the right rendering instances.</li><li><strong>Verification:</strong> &lt;JsonLdSchema page={page} /&gt; in the head, checked on a published page, not in Page builder.</li><li><strong>Rendering:</strong> a curl pass with an AI user agent on your top templates.</li></ul><p>Most of this is small: a route, a component, one line in generateMetadata. That&#39;s why it&#39;s easy to skip. But your marketing team is about to get a dashboard showing how AI assistants describe the brand, and the first time they ask why those answers miss something, the cause will usually be in this list. I&#39;d rather find it before they ask.</p><p>If you’ve wired any of this up and seen different behavior, especially around the llms.txt proxy path or bot tracking behind a CDN, let me know in the comments.</p><h3>References</h3><ul><li>Content SDK release notes, 2.2–2.5: <a href="https://doc.sitecore.com/sai/en/developers/content-sdk/20/">https://doc.sitecore.com/sai/en/developers/content-sdk/20/</a></li><li>Configure JSON-LD schemas: <a href="https://doc.sitecore.com/sai/en/developers/sitecoreai/content-modeling-and-presentation/search-engine-optimization%E2%80%8A-%E2%80%8Aseo-/configure-json-ld-schemas.html">https://doc.sitecore.com/sai/en/developers/sitecoreai/content-modeling-and-presentation/search-engine-optimization — seo-/configure-json-ld-schemas.html</a></li><li>Optimizing content for AI (Accelerate recipe): <a href="https://developers.sitecore.com/learn/accelerate">https://developers.sitecore.com/learn/accelerate</a></li><li>Content SDK source: <a href="https://github.com/Sitecore/content-sdk">https://github.com/Sitecore/content-sdk</a></li><li>isbot: <a href="https://github.com/omrilotan/isbot">https://github.com/omrilotan/isbot</a></li><li>llms.txt proposal: <a href="https://llmstxt.org/">https://llmstxt.org</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f00bc1e9cc65" width="1" height="1" alt=""><hr><p><a href="https://pub.aeosoup.com/when-an-llm-reads-your-sitecoreai-site-it-gets-the-default-variant-f00bc1e9cc65">When an LLM Reads Your SitecoreAI Site, It Gets the Default Variant</a> was originally published in <a href="https://pub.aeosoup.com/">AEO Soup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevSync: Sync SitecoreAI Cloud Content to Your Local Docker CM]]></title>
            <link>https://medium.com/@sanghaniuday0508/devsync-sync-sitecoreai-cloud-content-to-your-local-docker-cm-492efeb49049?source=rss-424814f54411------2</link>
            <guid isPermaLink="false">https://medium.com/p/492efeb49049</guid>
            <category><![CDATA[sitecore]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[sitecore-ai]]></category>
            <category><![CDATA[headless-cms]]></category>
            <dc:creator><![CDATA[Uday Sanghani]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 03:31:16 GMT</pubDate>
            <atom:updated>2026-12-02T09:24:18.835Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A short technical guide to pulling real pages, with everything they depend on, from a SitecoreAI environment into your local Docker CM.</em></p><h3>What DevSync is</h3><p>DevSync is an open-source desktop app (Windows and macOS) that copies selected content from a SitecoreAI cloud environment into your local Docker CM. You tick a page in a content tree and click <strong>Sync to local</strong>. DevSync brings the page, its templates, renderings, datasources, media and parent folders, and pushes them locally.</p><p>It solves a gap most SitecoreAI teams know well. Tools exist to move content between cloud environments, but a fresh local CM is empty. Developers end up hand-writing serialization modules or debugging against shared cloud environments.</p><p>Three principles shape it:</p><ul><li><strong>Read-only against the cloud.</strong> DevSync never writes to a cloud environment. It only pushes to a localhost CM.</li><li><strong>Built on standard Sitecore tooling.</strong> It uses the Sitecore CLI’s serialization (SCS) and the Authoring and Management GraphQL API. Nothing is installed on the CM.</li><li><strong>Your repo stays clean.</strong> Working files, backups and reports live in the app’s data folder, not in your solution.</li></ul><p>Source: <a href="https://github.com/uday0508/sitecore-local-sync">github.com/uday0508/sitecore-local-sync</a> (Apache-2.0).</p><figure><img alt="DevSync after a sync: content tree, selection and run report" src="https://cdn-images-1.medium.com/max/1024/1*hG8gaCQs5fVXbeQvb_QG_w.png" /><figcaption>DevSync after a sync: content tree, selection and run report</figcaption></figure><p><em>Content tree on the left, selection and options in the middle, progress and the run report on the right.</em></p><h3>How it works</h3><p>A sync runs as five steps, shown live in the Activity panel.</p><ol><li><strong>Plan.</strong> DevSync reads the selected items from the cloud through the Authoring API. It follows every reference in their fields: templates and base templates, renderings, datasources, media and parent folders. Anything your local CM already has with the same item ID is skipped, which removes Sitecore’s built-in templates and layouts from the plan automatically. The result is a serialization module with the right scope and push rule for each path.</li><li><strong>Pull.</strong> DevSync runs dotnet sitecore ser pull from the cloud environment into a private workspace. It then reads the pulled items and fetches anything still missing, such as a template used by a child page or a datasource referenced only in the French layout.</li><li><strong>Mask</strong> (optional). Fields like Email and Phone are blanked, and email addresses in text are scrubbed, before content reaches your machine.</li><li><strong>Check.</strong> DevSync compares the pulled items with your local CM. If a local item sits at the same path as a cloud item but has a different ID, the run pauses and asks you what to do.</li><li><strong>Push.</strong> DevSync runs dotnet sitecore ser push to your local CM, then writes a report of what was synced, skipped or needs attention.</li></ol><p>The push rules protect local work:</p><ul><li>Templates, renderings and parent folders are <strong>created if missing</strong>, never overwritten. If your branch has a newer template, it stays.</li><li>The content you selected, and the content it references, is <strong>created or updated</strong> to match the cloud.</li><li>Nothing is deleted by the push itself. Deletions are handled separately, by item ID (see below).</li></ul><h3>Key capabilities</h3><p><strong>All dependencies, automatically.</strong> Select a page with “With everything below” and DevSync works out the rest. The Plan tab lists every path it will pull, grouped as parent folders, templates, renderings, media and datasources, plus how many are already on your machine.</p><p><strong>Only what changed.</strong> After the first sync, switch on <em>Only what changed since last sync</em>. DevSync asks the cloud’s search index for items updated since your last run, then plans those items and their new dependencies. A daily refresh takes seconds instead of a full pull.</p><figure><img alt="A delta preview: changed items since the last sync, with their dependencies" src="https://cdn-images-1.medium.com/max/1024/1*RS59oHuTWQpORMzSGcL7jw.png" /><figcaption>A delta preview: changed items since the last sync, with their dependencies</figcaption></figure><p><em>A delta preview: three changed items, the templates and media they need, and nine dependencies already on the machine.</em></p><p><strong>Every language.</strong> Change detection runs once per language defined in the environment, so a fix made only in the fr-FR version of a page is picked up. References are read from all language versions, and a language missing from your local CM is created before its content is pushed.</p><p><strong>Cloud deletions.</strong> DevSync keeps a list of the item IDs it synced for each profile. When an item disappears from the cloud, DevSync confirms it is really gone and moves the local copy to the Recycle Bin. It only removes items it synced itself.</p><p><strong>Conflict handling.</strong> When a local item has the same path as a cloud item but a different ID (typically a folder someone created locally before the cloud content existed), DevSync shows both IDs and lets you choose:</p><ul><li><strong>Replace local with cloud.</strong> The local item is backed up, then moved to the local Recycle Bin, and the cloud item is pushed.</li><li><strong>Keep local.</strong> Your item stays, and the cloud item at that path is not pushed.</li></ul><figure><img alt="The conflict dialog with local and cloud item IDs" src="https://cdn-images-1.medium.com/max/1024/1*C4nHPbeiNcbhiQxIf0Yhig.png" /><figcaption>The conflict dialog with local and cloud item IDs</figcaption></figure><p><em>The run pauses at Check until you decide.</em></p><p><strong>Orphan protection.</strong> If a cloud item uses a template that no longer exists in the cloud, it can’t be pushed. DevSync skips that item, syncs everything else, and names the missing template in the report.</p><p><strong>Reports.</strong> Every run, including failed and cancelled ones, produces a report listing what was replaced, kept, skipped or deleted, each with a suggested fix. Reports can be saved as HTML or CSV.</p><p><strong>Profiles.</strong> Save a selection (for example “Homepage” or “Products”) as a profile and rerun it in one click. The last project and connection reopen automatically.</p><p><strong>Safe while running.</strong> During a preview or sync, the tree, selection, profiles and connection are locked, so what you see always matches what is syncing. Cancel stops the run at any point and leaves a <em>Cancelled</em> report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZLiqTozjvZzB5h1pPghtfw.png" /><figcaption>The app during a run: selection locked, Cancel available</figcaption></figure><p><em>During a run the tree and selection are locked and Cancel is always available.</em></p><h3>Setup and first sync</h3><p><strong>You need:</strong></p><ul><li>A SitecoreAI project with the Sitecore CLI restored (dotnet tool restore) and the .NET SDK installed</li><li>Your local Docker CM running (up.ps1), reachable at <a href="https://xmcloudcm.localhost/">https://xmcloudcm.localhost</a></li><li>A Sitecore Cloud login in that project (dotnet sitecore cloud login)</li><li>Node.js 20 or later</li></ul><p><strong>Install:</strong> clone the repository, run npm install, then npm start.</p><p><strong>First sync:</strong></p><ol><li><strong>Open your project folder.</strong> DevSync reads the environments from the project’s Sitecore CLI settings. It remembers the project for next time.</li><li><strong>Connect.</strong> Pick the cloud environment as the source and your local CM as the target. Sign in with your existing CLI login, or with an automation client ID and secret. If the environment isn’t connected to the project yet, use <strong>+ Add cloud environment</strong>.</li><li><strong>Pick content.</strong> Choose a site, tick items in the tree, and choose for each one whether to include the items below it (for example With everything below).</li><li><strong>Preview first</strong> (optional). See the full plan without pulling anything, or use <em>Dry run</em> to pull without pushing.</li><li><strong>Sync to local.</strong> Follow progress in the Log tab. When it finishes, the Report tab lists anything that needs attention.</li><li><strong>Save as a profile</strong> to repeat the sync, and switch on <em>Only what changed</em> for later runs.</li></ol><p><strong>Headless mode.</strong> The same engine runs from the command line for scripts and onboarding: node bin/devsync.js run --profile Homepage --delta. It also supports plan, --dry-run and --on-conflict replace|skip.</p><h3>How it helps</h3><ul><li><strong>Faster onboarding.</strong> A new developer gets a working local site with real pages in minutes, from a shared profile.</li><li><strong>Realistic debugging.</strong> Components are tested locally against real content, including other languages and edge-case datasources, not hand-made test items.</li><li><strong>Fewer risky shortcuts.</strong> No more debugging against a shared cloud environment or hand-editing serialization modules to fetch one page.</li><li><strong>Safe by default.</strong> Read-only against the cloud, local work is never silently overwritten, and every replaced item can be restored from the Recycle Bin.</li><li><strong>Clean pull requests.</strong> Nothing DevSync uses is written to your repository.</li></ul><h3>What’s next</h3><ul><li>A <strong>VS Code extension</strong> on the same engine, with the cloud tree in the sidebar.</li><li>A <strong>Sitecore Marketplace app</strong> with a <em>Sync this page</em> button in Page Builder that hands the open page to DevSync.</li><li><strong>Environment-to-environment sync</strong> in that app, built on Sitecore’s Content Transfer API.</li></ul><p>Try it, and share feedback or pull requests at <a href="https://github.com/uday0508/sitecore-local-sync">github.com/uday0508/sitecore-local-sync</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=492efeb49049" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Great pages deserve to be seen on social: why we built BTS Echora for SitecoreAI]]></title>
            <link>https://medium.com/@sanghaniuday0508/great-pages-deserve-to-be-seen-on-social-why-we-built-bts-echora-for-sitecoreai-d92b9a80afcc?source=rss-424814f54411------2</link>
            <guid isPermaLink="false">https://medium.com/p/d92b9a80afcc</guid>
            <category><![CDATA[social-media-marketing]]></category>
            <category><![CDATA[content-marketing]]></category>
            <category><![CDATA[sitecore]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <dc:creator><![CDATA[Uday Sanghani]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 04:32:54 GMT</pubDate>
            <atom:updated>2026-12-02T09:47:33.585Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="BTS Echora: page to social for SitecoreAI" src="https://cdn-images-1.medium.com/max/1024/1*DUrb57AWnnzyurT8abNtiw.png" /><figcaption>BTS Echora: page to social for SitecoreAI</figcaption></figure><p><em>How we built a SitecoreAI Marketplace app that turns any page into on-brand posts for LinkedIn, X, Facebook and Instagram.</em></p><p>It’s 4:52 pm on a Tuesday. The new product page is live in SitecoreAI. The copy is approved and the images look great.</p><p>Then someone asks the question every marketing team knows: “Can we get this out on social today?”</p><p>That question is why we built BTS Echora.</p><h3>One page, four channels, four rulebooks</h3><p>A page is written once. Social needs it four different ways:</p><ul><li><strong>LinkedIn</strong> allows up to 3,000 characters, and a link becomes a preview card.</li><li><strong>X</strong> allows 280, and every link counts as 23 of them.</li><li><strong>Instagram</strong> needs an image: a JPEG between 4:5 and 1.91:1. Links in captions aren’t clickable.</li><li><strong>Facebook</strong> shows photos or a link preview, but not both in the same post.</li></ul><p>So the same announcement gets rewritten by hand, four times, usually in another tool. Images get resized. Someone checks it still sounds like the brand. Someone copies the link again.</p><p>Now multiply that by every page, every site and every region. The pages are great. The social posts are where they lose momentum.</p><h3>Social publishing, inside SitecoreAI</h3><p>BTS Echora is a Sitecore Marketplace app that turns a SitecoreAI page into a post for each social channel: written for that channel, on brand, and posted from one place.</p><p>It isn’t another tool bolted onto the side of your stack. It lives where your content already lives, in SitecoreAI, next to the page you’re editing.</p><h3>How it works</h3><ol><li><strong>Pick a page.</strong> Open BTS Echora in the Page builder context panel to work on the page in front of you, or open it full screen and choose any page from any site.</li><li><strong>Sitecore AI writes.</strong> The app reads the page’s text and images, then Sitecore AI drafts a post for every platform you use. Each draft follows that platform’s length, tone and hashtag rules, and uses only the facts on your page. Template placeholder text is filtered out first.</li><li><strong>You review and post.</strong> Edit the words, choose images from the page or upload your own, and check a live preview of how the post will look. Then post to your connected accounts.</li></ol><p>Images are handled per platform too: multi-image posts on LinkedIn, X and Facebook, carousels on Instagram, and conversion to the formats each platform accepts.</p><h3>On brand by design</h3><p>Every draft can be checked against the site’s brand kit with Sitecore Brand Review before it goes anywhere. The review scores the post section by section, such as tone of voice and grammar, explains each score and suggests what to change.</p><p>Each site uses the brand kit assigned to it in Sitecore by default, and teams can choose a different kit per site. A multi-brand, multi-region organization gets the right voice for every site with no extra setup.</p><p>Each site also gets its own public address for links, taken from its Sitecore hosts. So a post never links to an editing host or a local address by mistake.</p><h3>Built for SitecoreAI teams</h3><ul><li><strong>Two ways in.</strong> The Page builder context panel follows the page you’re editing. The full-screen app lets you pick any site, language and page, and manage settings.</li><li><strong>Your data stays in your Sitecore.</strong> Settings, platform connections and post history are stored as items in your own environment. They’re marked Never publish, so credentials never reach Experience Edge or your live site.</li><li><strong>It sets itself up.</strong> On first launch the app creates its templates and settings items. Later versions add only the fields they need and keep everything else.</li><li><strong>Direct posting.</strong> Connect LinkedIn, X, Facebook and Instagram once. Instagram supports Instagram Login, so no Facebook Page is needed. Tokens refresh automatically, and the post history links to every published post.</li></ul><h3>AI writes the draft. People stay in charge.</h3><p>We were deliberate about this. Every post is a draft until a person reviews it and confirms, so nothing posts by itself. Each draft also says which writer produced it, so reviewers know what they’re looking at.</p><p>The AI is instructed to use only facts from the page and never to invent statistics, quotes, prices or dates. Brand Review scores are guidance, not approval. The final call always stays with your team.</p><h3>What we learned building on the Marketplace SDK</h3><p>For developers building their own Sitecore Marketplace apps, here are seven things we wish we’d known on day one.</p><ol><li><strong>AI skills calls want the live Context ID.</strong> With the preview Context ID, Brand Review kept returning “Insufficient scope”, even with AI skills APIs enabled. Sitecore’s own example uses resourceAccess[0].context.live. Authoring, Sites and Agent calls work fine with the preview ID.</li><li><strong>Changing API access needs an app update.</strong> After you enable AI skills APIs in App studio, an organization admin must click Update on the app in My apps before the installed app picks it up.</li><li><strong>The SDK’s default timeout is 30 seconds.</strong> Brand Review on a full brand kit took us about 33 seconds, so calls timed out even though Sitecore returned 200. Pass timeoutMs in the mutation options, and send only the brand kit sections you need.</li><li><strong>Parse Brand Review responses defensively.</strong> The response is typed as unknown, and the reviews array can arrive wrapped or unwrapped depending on the call path.</li><li><strong>Hosts come from two places.</strong> xmc.sites.listSites usually includes each site&#39;s hosts, and xmc.sites.listHosts fills the gaps. Use targetHostname for public links; renderingHost is the editing host, not your live site.</li><li><strong>There’s no SDK endpoint for listing brand kits.</strong> We used the Sitecore Stream Brand Management REST API with a Stream AI API key, and fall back to each site’s assigned brand kit.</li><li><strong>Templates are easy to create, harder to extend.</strong> createItemTemplate in the Authoring GraphQL API works well for the first install. To add fields later, creating the section and field items directly was the most reliable path.</li></ol><p>One bonus for Next.js 16 users: its dev server now only serves scripts to its own origin. If you test OAuth through an https tunnel, as Instagram requires, add the tunnel host to allowedDevOrigins.</p><h3>Try BTS Echora</h3><p>BTS Echora is available now on Sitecore Marketplace. Great pages deserve to be seen on social, and now they can be, without leaving SitecoreAI.</p><ul><li>Get it on Sitecore Marketplace: <a href="https://portal.sitecorecloud.io/marketplace/details?id=pub-52ea8a66-1725-444a-8616-68dc8fbffbc1">BTS Echora · Page to social for SitecoreAI</a></li><li>Read the setup guide: <a href="https://biztechnosys.com/support/">Support: BTS Echora</a></li></ul><p>We’d love to hear from you. Which channel should we add next? Is the context panel or full screen more useful to your team? Leave a response below, or reach out to the BTS team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d92b9a80afcc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting Sitecore Content Hub DAM to AI Search Visibility via Scrunch & SitecoreAI]]></title>
            <link>https://pub.aeosoup.com/connecting-sitecore-content-hub-dam-to-ai-search-visibility-via-scrunch-sitecoreai-7b5a3a65da78?source=rss-424814f54411------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b5a3a65da78</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[content-management]]></category>
            <category><![CDATA[sitecore]]></category>
            <dc:creator><![CDATA[Uday Sanghani]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 10:25:09 GMT</pubDate>
            <atom:updated>2026-12-03T09:09:27.339Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Content Hub DAM to AI Search Visibility: Connecting Scrunch with SitecoreAI</h3><p><strong><em>How enterprise organizations bridge Content Governance with Answer Engine Optimization (AEO) and Generative Engine Optimization (GEO).</em></strong></p><figure><img alt="Enterprise content flow moving from Sitecore Content Hub DAM to Scrunch Knowledge Studio, SitecoreAI, and Generative Search Engines" src="https://cdn-images-1.medium.com/max/1024/1*4QWJQmC3b4DHessORh6rFQ.png" /><figcaption>Enterprise content flow moving from Sitecore Content Hub DAM to Scrunch Knowledge Studio, SitecoreAI, and Generative Search Engines</figcaption></figure><h3>Executive Summary: The Shift to AI-Driven Discovery</h3><p>Generative search engines — such as <strong>Perplexity</strong>, <strong>ChatGPT (SearchGPT)</strong>, <strong>Gemini</strong>, and <strong>Google AI Overviews</strong> — are fundamentally altering consumer and B2B discovery paths. Traditional SEO focuses on SERP rankings, keywords, and backlink authority; <strong>Answer Engine Optimization (AEO)</strong> and <strong>Generative Engine Optimization (GEO)</strong> require structured, semantic, and highly authoritative data that AI models can ingest, synthesize, and cite.</p><p>When LLMs deliver zero-click syntheses or cite third-party sources over official product specifications, traditional web analytics fail to diagnose the root cause.</p><p>Integrating <strong>Sitecore Content Hub DAM</strong>, <strong>Scrunch</strong>, and <strong>SitecoreAI</strong> bridges the gap between static content governance and dynamic AI visibility. This architecture creates an enterprise-grade ingestion and feedback loop that transforms brand repositories into trusted, AI-readable knowledge bases.</p><h3>Architectural Breakdown: Enterprise Data &amp; Governance Flow</h3><p>Connecting Digital Asset Management to AI Search Engines requires a multi-tiered architecture where every component handles a precise stage of the content lifecycle:</p><pre>┌───────────────────────────────┐<br>│   Sitecore Content Hub DAM    │ (Source of Truth)<br>│   • Taxonomies &amp; Specs        │<br>└───────────────┬───────────────┘<br>                │<br>                │ Base URL + API Token (Scrunch.KnowledgeStudio)<br>                ▼<br>┌───────────────────────────────┐<br>│   Scrunch Knowledge Studio    │ (Knowledge Engine)<br>│   • RAG Semantic Processing   │<br>│   • Conflict &amp; Claim Auditing │<br>└───────┬───────────────┬───────┘<br>        │               │<br>        │ Telemetry     │ Optimization Signals<br>        ▼               ▼<br>┌───────────────┐ ┌───────────────┐<br>│  Generative   │ │  SitecoreAI   │<br>│ Search Engines│ │ (Page Builder)│<br>│ (SearchGPT /  │ │ • Schema      │<br>│  Perplexity)  │ │ • Micro-copy  │<br>└───────────────┘ └───────────────┘</pre><h3>Core Platform Roles</h3><h4>Sitecore Content Hub DAM (Primary Source of Truth)</h4><ul><li><strong>Technical Role:</strong> Central repository for approved brand assets, technical specifications, legal disclosures, and media metadata.</li><li><strong>Governance &amp; Operations:</strong> Enforces user group policies and permissions, ensuring unapproved assets remain restricted from external ingestion.</li><li><strong>Documentation:</strong> <a href="https://doc.sitecore.com/sai/en/users/sitecoreai/ai-discoverability-powered-by-scrunch/connect-sitecoreai-dam-to-scrunch.html">Connect SitecoreAI DAM to Scrunch</a></li></ul><h4>Scrunch Knowledge Studio (Knowledge Graph &amp; RAG Preparation)</h4><ul><li><strong>Technical Role:</strong> Converts selected DAM source documents into normalized Knowledge Documents used by AI tools.</li><li><strong>Governance &amp; Operations:</strong> Flags sensitive content, factual conflicts, and errors for human review and approval prior to making documents available for AI grounding.</li><li><strong>Documentation:</strong> <a href="https://doc.sitecore.com/sai/en/users/sitecoreai/ai-discoverability-powered-by-scrunch/knowledge-studio.html">Knowledge Studio: Manage Knowledge Documents</a></li></ul><h4>Scrunch AI Visibility Engine (Generative Telemetry &amp; Audit)</h4><ul><li><strong>Technical Role:</strong> Monitors how generative AI systems view, describe, and cite your brand across monitored prompt sets.</li><li><strong>Governance &amp; Operations:</strong> Measures Share of Voice (SoV), citation frequency, competitor visibility, and surfaces AEO opportunities.</li><li><strong>Documentation:</strong> <a href="https://doc.sitecore.com/sai/en/users/sitecoreai/sitecoreai.html">AI Discoverability Powered by Scrunch</a></li></ul><h4>SitecoreAI Page Builder &amp; CMS (Execution &amp; Optimization)</h4><ul><li><strong>Technical Role:</strong> Surfaces Signals on Strategy pages and delivers page-level AEO recommendations inside Page Builder.</li><li><strong>Governance &amp; Operations:</strong> Allows content authors to review, apply, or reject AEO recommendations directly within their publishing workflows.</li><li><strong>Documentation:</strong> <a href="https://doc.sitecore.com/sai/en/users/sitecoreai/ai-discoverability-powered-by-scrunch/signals/view-signals.html">AEO Opportunities in SitecoreAI</a></li></ul><h3>Technical Deep-Dive: Platform Interoperability</h3><h4>1. Sitecore Content Hub DAM: Setup &amp; Authentication</h4><ul><li><strong>Authentication Method:</strong> Connection uses the environment’s Base URL (e.g., [https://your-environment.sitecore.cloud](https://your-environment.sitecore.cloud)) and a single API Key (API Token).</li><li><strong>User Context:</strong> API keys are generated under a specific user account (e.g., Scrunch.KnowledgeStudio) in <strong>Manage &gt; Users</strong> by a DAM Superuser.</li><li><strong>RBAC &amp; Governance:</strong> Scrunch strictly inherits the exact group policies of the configured DAM user. If an asset is restricted for that user in Content Hub, Scrunch cannot ingest or convert it.</li></ul><h4>2. Scrunch Knowledge Studio: Processing &amp; Content States</h4><p><strong>Knowledge Document Processing:</strong> Converts DAM source documents into compiled knowledge documents.</p><p><strong>Verification States:</strong> Analyzes grounded claims to categorize information and highlight discrepancies:</p><ul><li>🟢 <strong>Supported:</strong> Claims align directly with approved DAM metadata.</li><li>🔴 <strong>Contradicted:</strong> Public AI responses conflict with approved DAM data, signaling hallucination or outdated web copy.</li><li>🟡 <strong>Not Covered:</strong> High-volume user questions lack corresponding content coverage in approved DAM sources.</li></ul><h4>3. SitecoreAI: In-Context Optimization Workflow</h4><ul><li><strong>Signal Surfaces:</strong> Signals appear on the Strategy page in SitecoreAI, highlighting metric changes (percentage point shifts) by status, competitor, or topic.</li><li><strong>Page-Level Execution:</strong> Inside Sitecore Page Builder, content authors review page-specific AEO recommendations to improve answer structure, semantic relevance, and microdata quality.</li></ul><h3>4-Step Operational Framework: Executing an AEO Pipeline</h3><h4>Step 1: Establish AI Visibility Telemetry</h4><p>Monitor visibility across AI platforms using Scrunch to establish baseline metrics for brand mentions, citation frequency, and competitor performance.</p><h4>Step 2: Connect DAM &amp; Ground Knowledge Studio</h4><p>In SitecoreAI DAM, create a dedicated integration user and generate an API key. In Scrunch, navigate to <strong>Brand Settings &gt; Integrations &gt; SitecoreAI DAM &gt; Manage</strong>, enter your Instance URL and API key, and test the connection. Select DAM sources, compile a Knowledge Document, and complete human review and approval.</p><h4>Step 3: Execute In-Context AEO Remediation</h4><p>In SitecoreAI, navigate to <strong>Strategy &gt; Signals</strong> to evaluate identified opportunities. Open affected pages in Page Builder, evaluate recommended content improvements, and publish updates through your standard approval process.</p><h4>Step 4: Audit, Refresh, and Re-Index</h4><p>When DAM content changes, refresh the sources in Knowledge Studio and regenerate the knowledge document to maintain grounding accuracy. Re-evaluate tracked AI platforms over consistent reporting periods to measure visibility shifts.</p><h3>Key Performance Indicators (KPIs) for AEO/GEO</h3><p>Evaluating AEO success requires tracking metrics across generative search paths:</p><ul><li><strong>Generative Citation Share:</strong> Frequency and proportion of monitored AI responses that explicitly attribute claims to your brand.</li><li><strong>Entity Contradiction Rate:</strong> Frequency of public AI outputs containing conflicting claims relative to approved DAM source data.</li><li><strong>Prompt Visibility &amp; Share of Voice:</strong> Relative brand presence across tracked competitive topics and user prompts.</li><li><strong>Referral Conversion Quality:</strong> Visitor engagement, time-on-site, and conversion events driven by AI search referrers.</li></ul><h3>Official References &amp; Technical Documentation</h3><p>For verified platform capabilities, configuration steps, and architectural specifications, consult official Sitecore documentation:</p><ul><li>📄 <strong>Platform Overview:</strong> <a href="https://doc.sitecore.com/sai/en/users/sitecoreai/sitecoreai.html">SitecoreAI Documentation</a></li><li>📄 <strong>Connector Setup:</strong> <a href="https://doc.sitecore.com/sai/en/users/sitecoreai/ai-discoverability-powered-by-scrunch/connect-sitecoreai-dam-to-scrunch.html">Connect SitecoreAI DAM to Scrunch</a></li><li>📄 <strong>Knowledge Governance:</strong> <a href="https://doc.sitecore.com/sai/en/users/sitecoreai/ai-discoverability-powered-by-scrunch/knowledge-studio.html">SitecoreAI DAM and Scrunch Knowledge Studio</a></li><li>📄 <strong>Signal Management:</strong> <a href="https://doc.sitecore.com/sai/en/users/sitecoreai/ai-discoverability-powered-by-scrunch/signals/view-signals.html">View Signals in SitecoreAI</a></li></ul><h3>Implementation Checkpoints</h3><h3><strong><em>Verification Checklist:</em></strong></h3><ul><li><strong>Permissions:</strong> API key generation in SitecoreAI DAM requires <strong>Superuser</strong> access; adding integrations in Scrunch requires <strong>Editor</strong> brand permission.</li><li><strong>Separation of Scope:</strong> The DAM-to-Scrunch connection and CMS-to-SitecoreAI integration operate as separate connections. Grounding knowledge documents in Scrunch does not automatically alter web pages without explicit author action in Page Builder.</li><li><strong>Early Access Scope:</strong> Knowledge Studio and Scrunch AI Discoverability capabilities are early access features requiring active subscriptions for both SitecoreAI DAM and Scrunch.</li></ul><h3>Conclusion &amp; Discussion</h3><p>Managing digital assets in isolation is no longer enough. By connecting <strong>Sitecore Content Hub DAM</strong>, <strong>Scrunch</strong>, and <strong>SitecoreAI</strong>, enterprise platforms turn passive governance into active AI search visibility.</p><p>What are your thoughts on connecting content governance directly to Answer Engine Optimization? Share your perspective in the comments below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b5a3a65da78" width="1" height="1" alt=""><hr><p><a href="https://pub.aeosoup.com/connecting-sitecore-content-hub-dam-to-ai-search-visibility-via-scrunch-sitecoreai-7b5a3a65da78">Connecting Sitecore Content Hub DAM to AI Search Visibility via Scrunch &amp; SitecoreAI</a> was originally published in <a href="https://pub.aeosoup.com/">AEO Soup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Does RelationExists Return Zero Results in Sitecore Content Hub?]]></title>
            <link>https://medium.com/@sanghaniuday0508/why-does-relationexists-return-zero-results-in-sitecore-content-hub-ba20984e509d?source=rss-424814f54411------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba20984e509d</guid>
            <category><![CDATA[sitecore]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[content-management]]></category>
            <category><![CDATA[sitecore-content-hub]]></category>
            <category><![CDATA[troubleshooting]]></category>
            <dc:creator><![CDATA[Uday Sanghani]]></dc:creator>
            <pubDate>Wed, 14 Oct 2026 05:38:27 GMT</pubDate>
            <atom:updated>2026-12-02T09:50:18.611Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sitecore Content Hub: Why RelationExists Returns Zero Results with SearchAfter</h3><figure><img alt="Sitecore Content Hub troubleshooting for AssetToPublicLink relationship queries using RelationExists and SearchAfter" src="https://cdn-images-1.medium.com/max/1024/1*9x-ham_dKI3sEOh_D7p1nA.png" /><figcaption>Sitecore Content Hub troubleshooting for AssetToPublicLink relationship queries using RelationExists and SearchAfter</figcaption></figure><p>While working with Sitecore Content Hub, I ran into an issue with the AssetToPublicLink relationship. The relationship existed, but querying from the Asset side using RelationExists and SearchAfter returned zero results.</p><p>Initially, this looked like a relationship-data issue. But the investigation led to something more specific: <strong>the relationship role used in the query mattered.</strong></p><p>Here’s what I found.</p><h3>The actual issue</h3><p>The scenario involved the AssetToPublicLink relationship and a query starting from M.Asset using the Child role.</p><p>The query returned zero results, even though the expected relationship was present.</p><p>I raised this with Sitecore Support under <strong>CS0738638</strong>, tracked against product improvement <strong>CHSEARCH-732</strong>.</p><p>During the investigation, Sitecore Support, advised that the Child-role approach was unsupported for this SearchAfter scenario and recommended using the Parent-role query pattern as a workaround.</p><p>That was the important finding: the relationship existed, but the query approach wasn’t supported in this scenario.</p><h3>What worked as a workaround?</h3><p>Instead of relying on the Child-role query from M.Asset, the recommended approach was to query from the M.PublicLink side using the supported Parent-role pattern, then retrieve the associated asset IDs.</p><p>The practical steps were:</p><ol><li>Query the relevant public links using the supported relationship pattern.</li><li>Retrieve the associated asset IDs.</li><li>Apply the required asset-level filters.</li><li>Validate the results against the expected relationships.</li></ol><p>The exact query syntax depends on the implementation and Content Hub environment, so verify the relationship definition before applying this approach.</p><h3>My debugging checklist</h3><p>If you’re facing a similar issue, I’d check these before changing the data:</p><ul><li>Does the relationship actually exist?</li><li>Are the source and target entity types correct?</li><li>Are you using the expected relationship role?</li><li>Does RelationExists work when tested independently?</li><li>Does the query return results before adding pagination?</li><li>Have you tested SearchAfter separately?</li></ul><p><strong>My biggest takeaway:</strong> Don’t assume a zero-result response means the relationship is missing. Validate the query direction and supported relationship role first.</p><h3>A few questions developers might have</h3><p><strong>Why does </strong><strong>RelationExists return zero results?</strong></p><p>Check the relationship name, role, query direction, and additional filters. Isolate the relationship condition before investigating pagination.</p><p><strong>Should I always use the Parent role?</strong></p><p>No. The workaround described here applies to this specific AssetToPublicLink scenario. Other relationships may behave differently.</p><p><strong>Is </strong><strong>SearchAfter the root cause?</strong></p><p>Not necessarily. First confirm that the relationship filter returns the expected results, then investigate pagination independently.</p><p><strong>Where was this issue reported?</strong></p><p>The investigation was documented under Sitecore Support case <strong>CS0738638</strong>, with product improvement reference <strong>CHSEARCH-732</strong>.</p><h3>Final thoughts</h3><p>This was a useful reminder that troubleshooting Sitecore Content Hub isn’t always about checking whether data exists. Sometimes, the query pattern itself deserves a closer look.</p><p>If you’re working with RelationExists and SearchAfter, test the relationship independently, verify the supported role, and only then move on to pagination.</p><p><strong>References</strong></p><ul><li>Sitecore Support case: CS0738638</li><li>Product improvement: CHSEARCH-732</li><li><a href="https://doc.sitecore.com/ch/">Sitecore Content Hub documentation</a></li></ul><p><em>The workaround reflects the specific scenario and Support guidance discussed above. Verify the behavior against your Content Hub environment before applying it elsewhere.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba20984e509d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sitecore Content Hub Import/Export: What Really Happens When a Package Import Fails?]]></title>
            <link>https://medium.com/@sanghaniuday0508/sitecore-content-hub-import-export-what-really-happens-when-a-package-import-fails-6d3a9358414f?source=rss-424814f54411------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d3a9358414f</guid>
            <category><![CDATA[import-export]]></category>
            <category><![CDATA[sitecore-content-hub]]></category>
            <category><![CDATA[digital-asset-management]]></category>
            <category><![CDATA[content-management]]></category>
            <category><![CDATA[sitecore]]></category>
            <dc:creator><![CDATA[Uday Sanghani]]></dc:creator>
            <pubDate>Wed, 07 Oct 2026 16:42:51 GMT</pubDate>
            <atom:updated>2026-10-07T16:42:51.721Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sitecore Content Hub Import/Export: What Happens When a Package Import Fails?</h3><figure><img alt="Sitecore Content Hub package import and export workflow showing migration between environments, with scripts, triggers, dependencies, and rollback considerations." src="https://cdn-images-1.medium.com/max/1024/1*tR0nLWdCf9fvDwq98SjiNQ.png" /></figure><p>Moving configuration and content between Sitecore Content Hub environments looks straightforward: export a package from one environment, import it into another, and accept the changes.</p><p>In practice, package imports can become more complicated when the package contains <strong>dependent entities, scripts, triggers, actions, or environment-specific configuration</strong>.</p><p>While working through a Content Hub package migration, I encountered several failures that helped uncover important behavior around the import process. Two of the scenarios were subsequently identified as product issues: <strong>MONE-63375</strong> and <strong>MONE-63348</strong>.</p><p>This article documents what I learned and the practical approach I used to handle these situations.</p><h3>1. An Import Failure Does Not Mean Everything Is Rolled Back</h3><p>One of the first things to understand is that Content Hub does not necessarily restore every change made during a failed import.</p><p>For entities with dependencies, Content Hub can perform automatic rollback. For example, dependent entities such as:</p><ul><li>Portal.PageComponent</li><li>Portal.PageDefinition</li></ul><p>can be returned to their previous state when the relevant import operation fails.</p><p>However, this should not be interpreted as a complete transaction rollback for the entire package.</p><p>Other changes made during the import may remain and require restoration using the <strong>backup recovery package</strong>.</p><p>That distinction is important when planning package migrations.</p><h3>Practical takeaway</h3><p>Before performing a significant import:</p><ol><li>Make sure the target environment has an appropriate recovery option.</li><li>Do not assume a failed import automatically restores the complete environment.</li><li>Validate the target environment after an unsuccessful import.</li><li>Use the backup recovery package when changes outside the automatic rollback scope need to be restored.</li></ol><p>For the complete import behavior and recovery procedure, see the official Sitecore documentation:</p><p><a href="https://doc.sitecore.com/ch/en/users/content-hub/import-a-package.html?utm_source=chatgpt.com">Sitecore Documentation — Import a package</a></p><p><a href="https://doc.sitecore.com/ch/en/users/content-hub/recover-a-failed-import.html?utm_source=chatgpt.com">Sitecore Documentation — Recover a failed import</a></p><h3>2. Scripts and Triggers Can Create an Import Sequencing Problem</h3><p>The more interesting issue occurred when the package contained <strong>scripts together with actions and triggers</strong>.</p><p>During the import, the script entities are brought into the target environment along with the other entities.</p><p>However, the script contents are built and compiled later in the import process.</p><p>This creates an important sequencing dependency:</p><p><strong>Script imported → Trigger becomes available → Trigger condition is met → Script compilation has not completed</strong></p><p>If a trigger condition is satisfied during this period, the trigger can execute before the associated script is ready.</p><p>The result can be an execution failure that interrupts the remaining import process.</p><p>In my case, this resulted in scripts remaining unpublished with unsaved changes.</p><p>This behavior was subsequently reported as:</p><p><strong>MONE-63375 — Trigger/script execution during package import</strong></p><h3>Recommended workaround</h3><p>Instead of importing everything together, split the operation.</p><p><strong>Step 1 — Import the package without triggers</strong></p><p>Import the package while excluding the triggers and accept the changes.</p><p>This allows the scripts and their associated configuration to be imported and processed without the trigger executing prematurely.</p><p><strong>Step 2 — Import the triggers separately</strong></p><p>Once the first import has completed successfully, import the triggers as a separate package.</p><p>This avoids the problematic execution window during the initial package import.</p><h3>Why this matters</h3><p>This is not simply an import configuration preference. It is a practical workaround for a sequencing issue where <strong>trigger execution can occur before script compilation has completed</strong>.</p><h3>3. Environment-Specific Definitions Can Break Search Filters</h3><p>Another issue appeared when a search filter contained a reference to:</p><p>M.ContentVersion</p><p>The important detail is that this definition is <strong>environment-specific</strong> and is not included in the exported package.</p><p>When the package was imported into another environment, the search filter still contained the reference.</p><p>The target environment therefore encountered a dependency that was not available as part of the package.</p><p>This behavior was reported as:</p><p><strong>MONE-63348 — Environment-specific definition referenced by search filter</strong></p><h3>What this means for migrations</h3><p>Exporting the visible configuration does not necessarily mean that every referenced system or environment-specific definition will travel with the package.</p><p>When troubleshooting an import failure, don’t only inspect the entity that failed.</p><p>Also check:</p><ul><li>Search filters</li><li>Entity definitions</li><li>References to system entities</li><li>Environment-specific configuration</li><li>Dependencies that are not part of the export package</li></ul><p>A package can be structurally valid while still containing references that cannot be resolved in the target environment.</p><h3>4. What About Unexpected Taxonomy or Page Configuration?</h3><p>During the same investigation, unexpected configuration was also found around the <strong>FigmaImport taxonomy and pages</strong>.</p><p>The available audit information did not provide enough evidence to determine exactly how those configurations had been introduced, and the behavior could not be reproduced.</p><p>This is an important distinction when troubleshooting Content Hub:</p><blockquote><strong><em>Not every unexpected configuration can be attributed to the import process without reproducible evidence.</em></strong></blockquote><p>When this type of issue occurs, the most useful information for Support is:</p><ul><li>Source environment</li><li>Target environment</li><li>Package used</li><li>Exact import steps</li><li>Order in which packages were imported</li><li>Configuration before and after the import</li><li>Available audit information</li><li>Whether the issue can be reproduced</li></ul><p>That information makes it easier to determine whether the behavior is related to the package, the import sequence, or another system operation.</p><h3>5. A Safer Import Approach</h3><p>Based on these scenarios, I prefer treating a complex Content Hub package as a <strong>controlled migration</strong> rather than a single operation.</p><h3>Before importing</h3><p>Validate:</p><ul><li>Package contents</li><li>Dependencies</li><li>Search filters</li><li>Scripts</li><li>Actions</li><li>Triggers</li><li>Environment-specific references</li><li>Recovery/backup availability</li></ul><h3>During the import</h3><p>For packages containing scripts and triggers:</p><p><strong>Import configuration and scripts → Accept changes → Validate → Import triggers separately</strong></p><h3>After the import</h3><p>Validate:</p><ul><li>Scripts are published</li><li>Scripts have no unsaved changes</li><li>Triggers are enabled as expected</li><li>Actions execute correctly</li><li>Search filters resolve correctly</li><li>Page Builder configuration is intact</li><li>No unexpected configuration was introduced</li></ul><h3>6. The Main Lessons</h3><p>The biggest lesson from this investigation was that a Content Hub package should not always be treated as an isolated collection of entities.</p><p>There can be <strong>execution dependencies and environment dependencies</strong> that are not obvious from the package itself.</p><h3>1. Failed import ≠ complete rollback</h3><p>Some dependent entities can be rolled back automatically, but other changes may require recovery from a backup package.</p><h3>2. Import order can matter</h3><p>Scripts and triggers may need to be separated when trigger execution can occur before script compilation has completed.</p><h3>3. Exported configuration may reference environment-specific objects</h3><p>A search filter can contain references that are valid in the source environment but cannot be resolved in the target environment.</p><h3>Conclusion</h3><p>The Content Hub import/export process becomes much easier to manage once these dependencies are understood.</p><p>The two issues identified during this investigation — <strong>MONE-63375</strong> for trigger/script execution and <strong>MONE-63348</strong> for environment-specific definition references — also highlight why troubleshooting should go beyond simply retrying the import.</p><p>For complex migrations, I recommend treating package import as a controlled deployment process:</p><p><strong>Understand dependencies → Prepare recovery → Import in logical stages → Validate → Enable triggers last</strong></p><p>That approach makes failures easier to diagnose and reduces the risk of leaving the target environment in an unexpected state.</p><h3>References</h3><ul><li><a href="https://doc.sitecore.com/ch/en/users/content-hub/import-a-package.html?utm_source=chatgpt.com">Sitecore Documentation — Import a package</a></li><li><a href="https://doc.sitecore.com/ch/en/users/content-hub/recover-a-failed-import.html?utm_source=chatgpt.com">Sitecore Documentation — Recover a failed import</a></li><li>Sitecore Support — <strong>MONE-63375</strong></li><li>Sitecore Support — <strong>MONE-63348</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d3a9358414f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Sitecore CDP & Personalize on Next.js App Router: What Developers Need to Know]]></title>
            <link>https://medium.com/@sanghaniuday0508/building-sitecore-cdp-personalize-on-next-js-app-router-what-developers-need-to-know-b255b1cd0abe?source=rss-424814f54411------2</link>
            <guid isPermaLink="false">https://medium.com/p/b255b1cd0abe</guid>
            <category><![CDATA[cdp]]></category>
            <category><![CDATA[personalization]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[sitecore]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Uday Sanghani]]></dc:creator>
            <pubDate>Sun, 27 Sep 2026 11:04:48 GMT</pubDate>
            <atom:updated>2026-12-03T09:11:00.430Z</atom:updated>
            <content:encoded><![CDATA[<p>I built a working Next.js App Router + TypeScript starter for Sitecore CDP and Personalize because the official paths do not map cleanly onto a modern React Server Components stack. Sitecore’s documentation is still oriented around JSS apps or the older Boxever library. Neither matches the client/server boundary, cookie lifecycle, hydration rules, or middleware constraints you hit when you put the Cloud SDK into an App Router project that is not purely SitecoreAI-hosted.</p><p>This post is not a feature tour. It is the set of non-obvious failures I hit, the exact error messages Sitecore returned, and the engineering decisions that fixed them. If you are already past “what is CDP,” start here.</p><h3>The Problem This Starter Solves</h3><p>The Cloud SDK is the current supported path for event collection and client-side personalization. It works. The problem is the surrounding surface area.</p><p>In a JSS Next.js app on SitecoreAI, middleware plugins, page props factories, and layout components already own cookie creation, browser ID propagation, and the personalize call. In a plain App Router app you own all of that yourself. That means:</p><ul><li>Client components must initialize the SDK once and only after consent.</li><li>Server Components cannot call the browser SDK.</li><li>Middleware must read the sc_cid cookie and either pass it through or call the Personalize REST API directly.</li><li>Hydration must not wipe DOM that a Web Experience has already mutated.</li><li>The Cloud SDK itself only works for JSS Next.js apps hosted on SitecoreAI. If you are not on SitecoreAI, the Engage SDK is the only supported alternative.</li></ul><p>None of those constraints appear as a single checklist in the docs. They surface one failure at a time: missing pointOfSale, FreeMarker nulls, flicker, webhook 400s, traits that never appear. The starter exists so you can see the working boundaries in one place instead of rediscovering each of them.</p><h3>Architecture Overview</h3><p>There are two integration paths.</p><p><strong>Browser path:</strong> Cloud SDK initializes with Context ID + Site Name → events go to CDP → personalize() calls Interactive Experiences → Web Experiences inject into a target selector.</p><p><strong>Server path:</strong> Next.js Middleware (or an API route) reads the browser ID cookie → calls the Personalize Flow Execution REST API (/v2/callFlows) or the CDP Guest REST API → hands the result to the page via a response header or JSON response.</p><figure><img alt="Architecture diagram showing a Next.js app integrating with Sitecore CDP and Sitecore Personalize through the Cloud SDK in the browser and REST APIs on the server." src="https://cdn-images-1.medium.com/max/1024/1*JgHxg9j9skr6ob27SoBjRQ.png" /></figure><p><strong>Responsibility split:</strong></p><ul><li><strong>Cloud SDK (browser)</strong> — Event collection, cookies, client personalize(), Web Experience injection</li><li><strong>Sitecore CDP</strong> — Guest profiles, identity resolution, segments, session traits</li><li><strong>Sitecore Personalize</strong> — Decision models, experiences, webhook firing</li><li><strong>Next.js Middleware</strong> — Server-side flow execution, header handoff</li><li><strong>Next.js API routes</strong> — CDP Guest REST proxy, webhook receiver, config-status</li><li><strong>Sitecore UI</strong> — Identity rules, segments, traits, decision models, connections</li></ul><p>The boundary exists because the browser SDK cannot hold secrets and the server SDK (as currently typed) cannot send a configurable pointOfSale. Everything that needs a secret or a full payload lives on the server. Everything that must react to the live DOM lives in the browser.</p><h3>The Cloud SDK vs Engage SDK Decision</h3><p>The constraint that shapes the entire starter: the Cloud SDK only works for JSS Next.js apps hosted on SitecoreAI. That is stated in the starter’s own “What This Starter Does NOT Do” section and matches the packaging of the official Cloud SDK packages (@sitecore-cloudsdk/core, events, personalize).</p><p>If your organization is not on SitecoreAI, you must use the Engage SDK instead. The starter deliberately does not attempt to dual-support both. Trying to abstract over both SDKs produces a lowest-common-denominator API that hides the real differences in cookie handling, initialization, and personalize signatures. I chose one path and documented the gate.</p><p>That decision also explains the two credential sources. Context ID and Site Name come from SitecoreAI Deploy. Point of Sale, Client Key, and API Token come from the CDP tenant. Mixing them is a common setup failure; the sidebar config panel exists specifically to surface which set is missing.</p><h3>CDP Event Implementation</h3><p>All event helpers live under src/sitecore/cdp/events/. Three details are easy to miss.</p><h3>identity() is a direct import</h3><pre>import { identity } from &#39;@sitecore-cloudsdk/events/browser&#39;;<br>import type { IdentityData } from &#39;./types&#39;;<br><br>export async function sendIdentityEvent(data: IdentityData): Promise&lt;void&gt; {<br>  await identity(data);<br>}</pre><p>There is no engage.identity(). The function is imported directly from the browser events package.</p><h3>form() takes three positional arguments</h3><pre>import { form } from &#39;@sitecore-cloudsdk/events/browser&#39;;<br><br>export async function sendFormEvent(data: {<br>  formId: string;<br>  interactionType: &#39;VIEWED&#39; | &#39;SUBMITTED&#39;;<br>  componentInstanceId: string;<br>}): Promise&lt;void&gt; {<br>  await form(<br>    data.formId,<br>    data.interactionType,<br>    data.componentInstanceId<br>  );<br>}</pre><p>Not an options object. Positional: form ID, interaction type, component instance ID.</p><h3>Custom events and reserved names</h3><pre>import { event } from &#39;@sitecore-cloudsdk/events/browser&#39;;<br>import type { EventData } from &#39;@sitecore-cloudsdk/events/browser&#39;;<br><br>export async function sendCustomEvent(data: EventData): Promise&lt;void&gt; {<br>  if (data.type.startsWith(&#39;SC_&#39;)) {<br>    throw new Error(<br>      `Custom event type must not start with &quot;SC_&quot;. ` +<br>        `&quot;SC_&quot; is reserved by Sitecore CDP.`<br>    );<br>  }<br>  const reserved = [&#39;VIEW&#39;, &#39;IDENTITY&#39;, &#39;ORDER_CHECKOUT&#39;, &#39;CHECKOUT&#39;];<br>  if (reserved.includes(data.type)) {<br>    throw new Error(<br>      `Use the dedicated function for standard event &quot;${data.type}&quot;.`<br>    );<br>  }<br>  await event(data);<br>}</pre><p>ORDER_CHECKOUT and similar reserved types must go through the dedicated helpers (or event() with the correct shape), not through a free-form custom type. Custom types must not start with SC_.</p><h3>Event queue</h3><pre>import { queueEvent, processQueue, discardQueue } from &#39;@/src/sitecore/cdp/events/queue&#39;;<br><br>await queueEvent({ type: &#39;starter:ANALYTICS_PING&#39;, /* ... */ });<br>await processQueue();<br>await discardQueue();</pre><p>Use the queue for non-critical events so they do not compete with VIEW / IDENTITY / ORDER. Do not queue anything that must arrive in real time for a decision or a trigger.</p><h3>The FreeMarker Trap</h3><p>This is the single largest source of confusion when wiring an Interactive Experience to a Decision Model.</p><p>The working template looks like this:</p><pre>&lt;#assign personaNode = getDecisionModelResultNode(&quot;Calculate Persona&quot;)&gt;<br>{<br>  &quot;persona&quot;: &quot;${(personaNode.outputs[0].CalculatePersona)!&quot;unknown&quot;}&quot;<br>}</pre><p>Rules that prevent real errors:</p><ol><li><strong>getDecisionModelResultNode() takes the node name</strong>, not the output reference. Node names can contain spaces. Passing the output reference returns null and you get getDecisionModelResultNode(…) evaluated to null or missing.</li><li><strong>The output is accessed via .outputs[0].&lt;OutputReference&gt;</strong>. It is not a direct property on the node. Using the wrong path produces the same null error or a templating failure.</li><li><strong>The correct closing tag is &lt;/#if&gt;</strong>, not &lt;#/if&gt;. An unclosed or mistyped #if produces Templating transformation failed.</li><li><strong>Preview tests the saved version.</strong> If the yellow banner says “Your variant has changes,” Preview is still running the last saved template. Save first.</li><li><strong>Session traits are accessed as guest.traits.session.&lt;friendlyId&gt;.value</strong>. The friendlyId is the lowercase, auto-generated key, not the display name you typed in the UI. Wrong case → null → the same “evaluated to null or missing” message.</li></ol><p>Wrap every node access in &lt;#if (node)??&gt; and always provide a FreeMarker default (!”unknown”) so a missing trait does not break the entire response.</p><h3>Web Experience Flicker — Why the Obvious Solutions Fail</h3><p>Web Experiences inject after paint. In a React app that means a visible swap unless you design for it.</p><p>What I tried and why each failed:</p><ul><li><strong>useState + useEffect to track “loading”</strong> — Any React re-render (state update, parent re-render, Strict Mode double-mount) recreates the target element and wipes the injected content. Personalize has nowhere stable to write.</li><li><strong>MutationObserver</strong> — Same problem. React still owns the tree and can replace the node.</li><li><strong>visibility: hidden until Personalize runs</strong> — Removes the visual flicker but introduces layout shift when the content appears, and still fights React ownership of the element.</li><li><strong>Skeleton outside the target</strong> — The target itself still renders default content; the swap remains visible.</li></ul><p>The pattern that works: render the skeleton <strong>inside</strong> the target element, with no state and no effects.</p><pre>export function HeroSection() {<br>  return (<br>    &lt;section<br>      id=&quot;hero-skeleton&quot;<br>      className=&quot;hero-section bg-white rounded-xl shadow-sm border border-gray-200 p-8 mb-8 min-h-[200px]&quot;<br>    &gt;<br>      &lt;div className=&quot;animate-pulse&quot;&gt;<br>        &lt;div className=&quot;h-8 bg-gray-200 rounded w-3/4 mb-4&quot; /&gt;<br>        &lt;div className=&quot;h-4 bg-gray-200 rounded w-full mb-2&quot; /&gt;<br>        &lt;div className=&quot;h-4 bg-gray-200 rounded w-5/6&quot; /&gt;<br>      &lt;/div&gt;<br>    &lt;/section&gt;<br>  );<br>}</pre><p>React mounts the component once. Because there is no state, React never re-renders this subtree. Personalize owns the inner content via replaceHTMLExact(‘.hero-section’). The skeleton is what the user sees until the injection happens; there is no second paint of default content.</p><p>Broader lesson: for primary content that must not flicker, use an Interactive Experience (client or server). Web Experiences always inject after paint. They are the right tool for overlays and banners, not for the main body of the page.</p><p>Also note: replaceHTMLExact expects a CSS selector string. Passing a DOM element produces [object HTMLElement] is not a valid selector.</p><h3>Server-Side Personalization — Why the SDK Does Not Work</h3><p>This is the second major non-obvious problem.</p><p>The Cloud SDK’s server-side personalize() does not expose pointOfSale on the ServerSettings type. The SDK strips the value from the request. The API then rejects the call with:</p><blockquote><em>The request contains invalid point of sale “”</em></blockquote><p>That is not a transient bug; it is a limitation of the current server settings surface. The fix is to call the Personalize Flow Execution REST API directly.</p><pre>// middleware.ts (excerpt)<br>const payload = {<br>  clientKey: process.env.SITECORE_CDP_CLIENT_KEY!,<br>  channel: &#39;WEB&#39;,<br>  language: &#39;en&#39;,<br>  currencyCode: &#39;USD&#39;,<br>  pointOfSale: process.env.NEXT_PUBLIC_CDP_POINTOFSALE!,<br>  browserId: request.cookies.get(&#39;sc_cid&#39;)?.value,<br>  friendlyId: &#39;demo_interactive&#39;,<br>};<br><br>const personalizeResponse = await fetch(&#39;https://api.boxever.com/v2/callFlows&#39;, {<br>  method: &#39;POST&#39;,<br>  headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>  body: JSON.stringify(payload),<br>});<br>const result = await personalizeResponse.json();<br>response.headers.set(&#39;x-personalize-result&#39;, JSON.stringify(result));</pre><p>The page reads the header during SSR. First paint already contains the decision. Document this for your team as a known limitation of the SDK’s server surface, not as a defect in your code. Scope the middleware matcher tightly; every matched request pays the latency cost.</p><h3>Triggered Experiences — The Connection Test Trap</h3><p>A Triggered Experience is two pieces of config:</p><ol><li>A <strong>Connection</strong> — HTTP plumbing only (URL, method, headers, auth).</li><li>A <strong>Webhook Composer</strong> inside the experience — the FreeMarker payload that is resolved at runtime.</li></ol><p>The trap: the Connection test sends the request body <strong>without resolving FreeMarker</strong>. The body contains literal ${guest.ref} (and similar) syntax. A receiver that does await request.json() fails with a 400 because the body is not valid JSON.</p><pre>// app/api/personalize/webhook/route.ts<br>import { NextRequest, NextResponse } from &#39;next/server&#39;;<br><br>export async function POST(request: NextRequest) {<br>  const raw = await request.text();<br>  console.log(&#39;=== Personalize Webhook Received ===&#39;);<br>  console.log(&#39;Raw body:&#39;, raw);<br>  let parsed: unknown = null;<br>    try {<br>      parsed = JSON.parse(raw);<br>      console.log(&#39;Parsed JSON:&#39;, JSON.stringify(parsed, null, 2));<br>    } catch {<br>      // FreeMarker was not resolved - expected during Connection test<br>      console.log(&#39;Body is not JSON (expected during Connection test).&#39;);<br>    }<br>    return NextResponse.json({ status: &#39;received&#39; }, { status: 200 });<br>}</pre><p>Always return 200 for the test. The distinction is intentional: the Connection test only verifies HTTP plumbing. It does not execute the decision model. Real Triggered Experience deliveries resolve FreeMarker and send valid JSON.</p><h3>Session Traits and the Three Conditions</h3><p>Session traits do not appear until three conditions are all true:</p><ol><li>Guest must be customer, not visitor.</li><li>Session must have Closed status (traits are calculated at session end).</li><li>Trait must be Active, not Draft.</li></ol><p>To get a guest to customer, fire an IDENTITY event whose provider matches a rule configured in CDP Identity Rules. Until the trait has been calculated and stored at least once, it will not appear in the Decision Table input picker. The picker only surfaces attributes that already exist on the current guest context. That is why a freshly created trait can look “broken” until you force a closed session and re-inspect the guest.</p><p>Access path in FreeMarker (again): guest.traits.session.&lt;friendlyId&gt;.value, lowercase friendlyId.</p><h3>Developer Tools Worth Shipping</h3><p>These are not Sitecore features. They cut onboarding time from hours of guessing to minutes of verification.</p><ul><li><strong>Config status panel</strong> — green/red dots for each required env var. Browser-safe vars are read client-side; server-only vars are checked via /api/config-status, which returns presence booleans only, never the secret values.</li><li><strong>Reset cookies button</strong> — clears sc_cid, sc_cid_personalize, and the consent cookie, then reloads. Required when you see Could not find browser with ref &lt;uuid&gt; for client &lt;key&gt; (browser ID issued by a different tenant than the current Context ID).</li><li><strong>JSON copy button</strong> on every result panel.</li><li><strong>Event log filter</strong> in the demo UI.</li><li><strong>Structured error classification</strong> with clear retry paths around the known failure modes above.</li></ul><p>Ship the same ideas in your own app. They pay for themselves the first time someone else has to debug a tenant mismatch.</p><h3>What I Would Do Differently</h3><ul><li>Print the FreeMarker rules on a sticky note before touching the API Response editor. Node name vs output reference, .outputs[0], &lt;/#if&gt;, save-before-preview — every one of those cost real time.</li><li>Do not put primary content behind a Web Experience. Interactive Experiences (or server-side flow execution) are the correct tool when flicker is unacceptable.</li><li>Validate the Connection with a text-based receiver before writing the production webhook handler. The FreeMarker-unresolved body is expected; treat it as a first-class test case.</li><li>Put a clear architecture diagram in the README on day one. ASCII diagrams do not survive the first revision cycle.</li></ul><h3>The Repo</h3><p>The working reference is here:</p><p><a href="https://github.com/uday0508/sitecore-cdp-personalize-nextjs-starter">https://github.com/uday0508/sitecore-cdp-personalize-nextjs-starter</a></p><p>Three docs files inside:</p><ul><li>docs/architecture.md — layer diagram, data flows, configuration boundaries</li><li>docs/cdp-events.md — every event type, attributes, extension data rules, reserved names</li><li>docs/personalize.md — Web vs Interactive vs Triggered, Decision Models, FreeMarker rules</li></ul><p>Pull requests are welcome. If you find an inaccuracy against current Sitecore documentation, open an issue with a link to the relevant doc.sitecore.com page.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b255b1cd0abe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The SitecoreAI Extension Boundary: APIs vs Webhooks vs Marketplace Apps vs Agents]]></title>
            <link>https://medium.com/@sanghaniuday0508/the-sitecoreai-extension-boundary-apis-vs-webhooks-vs-marketplace-apps-vs-agents-ce7f70d33fcb?source=rss-424814f54411------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce7f70d33fcb</guid>
            <category><![CDATA[sitecore-marketplace-sdk]]></category>
            <category><![CDATA[sitecore]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[sitecore-ai]]></category>
            <category><![CDATA[webhooks]]></category>
            <dc:creator><![CDATA[Uday Sanghani]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 10:57:17 GMT</pubDate>
            <atom:updated>2026-09-23T11:53:53.430Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I decide where custom functionality should live in SitecoreAI.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LEU_W9zqsZesA6OJAnGY8g.png" /></figure><p>One of the biggest changes with SitecoreAI is not the API surface. It is <strong>where custom code belongs</strong>.</p><p>With traditional Sitecore implementations, it was common to solve a requirement inside the platform using processors, pipelines, handlers, or other customizations.</p><p>SitecoreAI is different. It is SaaS and follows an API-first extension model. Custom logic is expected to live outside the platform and interact through supported extension points.</p><p>So when I get a new requirement, I don’t start by asking which SDK I need.</p><p>I start with:</p><blockquote><strong><em>Is this an API problem, an event problem, an authoring problem, or an application problem?</em></strong></blockquote><p>That usually makes the architecture much clearer.</p><h3>The four choices I use most</h3><p>RequirementStart withRead or update Sitecore dataAPIReact to a Sitecore eventWebhookGive authors a custom UIMarketplace AppRun custom business logicExternal serviceLet AI perform Sitecore actionsAgent / MCP</p><p>These are not competing technologies. In a real implementation, they often work together.</p><h3>1. Use APIs when the requirement is about data</h3><p>If the requirement is simply:</p><blockquote><em>“My application needs to read or update Sitecore content.”</em></blockquote><p>start with the appropriate SitecoreAI API.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oAcSVbgTfT1_8Cjb7tCs7w.png" /></figure><p>Keep the application logic in your application.</p><p>Don’t try to turn an API integration into a platform customization.</p><p>SitecoreAI provides multiple APIs for content management, pages, sites, publishing, search configuration and other platform capabilities.</p><h3>2. Use webhooks when something happens</h3><p>If the requirement is:</p><blockquote><em>“When content is published, do something in another system.”</em></blockquote><p>that’s an event-driven problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I3O5dng-k2EMP5Ok-Ji5OQ.png" /></figure><p>The webhook should notify your service. Your service should own the processing.</p><p>For example:</p><p><strong>Publish → webhook → integration service → external system</strong></p><p>Sitecore specifically documents webhooks as the mechanism for reacting to events and states that business logic should be handled by the external service rather than inside the webhook itself.</p><p>One practical point: SitecoreAI’s documented webhook handling has a 10-second maximum for sending all webhooks in a particular request, and SitecoreAI does not resend a request when the destination endpoint returns an error. That makes a reliable, lightweight endpoint especially important.</p><h3>3. Use Marketplace when the author needs the experience</h3><p>This is where Marketplace becomes interesting.</p><p>Suppose the requirement is:</p><blockquote><em>“I want to show content quality information beside the page while an author is editing.”</em></blockquote><p>That’s not just an API call.</p><p>The author needs an experience inside SitecoreAI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RfCCmYKVK4Nvi0xzNM_zFQ.png" /></figure><p>Marketplace supports extension points such as the Page Builder context panel, custom fields, full-screen applications and dashboard widgets.</p><p>The UI belongs to the Marketplace app.</p><p>The business logic can remain in your backend.</p><p>That separation is important once the application becomes more than a small UI.</p><h3>4. When the Marketplace app needs a backend</h3><p>A frontend-only application is not always enough.</p><p>I would introduce a backend when the app needs:</p><ul><li>server-side Sitecore API access;</li><li>protected credentials;</li><li>external system integration;</li><li>application-specific business logic;</li><li>Agent or MCP integration.</li></ul><p>The architecture then becomes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DVId4p2_sNHVVmg_OsN6BQ.png" /></figure><p>Also keep <strong>extension points and API access separate in your thinking</strong>. Sitecore documents them as independent configuration areas; an app can have an extension point without Sitecore API access, or use API access across its enabled extension points.</p><h3>5. Where Agents fit</h3><p>Agents solve a different problem.</p><p>If the requirement is:</p><blockquote><em>“Let an AI agent perform a Sitecore action based on a natural-language request.”</em></blockquote><p>then the Agent API / Marketer MCP becomes relevant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*py8i86rdrGTaaTiOIfYYAQ.png" /></figure><p>The important distinction is that an Agent doesn’t replace your normal API architecture.</p><p>If you already know exactly what operation needs to happen, use the API.</p><p>If an AI agent needs to interpret the request and select an available Sitecore action, that’s where the Agent layer adds value.</p><p>Sitecore documents the Agent API as the mechanism through which AI agents can execute business-level actions in SitecoreAI, and the Marketer MCP exposes those capabilities as tools.</p><h3>Putting it together</h3><p>A real solution can use all of these.</p><p>For example:</p><blockquote><em>An author opens a Marketplace app, checks content status, while a webhook independently synchronizes published content with an external platform, and an AI agent can perform supported Sitecore actions.</em></blockquote><p>That architecture might look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yl7EkPi0IyqOjpknqMShlw.png" /></figure><p>There is no reason for one mechanism to do everything.</p><p>Each part has a clear job.</p><h3>The decision I would make</h3><p>When designing a SitecoreAI extension, I would keep the decision this simple:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTVCca1tLL5_hoMFUoG6PA.png" /></figure><p>The interesting part is not choosing one box.</p><p>It’s knowing <strong>when to combine them</strong>.</p><h3>Final thought</h3><p>The SitecoreAI architecture becomes much easier to work with once you stop looking for the old-style “customization point.”</p><p>Think in terms of responsibilities:</p><p><strong>API</strong> — access Sitecore.</p><p><strong>Webhook</strong> — react to Sitecore events.</p><p><strong>Marketplace</strong> — extend the author experience.</p><p><strong>External service</strong> — own your business logic.</p><p><strong>Agent / MCP</strong> — provide an AI-driven way to perform supported actions.</p><p>That is how I would approach a new SitecoreAI requirement today.</p><p><strong>Decide where the responsibility belongs first. Then choose the technology.</strong></p><p><a href="https://doc.sitecore.com/sai/en/developers/sitecoreai/sitecoreai/extending-sitecoreai.html">SitecoreAI extensibility documentation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce7f70d33fcb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sitecore Search + Next.js: From SDK Examples to a Real-World Integration]]></title>
            <link>https://medium.com/@sanghaniuday0508/sitecore-search-next-js-what-the-docs-dont-tell-you-7eb06322c3c8?source=rss-424814f54411------2</link>
            <guid isPermaLink="false">https://medium.com/p/7eb06322c3c8</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[sitecore]]></category>
            <category><![CDATA[sitecore-search]]></category>
            <category><![CDATA[search-engines]]></category>
            <dc:creator><![CDATA[Uday Sanghani]]></dc:creator>
            <pubDate>Tue, 15 Sep 2026 08:33:36 GMT</pubDate>
            <atom:updated>2026-12-03T09:14:04.753Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What I learned while building an open-source Sitecore Search experience with Next.js App Router, TypeScript, analytics, testing, and a server-side integration boundary.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SnkT9t4waFqc7cNTTiadvg.png" /><figcaption>Sitecore Search integrated with Next.js App Router, showing search results, facets, sorting, suggestions, and a server-side integration layer</figcaption></figure><p>I recently spent a few weeks building a Sitecore Search experience with <strong>Next.js App Router</strong>.</p><p>I wasn’t trying to build another search demo.</p><p>What I wanted was a reference implementation that looked closer to something a development team could actually take forward: search, suggestions, facets, sorting, pagination, multiple languages, URL-based state, analytics, testing, and a development experience that didn’t require every developer to have a configured Sitecore Search environment.</p><p>While building it, I ran into several small SDK and integration details that were easy to miss when looking at individual API examples.</p><p>So I put the implementation into an open-source, MIT-licensed repository:</p><p><strong>GitHub:</strong> <a href="https://github.com/uday0508/sitecore-search-nextjs-search-experience">https://github.com/uday0508/sitecore-search-nextjs-search-experience</a></p><p>This article explains the decisions and implementation findings that ended up mattering most.</p><h3>1. I wanted the SDK to stay behind one boundary</h3><p>One of the first decisions I made was not to let Sitecore Search SDK types spread throughout the application.</p><p>It is very easy for an integration to start like this:</p><pre>React component<br>      ↓<br>Sitecore Search SDK<br>      ↓<br>SDK response</pre><p>And then, after a few features:</p><pre>SearchResults → SDK types<br>Facet → SDK types<br>Sort → SDK types<br>Suggestions → SDK types<br>Analytics → SDK types</pre><p>At that point, the UI knows far too much about the external SDK.</p><p>I ended up with a small integration boundary instead:</p><pre>Sitecore Search SDK<br>        ↓<br>lib/sitecore-search/<br>        ↓<br>Application types<br>        ↓<br>React components</pre><p>The repository separates the SDK-specific concerns into files such as:</p><pre>lib/<br>└── sitecore-search/<br>    ├── client.ts<br>    ├── search.ts<br>    ├── events.ts<br>    └── types.ts</pre><p>For example, the client configuration stays inside the integration layer rather than being accessed directly by components.</p><p>The same applies to search calls and event calls.</p><p>I call this my <strong>one-door rule</strong>:</p><blockquote><em>Each external SDK should have a small, explicit entry point into the application.</em></blockquote><p>The reason is simple.</p><p>If a response shape changes, I want to update the mapping in one place rather than search through the entire UI.</p><p>More importantly, the components should represent <strong>my application’s search model</strong>, not the internal shape of an external SDK.</p><h3>2. Some small SDK details only became obvious during implementation</h3><p>This was probably the most useful part of the exercise.</p><p>The individual SDK APIs are straightforward to call. The interesting part started when I connected them together and tried to build a complete search experience.</p><p>Here are some of the details I had to account for.</p><h3>2.1 Sort options use value</h3><p>One thing I paid attention to was the structure expected by SearchSortOptions.</p><p>The implementation uses:</p><pre>widget.sort = {<br>  value: [{ name: &#39;title&#39; }],<br>};</pre><p>Rather than treating the sort definition as a flat object with name at the top level.</p><p>The response also gives me the sort name and label, which I map into the application&#39;s own sort model.</p><p>For the UI, I can then represent the available direction explicitly:</p><pre>Title (A–Z)<br>Title (Z–A)</pre><p>The important distinction here is that the (A–Z) / (Z–A) text is my application&#39;s presentation. I don&#39;t treat it as something the SDK response itself provides.</p><p>That separation makes the UI model much easier to control.</p><h3>2.2 Facet values use text</h3><p>Another small detail was facet values.</p><p>The value exposed by the search response uses text.</p><p>My UI doesn’t need to know that.</p><p>I map it at the integration boundary:</p><pre>const options = facet.values.map((value) =&gt; ({<br>  label: value.text,<br>  value: value.value,<br>}));</pre><p>The component then works with:</p><pre>{<br>  label: string;<br>  value: string;<br>}</pre><p>instead of knowing anything about the SDK’s naming.</p><p>This is a small example, but these small mappings are exactly why I wanted the SDK boundary in the first place.</p><h3>2.3 Requesting all facets</h3><p>When I wanted the application to request all available facets, I used:</p><pre>{<br>  all: true<br>}</pre><p>This was another place where I preferred to keep the SDK-specific request shape inside the search integration rather than passing it down from the UI.</p><h3>2.4 Suggestions are grouped by Suggestion Block</h3><p>Suggestions were another interesting implementation detail.</p><p>I initially expected to work with a simple array of suggestions.</p><p>The response is instead structured around the Suggestion Block name.</p><p>Conceptually:</p><pre>{<br>  default: [<br>    {<br>      text: &#39;sitecore search&#39;,<br>      freq: 10,<br>    },<br>  ],<br>}</pre><p>The request also identifies the Suggestion Block:</p><pre>suggestion: [<br>  {<br>    name: &#39;default&#39;,<br>    max: 5,<br>  },<br>]</pre><p>So I normalize that structure before exposing suggestions to the components.</p><p>The React component should only have to care about:</p><pre>Suggestion[]</pre><p>It shouldn’t need to understand how Suggestion Blocks are represented by the SDK.</p><h3>3. Context and locale: the shape matters</h3><p>Another small implementation detail was the Context structure.</p><p>The locale is represented as a nested object:</p><pre>new Context({<br>  locale: {<br>    language: &#39;en&#39;,<br>    country: &#39;us&#39;,<br>  },<br>});</pre><p>This is exactly the kind of thing that can take surprisingly long to diagnose when you’re moving between SDK types, configuration, and runtime behavior.</p><p>For me, this reinforced the same approach: keep the SDK construction and configuration in one place.</p><h3>4. I made the URL the source of truth for search state</h3><p>This was probably my most important application-level decision.</p><p>I didn’t want the complete search state living inside React state.</p><p>The URL represents the committed search state.</p><p>For example:</p><pre>/search?q=sitecore<br>       &amp;page=2<br>       &amp;sort=title_asc<br>       &amp;lang=fr-FR<br>       &amp;f.type=doc</pre><p>The URL owns things such as:</p><ul><li>search keyword</li><li>page</li><li>sort</li><li>language</li><li>selected facets</li></ul><p>React state is then used for temporary UI state.</p><p>For example:</p><ul><li>suggestion dropdown visibility</li><li>input value before debounce</li><li>other ephemeral interaction state</li></ul><p>That gives me a much cleaner relationship:</p><pre>User interaction<br>       ↓<br>Committed search state<br>       ↓<br>URL<br>       ↓<br>Search request<br>       ↓<br>Results</pre><p>There are some immediate benefits.</p><p>A search URL can be shared.</p><p>Browser back and forward work naturally.</p><p>Refreshing the page doesn’t lose the search state.</p><p>And analytics can be associated with an actual committed navigation instead of every intermediate keystroke.</p><h3>5. This also fits the Next.js App Router model</h3><p>Once the URL became the source of truth, the App Router approach became much easier to reason about.</p><p>Instead of keeping the complete search lifecycle inside one large client component, the application can use the URL parameters as the input to the search operation.</p><p>That also creates a clean separation between:</p><pre>URL/search parameters<br>        ↓<br>Search integration<br>        ↓<br>Results</pre><p>and:</p><pre>Input interaction<br>        ↓<br>Debounce<br>        ↓<br>URL update</pre><p>This distinction matters.</p><p>Typing into a search box is not necessarily the same thing as committing a search.</p><p>I wanted those two concepts to remain separate.</p><h3>6. Search credentials never needed to reach the browser</h3><p>I also didn’t want the browser communicating directly with Sitecore Search using server-side credentials.</p><p>The implementation uses a Next.js Route Handler as the server boundary:</p><pre>Browser<br>   ↓<br>/api/search<br>   ↓<br>Next.js Route Handler<br>   ↓<br>Sitecore Search SDK<br>   ↓<br>Sitecore Search</pre><p>The server-side integration reads the required environment configuration.</p><p>The browser only receives the application-level response.</p><p>That means I don’t need to expose the credentials through NEXT_PUBLIC_* environment variables.</p><p>There is another benefit to this boundary.</p><p>If I later need server-side caching, request controls, logging, or other infrastructure concerns, there is already a natural place to add them.</p><p>The React components don’t need to change.</p><h3>7. Analytics exposed another important detail</h3><p>Search analytics was not something I wanted to bolt on after the search UI was finished.</p><p>The implementation has an event flow along these lines:</p><pre>pageView<br>   ↓<br>widgetView<br>   ↓<br>widgetItemClick<br>   ↓<br>widgetFacetClick<br>   ↓<br>widgetSuggestionClick<br>   ↓<br>widgetNavigationClick<br>   ↓<br>entityView</pre><p>The interesting part wasn’t simply calling the event functions.</p><p>It was understanding the information that needs to travel with the event.</p><p>For example, a result click isn’t just:</p><pre>widgetItemClick(result)</pre><p>The request context matters.</p><p>The implementation includes information such as:</p><pre>{<br>  request: {<br>    keyword,<br>    numResults,<br>    totalResults,<br>    numRequested,<br>  },<br>  entity: {<br>    entity,<br>    id,<br>  },<br>}</pre><p>That gives the event enough context to associate the clicked result with the search interaction that produced it.</p><p>This was one of those cases where implementing the complete flow gave me a better understanding than looking at each API independently.</p><h3>8. I don’t fire pageView on every keystroke</h3><p>This is another detail I deliberately handled at the application level.</p><p>Imagine the user types:</p><pre>s<br>si<br>sit<br>site<br>sitec<br>siteco<br>sitecor<br>sitecore</pre><p>If every change immediately becomes a navigation and analytics event, the application can generate a lot of unnecessary activity.</p><p>Instead, the flow in my implementation is:</p><pre>Typing<br>   ↓<br>Debounce<br>   ↓<br>Committed search<br>   ↓<br>URL change<br>   ↓<br>pageView</pre><p>The important distinction is:</p><blockquote><em>A change in the input box is not automatically a committed search navigation.</em></blockquote><p>This also works nicely with the URL-driven approach described earlier.</p><h3>9. Consent is handled at the event boundary</h3><p>I also didn’t want individual UI components deciding whether analytics could be sent.</p><p>The event layer has the responsibility for checking whether analytics is allowed.</p><p>Conceptually:</p><pre>if (!hasAnalyticsConsent) {<br>  return;<br>}<br><br>sendEvent(...);</pre><p>That gives the application one place to enforce the consent decision.</p><p>I’m deliberately not calling this a complete GDPR/CCPA implementation — consent requirements depend on the overall application and deployment.</p><p>The point here is narrower:</p><blockquote><em>The search UI doesn’t need to know whether an analytics event is currently permitted.</em></blockquote><p>That decision stays at the analytics boundary.</p><h3>10. I wanted the repository to work without a Sitecore tenant</h3><p>One of the things I wanted from the repository was a reasonable development experience for someone who simply wants to inspect the implementation.</p><p>I didn’t want the first step to be:</p><pre>Find credentials<br>Configure tenant<br>Configure Search<br>Configure environment<br>Then start the application</pre><p>The repository therefore includes a mock-data fallback.</p><p>The architecture looks like:</p><pre>┌── Sitecore Search<br>              │<br>Application ──┤<br>              │<br>              └── Mock fallback</pre><p>This also made testing easier.</p><p>The SDK-facing modules can be mocked.</p><p>For example:</p><pre>vi.mock(&#39;@sitecore-cloudsdk/search/browser&#39;, () =&gt; ({<br>  // mocked SDK functions<br>}));</pre><p>That means the unit tests don’t require a live Sitecore Search environment or real credentials.</p><p>The same separation helps with Playwright and Storybook.</p><p>The UI can be exercised against predictable data instead of making every development workflow dependent on a live search service.</p><h3>11. The 404 that wasn’t necessarily an application-code problem</h3><p>One of the more useful troubleshooting findings came when connecting the implementation to a real Sitecore Cloud environment.</p><p>The error was:</p><pre>404 NotFound - &quot;The sitecoreContextId does not contain a search resource&quot;</pre><p>My first instinct could have been to keep changing the application code.</p><p>But this error pointed somewhere else.</p><p>The application depends on the Sitecore Cloud configuration behind the Edge Context ID.</p><p>In the environment I tested, the Edge Context ID needed to be associated with a Search resource before the search integration could work.</p><p>So if you encounter this error, don’t automatically assume the React component or search request is wrong.</p><p>Check the Cloud configuration and resource association first.</p><p>In my case, the resolution involved raising a Sitecore Cloud Portal support case to have the Edge Context ID linked to the Search instance.</p><p>That distinction is important:</p><pre>Application code problem<br>        ≠<br>Cloud resource/configuration problem</pre><p>Knowing which side of that boundary to investigate can save a lot of debugging time.</p><h3>12. What I deliberately didn’t implement</h3><p>There are several Sitecore Search capabilities I intentionally left out of this repository.</p><p>For example:</p><ul><li>personalization</li><li>affinity</li><li>MLT</li><li>RFM</li><li>range facets</li><li>geo search</li></ul><p>I could have added placeholder implementations and called the repository “complete”.</p><p>I chose not to.</p><p>The reason is simple:</p><blockquote><em>I prefer a smaller implementation that I can actually verify over a larger repository full of TODOs and assumptions.</em></blockquote><p>Some of these capabilities depend heavily on how Search and CEC are configured in a particular tenant.</p><p>I didn’t want to present an unverified implementation as a generally applicable solution.</p><p>That also keeps the repository honest about what it actually demonstrates.</p><h3>13. What is in the repository?</h3><p>The current implementation covers:</p><h3>Search</h3><ul><li>Search</li><li>Suggestions</li><li>Facets</li><li>Sorting</li><li>Pagination</li><li>Multi-language support</li><li>URL-driven search state</li></ul><h3>Integration</h3><ul><li>Sitecore Search SDK boundary</li><li>Server-side Route Handler</li><li>Environment-based configuration</li><li>Application-level response mapping</li></ul><h3>Analytics</h3><ul><li>Search events</li><li>Entity view</li><li>Consent gating</li><li>Search request context in result-click events</li></ul><h3>Development</h3><ul><li>Mock fallback</li><li>Vitest</li><li>Playwright</li><li>Storybook</li><li>TypeScript</li><li>CI checks</li></ul><p>The repository is MIT licensed and available here:</p><p><a href="https://github.com/uday0508/sitecore-search-nextjs-search-experience"><strong>https://github.com/uday0508/sitecore-search-nextjs-search-experience</strong></a></p><h3>14. What I took away from building it</h3><p>The biggest thing I learned wasn’t a particular SDK method.</p><p>It was that the SDK is only one part of a real search implementation.</p><p>The difficult questions start after the API call works:</p><p>Where should the SDK live?</p><p>What should the application expose to the UI?</p><p>Where should search state live?</p><p>When is a search actually committed?</p><p>What information should accompany analytics events?</p><p>How do you test the UI without real credentials?</p><p>And when something returns a 404, is it actually an application-code problem?</p><p>Those decisions ended up being more important to the overall implementation than the initial SDK call itself.</p><h3>Closing</h3><p>I built this repository because I kept finding myself in the same transition:</p><pre>SDK example<br>     ↓<br>&quot;Okay, but how do I structure the application?&quot;</pre><p>That is the part I wanted to document.</p><p>This repository isn’t intended to replace the Sitecore documentation, and it doesn’t attempt to implement every Sitecore Search capability.</p><p>It is a reference implementation based on what I actually built, tested, and verified while putting Sitecore Search together with Next.js App Router.</p><p>If you’re working on a similar integration, I hope the repository — especially the SDK boundary, URL-driven state, analytics handling, testing approach, and Cloud configuration troubleshooting — saves you some of the investigation time I spent getting there.</p><p>And if you find something that can be improved, issues and pull requests are welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7eb06322c3c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>