<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sitecore Xperiences &#187; SItecore Connect</title>
	<atom:link href="https://blog.peplau.com.br/category/sitecore-connect/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.peplau.com.br</link>
	<description>The things I&#039;ve seen as a Sitecore Professional</description>
	<lastBuildDate>Sun, 09 Mar 2025 21:54:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Content generation with Sitecore Connect and ChatGPT</title>
		<link>https://blog.peplau.com.br/content-generation-with-sitecore-connect-and-chatgpt/</link>
		<comments>https://blog.peplau.com.br/content-generation-with-sitecore-connect-and-chatgpt/#comments</comments>
		<pubDate>Wed, 08 Nov 2023 01:22:54 +0000</pubDate>
		<dc:creator><![CDATA[Rodrigo Peplau]]></dc:creator>
				<category><![CDATA[ChatGPT]]></category>
		<category><![CDATA[SItecore Connect]]></category>

		<guid isPermaLink="false">http://blog.peplau.com.br/?p=997</guid>
		<description><![CDATA[<div class="lr_horizontal_share" data-share-url="https://blog.peplau.com.br/content-generation-with-sitecore-connect-and-chatgpt/"></div> DISCLAIMER: Sitecore Connect is only allowed to be used to Connect to and from Sitecore Products. The following recipe doesn&#8217;t utilize any other Sitecore product beyound Sitecore Connect. To adhere to the terms of use, you need to have other recipes where Sitecore Connect is used alongside with at least another Sitecore Product In today’s [&#8230;]]]></description>
				<content:encoded><![CDATA[<blockquote><p><img src="http://blog.peplau.com.br/wp-content/uploads/Disclaimer.png" alt="Disclaimer" width="30" height="30" /> <strong>DISCLAIMER: Sitecore Connect is only allowed to be used to Connect to and from Sitecore Products. The following recipe doesn&#8217;t utilize any other Sitecore product beyound Sitecore Connect. To adhere to the terms of use, you need to have other recipes where Sitecore Connect is used alongside with at least another Sitecore Product</strong></p></blockquote>
<p>In today’s digital era, content is not just king: it&#8217;s the entire kingdom. Every content creator, marketer, and website owner know the effort it takes to keep the content wheel spinning. It’s only fair that we use technology in our favor to create a breezy, automated workflow.</p>
<p>That&#8217;s precisely what I&#8217;ve crafted with Sitecore Connect, ChatGPT, and WordPress: a script to bridge RSS feeds into a WordPress website, using the artificial intelligence of ChatGPT to automatically generate articles to promote other posts.</p>
<h2>The (brand new) Go Horse Website</h2>
<p>At the core of this experience is the <a href="http://gohorse.tech/" target="_blank">new Go Horse website</a>, built to spread the thoughts of our Hackathon Group across the community. The intention was to amplify the reach of the posts crafted by our group members, making each entry also accessible at the Go Horse Website, not as mere repetitions of the original posts, but as quality crafted, organic promotional posts. How does one orchestrate such a feat without getting enslaved in the web of manual curation? The answer was clear: Sitecore Connect automation with a touch of artificial intelligence.</p>
<p>The following image shows the basic flow: the RSS Feeds of our group members are monitored for new posts. As soon it’s found, its content is sent to ChatGPT and used to generate the promotional text, which will then be used to create the new promotional post at the target WordPress via RestAPI.</p>
<p><a href="http://blog.peplau.com.br/wp-content/uploads/02-Explaining-the-flow.png"><img class="aligncenter wp-image-998 size-full" src="http://blog.peplau.com.br/wp-content/uploads/02-Explaining-the-flow.png" alt="02 - Explaining the flow" width="1581" height="744" /></a></p>
<p>&nbsp;</p>
<h2>Installing and configuring the Recipe</h2>
<p>To ease our lives, I’ve exported the recipe as the package <a href="http://blog.peplau.com.br/wp-content/uploads/smart-promote-post.zip" target="_blank">smart-promote-post.zip (right click &gt; save link as)</a>, so that you can easily install it at your Sitecore Connect instance.</p>
<p>The installation is as simple as a few clicks:</p>
<ol>
<li>On Sitecore Connect, navigate to &#8216;Tools&#8217; &gt; &#8216;Recipe Lifecycle Management&#8217;</li>
<li>Head over to the &#8216;Import&#8217; tab and click &#8216;Import&#8217;</li>
<li>Select the &#8216;smart-promote-post.zip&#8217; file</li>
<li>Choose your target folder to import</li>
<li>Review the content and import the package</li>
</ol>
<p>After the installation, you also must configure the script according to your needs, following the steps below:</p>
<ol>
<li>Set up connection &#8220;My OpenAI account&#8221; with your OpenAI API key, and the &#8220;Target WordPress&#8221; with your WordPress Base URL (Eg: https://gohorse.tech/)</li>
<li>In Step 2 (Create Parameters list) update the following parameters:
<ol>
<li>&#8220;Target category ID&#8221; must point to the WordPress Category ID that you want to associate with the generated articles</li>
<li>&#8220;Target wordpress login&#8221; must be a valid user account in your WordPress with proper permission to create new articles</li>
<li>&#8220;Target wordpress password&#8221; is the password to the above account</li>
</ol>
</li>
<li>In Step 3 (Create Sources list), add the RSS URLs that you want to use as source and the respective author names</li>
<li>In Step 13, change the &#8220;User&#8221; property to reflect the unique identifier of your end-user to OpenAI</li>
</ol>
<p>&nbsp;</p>
<h2>Lookup Tables: Processing articles only once</h2>
<p>Of course, we want our articles to be processed only once. Sitecore Connect has a feature called “Lookup Tables”, that here is being leveraged as a local storage to make sure articles are not processed twice, preserving exclusivity and importance.</p>
<p><a href="http://blog.peplau.com.br/wp-content/uploads/03-Lookup-Tables-1.png"><img class="alignnone size-full wp-image-1001" src="http://blog.peplau.com.br/wp-content/uploads/03-Lookup-Tables-1.png" alt="03 - Lookup Tables 1" width="488" height="64" /></a></p>
<p>As each member&#8217;s contribution lights up the Go Horse website, the post is marked as processed, keeping the digital space alive with new ideas and insights.</p>
<p><a href="http://blog.peplau.com.br/wp-content/uploads/04-Lookup-Tables-2.png"><img class="alignnone size-full wp-image-1000" src="http://blog.peplau.com.br/wp-content/uploads/04-Lookup-Tables-2.png" alt="04 - Lookup Tables 2" width="486" height="66" /></a></p>
<h2>Generic HTTP Connections: Simple but effective</h2>
<p>One very powerful feature leveraged multiple times in this script was the Generic HTTP connections. They are highly important as they can easily connect to any WebAPI, and are so extensive that can be used to build any kind of HTTP calls, similar to Postman.</p>
<p>These flexible conduits of data are crucial in two pivotal chapters of this tale: Reading the RSS feed URLs</p>
<p><img class="alignnone size-full wp-image-1003" src="http://blog.peplau.com.br/wp-content/uploads/05-Generic-HTTP-1.png" alt="05 - Generic HTTP 1" width="484" height="50" /></p>
<p>And populating our WordPress site with the generated content:</p>
<p><a href="http://blog.peplau.com.br/wp-content/uploads/06-Generic-HTTP-2.png"><img class="alignnone size-full wp-image-1002" src="http://blog.peplau.com.br/wp-content/uploads/06-Generic-HTTP-2.png" alt="06 - Generic HTTP 2" width="483" height="170" /></a></p>
<h2>Using ChatGPT to generate content</h2>
<p>The heart of our content transformation lies in the ChatGPT prompt — crafted after much iteration and contemplation. The &#8216;Gpt query context&#8217; parameter isn&#8217;t just a string of words; it&#8217;s the secret sauce for the generation of quality content. Integrating ChatGPT into this workflow was less of a challenge and more of a surprise for how easy it was to accomplish.</p>
<p>This is how the prompt looks like:</p>
<pre>You are a marketer content editor, your mission is to create a promo text based on the input article to promote the original post, encouraging readers to click the original link. 
- Output the "title", "link text" and "content" only, nothing else
- no emoticons should be used
- "title", "link text" and "content" must be different from the original post (no copy - be creative)
- Line 1 contains the "title" only, no exclamations, avoid appealing words such as "Advanced" and "Unleash"
- Line 2 contains "link text" only, nothing else
- Line 3, 4 and 5 contains the content only, nothing else, respecting the following:
-- Only 3 short paragraphs, nothing else (use &lt;p&gt; tags)
-- Instigate curiosity but don't reveal the key infos from the original post
-- Use 3rd person texting, mentior the author by his name
- Example of a valid 5 lines output:
Powershell Packaging: Regaining the Power
Click here to read more
&lt;p&gt;Line 1 of generated content&lt;/p&gt;
&lt;p&gt;Line 2 of generated content&lt;/p&gt;
&lt;p&gt;Line 3 of generated content&lt;/p&gt;</pre>
<p>&nbsp;</p>
<h2>How the recipe looks like</h2>
<p>For your reference, this is a screenshot of the recipe:</p>
<p><a href="http://blog.peplau.com.br/wp-content/uploads/01-Recipe-screenshot.png"><img class="alignnone size-full wp-image-1004" src="http://blog.peplau.com.br/wp-content/uploads/01-Recipe-screenshot.png" alt="01 - Recipe screenshot" width="668" height="1723" /></a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.peplau.com.br/content-generation-with-sitecore-connect-and-chatgpt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
