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

      CodeSOD: A Unique Way to Primary Key

      July 22, 2025

      BrowserStack launches Figma plugin for detecting accessibility issues in design phase

      July 22, 2025

      Parasoft brings agentic AI to service virtualization in latest release

      July 22, 2025

      Node.js vs. Python for Backend: 7 Reasons C-Level Leaders Choose Node.js Talent

      July 21, 2025

      The best CRM software with email marketing in 2025: Expert tested and reviewed

      July 22, 2025

      This multi-port car charger can power 4 gadgets at once – and it’s surprisingly cheap

      July 22, 2025

      I’m a wearables editor and here are the 7 Pixel Watch 4 rumors I’m most curious about

      July 22, 2025

      8 ways I quickly leveled up my Linux skills – and you can too

      July 22, 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

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025
      Recent

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025

      Zero Trust & Cybersecurity Mesh: Your Org’s Survival Guide

      July 22, 2025

      Execute Ping Commands and Get Back Structured Data in PHP

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

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025
      Recent

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025

      “I don’t think I changed his mind” — NVIDIA CEO comments on H20 AI GPU sales resuming in China following a meeting with President Trump

      July 22, 2025

      Galaxy Z Fold 7 review: Six years later — Samsung finally cracks the foldable code

      July 22, 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

    GPT-5 is Coming: Revolutionizing Software Testing

    July 22, 2025
    Development

    Win the Accessibility Game: Combining AI with Human Judgment

    July 22, 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-2987 – IBM Maximo Asset Management SSRF

    Common Vulnerabilities and Exposures (CVEs)

    Embed an AI operator into your SaaS with just one line of code.

    Web Development

    Forget Ray-Bans: The $399 Meta Oakley smart glasses are better in almost every way

    News & Updates

    New Apple public betas are coming for iOS 26, iPadOS 26, WatchOS 26, and more: Here’s what to expect

    News & Updates

    Highlights

    OneDrive for Web will be enhanced with PDF compression

    April 9, 2025

    Microsoft will unveil a new functionality in OneDrive for Web, allowing users to reduce the…

    CVE-2025-53093 – TabberNeue Cross-Site Scripting (XSS)

    June 27, 2025

    CVE-2025-31253 – Apple FaceTime Audio Muting Vulnerability

    May 12, 2025

    CVE-2025-20298 – Splunk Universal Forwarder Windows Privilege Escalation Vulnerability

    June 2, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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