Sitecore Content SDK for SitecoreAI

The Content SDK enables developers to integrate SitecoreAI content with their front-end JavaScript applications. Content SDK includes APIs and services that fetch SitecoreAI data and uses it to build and deliver pages to site visitors using a JavaScript framework.

With Content SDK you can develop apps locally, quickly creating bespoke components before pushing your changes back to SitecoreAI so that marketers can use the latest components to build their customer experiences. You can test changes before publishing them by connecting your local host to the SitecoreAI Pages visual editor and fetching the latest data from your remote instance.

Using a starter kit template, you can immediately generate a new Content SDK app that you can customize to suit your business needs.

Note

Content SDK is open-source under the Apache 2.0 license. You are welcome to submit contributions to the public GitHub repo via pull requests. The changelog lists updates grouped by version in chronological order, with unreleased changes at the top.

Key features

  • Integration with SitecoreAI Pages for visual editing and testing of components.

  • A Next.js JavaScript starter template for rapid integration and delivery.

  • Personalization and component A/B/n testing integration with no custom coding required, allowing you to easily deploy multiple variants of a page to different audience categories (such as time zone or language), and test component variants among percentages of your total site visitors.

  • Multi-site support for environments serving multiple independent sites. Note that different sites do not support different default languages by default. See How to implement internationalization in Next.js for more information.

  • GraphQL utilities for common API queries to fetch content, presentation (layout) data, and other specialized Sitecore data such as site information and dictionaries.

  • Analytics and event tracking support out of the box using the Sitecore Cloud SDK.

  • Framework-specific capabilities, such as Next.js locale-based routing for internationalization, and rendering methods like server-side rendering (SSR) and static site generation (SSG).

How to get started

This documentation contains everything you need to get started building and configuring a Content SDK application, including:

  • A comprehensive getting started guide, including prerequisites and how to connect your Content SDK app with SitecoreAI.

  • An architectural overview to help you understand how the various parts of Content SDK integrate with other technologies.

  • Developer guides that explain how to perform common Content SDK tasks.

  • Upgrade guides for developers with existing JSS apps.

Take a look at the table of contents for a full overview.

Do you have some feedback for us?

If you have suggestions for improving this article,