Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      The Ultimate Guide to Node.js Development Pricing for Enterprises

      July 29, 2025

      Stack Overflow: Developers’ trust in AI outputs is worsening year over year

      July 29, 2025

      Web Components: Working With Shadow DOM

      July 28, 2025

      Google’s new Opal tool allows users to create mini AI apps with no coding required

      July 28, 2025

      I replaced my Samsung OLED TV with this Sony Mini LED model for a week – and didn’t regret it

      July 29, 2025

      I tested the most popular robot mower on the market – and it was a $5,000 crash out

      July 29, 2025

      5 gadgets and accessories that leveled up my gaming setup (including a surprise console)

      July 29, 2025

      Why I’m patiently waiting for the Samsung Z Fold 8 next year (even though the foldable is already great)

      July 29, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Performance Analysis with Laravel’s Measurement Tools

      July 29, 2025
      Recent

      Performance Analysis with Laravel’s Measurement Tools

      July 29, 2025

      Memoization and Function Caching with this PHP Package

      July 29, 2025

      Laracon US 2025 Livestream

      July 29, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft mysteriously offered a Windows 11 upgrade to this unsupported Windows 10 PC — despite it failing to meet the “non-negotiable” TPM 2.0 requirement

      July 29, 2025
      Recent

      Microsoft mysteriously offered a Windows 11 upgrade to this unsupported Windows 10 PC — despite it failing to meet the “non-negotiable” TPM 2.0 requirement

      July 29, 2025

      With Windows 10’s fast-approaching demise, this Linux migration tool could let you ditch Microsoft’s ecosystem with your data and apps intact — but it’s limited to one distro

      July 29, 2025

      Windows 10 is 10 years old today — let’s look back at 10 controversial and defining moments in its history

      July 29, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Using Sitecore Connect and OpenAI: A Practical Example for Page Metadata Enhancement

    Using Sitecore Connect and OpenAI: A Practical Example for Page Metadata Enhancement

    April 29, 2025

    Sitecore Connect is Sitecore’s low-code integration platform designed to easily automate workflows between Sitecore and external systems, without heavy custom coding. If you’re new to Sitecore Connect or want a deeper understanding of when and how to use it, check out these helpful resources:

    • When to Choose Sitecore Connect: Solving Integration Challenges
    • Understanding Sitecore Connect: Building Integrations with Recipes

    In this practical example, we’ll demonstrate how to use Sitecore Connect together with OpenAI to send a page URL and fetch AI-generated meta tags (like meta title and meta description) to enrich the page’s SEO.

    We will walk through:

    • Setting up a connection to OpenAI using Sitecore Connect’s HTTP app
    • Building a recipe that:
      • Triggers when a page is created or updated
      • Sends the page URL to OpenAI with a prompt asking for meta tags
      • Receives and processes AI-generated meta title and meta description

    This approach enhances your content creation workflows by generating smart SEO metadata at scale, using minimal manual effort and maximum AI power.

    Step 1: Creating a Connection with OpenAI

    To start integrating OpenAI with Sitecore Connect, the first step is to create a connection using your OpenAI API key.

    Follow these steps:

    1. Obtain the API Key:
      • Login to your OpenAI account (such as through ChatGPT platform or OpenAI portal).
      • Navigate to your account settings and generate an API key.
        (Keep this key safe as you will need it for authentication.)
    2. Create a New Connection:
      • In Sitecore Connect, click on the Create Connection button.
    3. Choose OpenAI from the App Library:
      • A list of available apps will be displayed.
      • Use the search bar to find “OpenAI” and select it.
      • Click on Create Connection.
    4. Configure the Connection:
      • Enter the following details:
        • Name: Provide a meaningful name for your connection (e.g., “OpenAI Meta Tag Generator”).
        • Location: Select the workspace or folder where you want the connection saved.
        • API Key: Paste the API key you copied from your OpenAI account.Create A Connection
    5. Authenticate and Test:
      • Click on the Connect button.
      • Sitecore Connect will attempt to authenticate with OpenAI using the provided API key.
      • If the authentication is successful, your connection will be created and ready to use.

    With the OpenAI connection established, we can now move on to building a recipe to send page URLs and retrieve meta tag suggestions!

    Step 2: Building the Recipe Function to Send Page URL and Fetch Meta Tags

    Now that the connection to OpenAI is ready, let’s create a Recipe Function in Sitecore Connect.
    This allows you to call the function from anywhere (like another recipe or an external system) by passing the page URL dynamically.

    Follow these updated steps:

    1. Create a New Recipe Function:
      • In Sitecore Connect, go to the Recipes section.
      • Click on Create Recipe.
      • In the trigger selection screen, choose Build a Recipe Function.
        (This creates a callable function, not a direct event-based recipe.)
    2. Add Input Parameter for Page URL:
      • After creating the function, Sitecore Connect will prompt you to define input parameters.
      • Add a new parameter:
        • Name: Page URL
        • Type: Text / String
      • This parameter will allow the function to receive any page URL dynamically.
    3. Select App and Action:
      • Once the function is ready, click on Add an Action.
      • The App Library will open.
      • Using the connection you created earlier,select OpenAI from the available apps.Select App
    4. Choose the Action Type:
      • After selecting OpenAI, you will see a list of available actions.
      • Select the Send a Message action.Action Creation
      • It provides 2 options Single message and Chat transcript.
      • I chose Single Message as the message type for this case.
      • Message Type

    Now, in the Message Content to OpenAI, configure it carefully:

    Prompt to OpenAI:

    Message

    • Here, {Page URL} dynamically uses the Page URL input parameter you defined in Step 2.

    This ensures that OpenAI receives the correct URL, understands the task, and responds in a structured JSON output ready for further processing.

    After setting this message, you will be ready to handle and use the response in the next steps!

    Step 3: Handling the OpenAI Response

    Once OpenAI processes the URL and sends back a response, we need to parse the result and map it to usable fields inside Sitecore Connect.
    This step ensures the meta title and meta description are correctly extracted and available for further use.

    Follow these steps:

    1. Parse the JSON Response:
      • After the OpenAI action, add a Parse JSON step.
      • Configure it to parse the body of the response you get from OpenAI.
      • Define the expected schema based on the format you instructed OpenAI to return:
      • {
      •   “meta_title”: “string”,
      •   “meta_description”: “string”
      • }
      • Sitecore Connect will now recognize meta_title and meta_description as separate variables you can use.
    2. Use the Parsed Data:
      • After parsing, you can now:
        • Return the meta title and meta description as the output of the Recipe Function.
        • OR, if part of a larger automation, map these fields directly into your Sitecore items.
    3. Test the Flow:
      • Use the Test function inside Sitecore Connect.
      • Provide a sample Page URL as input.
      • Run the recipe function and validate that:
        • OpenAI is called correctly.
        • The JSON response contains the expected meta title and meta description.
        • The fields are parsed and mapped properly.

     

    Final

    Conclusion

    By using Sitecore Connect and OpenAI together, you can create powerful, scalable automations that enhance your content operations.
    In this example, it is showed how to send a page URL to OpenAI, fetch SEO metadata, and integrate it seamlessly into Sitecore workflows — all without writing heavy custom code.

    This type of automation opens new possibilities for smarter, faster content management at enterprise scale.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCentralize HTTP Client Configuration with Laravel’s globalOptions Method
    Next Article Alibaba’s Qwen 3 family of hybrid reasoning AI models is a potential threat rivals

    Related Posts

    Development

    Performance Analysis with Laravel’s Measurement Tools

    July 29, 2025
    Development

    Memoization and Function Caching with this PHP Package

    July 29, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-5122 – Leaflet Map Block for WordPress Stored XSS Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    The Human Heart Behind Great UX

    Web Development

    ESLint – find and fix problems in JavaScript code

    Linux

    No more alt-tabbing: Edge Game Assist floats guides, Discord, and more over your games

    News & Updates

    Highlights

    Trade-offs in Data Memorization via Strong Data Processing Inequalities

    June 19, 2025

    Recent research demonstrated that training large language models involves memorization of a significant fraction of…

    CVE-2025-39389 – Solid Plugins AnalyticsWP SQL Injection

    May 19, 2025

    Stay ahead in web development

    April 29, 2025

    Are We Ready for Production-Grade Apps With Vibe Coding? A Look at the Replit Fiasco

    July 22, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.