<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Serenity* Star Blog</title>
        <link>https://docs.serenitystar.ai/es/blog</link>
        <description>Serenity* Star Blog</description>
        <lastBuildDate>Thu, 27 Aug 2026 00:00:00 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>es</language>
        <item>
            <title><![CDATA[Building request bodies with AI-generated skill parameters]]></title>
            <link>https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies</link>
            <guid>https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies</guid>
            <pubDate>Thu, 27 Aug 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[The HTTP Request skill lets an agent call your APIs, and most of the work of getting it right is in the request body. Serenity\ Star gives you three ways to build one: a static body you write yourself, an AI-Generated body the agent writes from your description, and a dynamic* body where you own the template and the agent only fills in the values.]]></description>
            <content:encoded><![CDATA[<p>The <strong>HTTP Request</strong> skill lets an agent call your APIs, and most of the work of getting it right is in the request body. Serenity* Star gives you three ways to build one: a <strong>static</strong> body you write yourself, an <strong>AI-Generated</strong> body the agent writes from your description, and a <strong>dynamic</strong> body where you own the template and the agent only fills in the values.</p>
<p>This article works through all three on a small task-tracker API, and then shows how the same ideas apply to URL-encoded, multipart and plain-text endpoints.</p>
<p>For the reference documentation, see <a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/skills/advanced-configurations/ai-generated-parameters">AI-Generated Skill Parameters</a> and <a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/skills/advanced-configurations/http-request-bodies">HTTP Request Bodies &amp; Content Types</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-example-api">The example API<a href="https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies#the-example-api" class="hash-link" aria-label="Enlace directo al The example API" title="Enlace directo al The example API">​</a></h2>
<p>Our mock task tracker exposes four endpoints, and the agent has one <strong>HTTP Request</strong> skill for each. We will refer to them by their skill names throughout the article:</p>
<table><thead><tr><th>Skill</th><th>Endpoint</th><th>Content type</th></tr></thead><tbody><tr><td><strong>TaskCreate</strong></td><td><code>POST /tasks</code> (creates a task)</td><td><code>application/json</code></td></tr><tr><td><strong>OauthToken</strong></td><td><code>POST /oauth/token</code> (issues a token)</td><td><code>application/x-www-form-urlencoded</code></td></tr><tr><td><strong>Documents</strong></td><td><code>POST /documents</code> (registers a document)</td><td><code>multipart/form-data</code></td></tr><tr><td><strong>Incidents</strong></td><td><code>POST /incidents</code> (reports an incident)</td><td><code>text/plain</code></td></tr></tbody></table>
<p>The agent is an Assistant that helps a support team log work while they chat with a customer.</p>
<p><img decoding="async" loading="lazy" alt="Agent Designer Skills tab" src="https://docs.serenitystar.ai/es/assets/images/designer-skills-4344544d4639a41be1a9b94de2923e76.png" width="1123" height="763" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="iteration-1-an-ai-generated-body-with-a-thin-description">Iteration 1: an AI-generated body with a thin description<a href="https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies#iteration-1-an-ai-generated-body-with-a-thin-description" class="hash-link" aria-label="Enlace directo al Iteration 1: an AI-generated body with a thin description" title="Enlace directo al Iteration 1: an AI-generated body with a thin description">​</a></h2>
<p>We start with <strong>TaskCreate</strong>, the JSON endpoint. In its skill configuration we enable <strong>Include request body</strong>, choose <strong>AI-Generated Body</strong>, and describe the payload the way most of us do the first time:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Body description (first attempt)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">A JSON object with the task to create. Example:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">{ "title": "Renew the SSL certificate", "dueDate": "2026-03-14", "priority": "high" }</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p><img decoding="async" loading="lazy" alt="TaskCreate AI Generated Body, iteration 1" src="https://docs.serenitystar.ai/es/assets/images/iteration1-8c0d5ccb7b0e009ea72a79791bbf91f7.png" width="1296" height="1267" class="img_ev3q"></p>
<p>Testing it with "Log a task to chase the invoice for ACME, it is urgent" produces two problems worth noticing:</p>
<ol>
<li>The agent sends <code>"dueDate": "2026-03-14"</code>, the date from our example, even though the user never mentioned a deadline.</li>
<li>It sends <code>"priority": "urgent"</code>, which our API rejects, because nothing in the description says which values are valid.</li>
</ol>
<p>Both are the same mistake on our side: the description shows a payload but does not explain it. An example tells the model what the JSON looks like; it does not tell it what the fields <em>mean</em>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="iteration-2-describe-the-fields-not-just-the-shape">Iteration 2: describe the fields, not just the shape<a href="https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies#iteration-2-describe-the-fields-not-just-the-shape" class="hash-link" aria-label="Enlace directo al Iteration 2: describe the fields, not just the shape" title="Enlace directo al Iteration 2: describe the fields, not just the shape">​</a></h2>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Body description (improved)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">Send a JSON object with the task to create:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- title (string, required): short summary of the task, in the customer's language.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- dueDate (string, optional): ISO-8601 date (YYYY-MM-DD). Resolve relative dates such as</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "next Friday" against today's date. Send null when the user mentions no deadline.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- priority (string, required): one of "low", "medium", "high". Map wording such as</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "urgent" or "ASAP" to "high". Use "medium" when the user does not say.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- tags (array of strings, optional): send an empty array when there are none.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Example:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">{ "title": "Chase the ACME invoice", "dueDate": null, "priority": "high", "tags": ["billing"] }</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p><img decoding="async" loading="lazy" alt="TaskCreate AI Generated Body, iteration 2" src="https://docs.serenitystar.ai/es/assets/images/iteration2-d2068a135e5cdf0d0ab245c7c511fd44.png" width="1293" height="1264" class="img_ev3q"></p>
<p>Three things changed:</p>
<ul>
<li>Every field states its <strong>type</strong>, whether it is <strong>required</strong>, and what to do when the value is <strong>unknown</strong>.</li>
<li>The enumeration is <strong>listed</strong>, with a hint for mapping natural language onto it.</li>
<li>The example now shows the <em>empty</em> cases (<code>null</code>, <code>[]</code>) rather than a full payload that invites copying.</li>
</ul>
<p>The agent also needs to know today's date to resolve "next Friday". That belongs in the system definition, not in the body description:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">System definition (excerpt)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">Today is {{system.date}}. Use it whenever you have to resolve a relative date.</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p><code>{{system.date}}</code> is a <strong>system context</strong> property: the platform resolves it at execution time, so nobody has to send it. The same mechanism exposes <code>{{system.country}}</code>, <code>{{system.channel}}</code>, <code>{{system.userIdentifier}}</code> and a few others. Keep agent input parameters for the values the platform cannot know, the way <code>customerId</code> does further down: that is <a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/skills/advanced-configurations/input-parameter-mapping">input parameter mapping</a>, and it is the right tool whenever the caller already knows the value.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="iteration-3-a-dynamic-body-so-the-shape-can-no-longer-drift">Iteration 3: a dynamic body, so the shape can no longer drift<a href="https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies#iteration-3-a-dynamic-body-so-the-shape-can-no-longer-drift" class="hash-link" aria-label="Enlace directo al Iteration 3: a dynamic body, so the shape can no longer drift" title="Enlace directo al Iteration 3: a dynamic body, so the shape can no longer drift">​</a></h2>
<p>The improved description works, but in <strong>TaskCreate</strong> the agent is still writing the whole JSON document on every call. If the API is strict, or the payload is nested, it is safer to hand the agent a template and let it fill in the blanks. That is a <strong>Dynamic</strong> body:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Dynamic body template</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"title"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"{{title}}"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"dueDate"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"{{dueDate}}"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"priority"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"{{priority}}"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"customer"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token property" style="color:#36acaa">"id"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"{{customerId}}"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token property" style="color:#36acaa">"source"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"support-chat"</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>Each token is a <strong>parameter</strong> you declare with a <strong>name</strong> and a <strong>description</strong>, and nothing else: a skill parameter has no "required" switch and no default value, those belong to the agent's input parameters in the Agent Designer. The description carries all of the intent:</p>
<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>title</code></td><td>Short summary of the task, in the customer's language.</td></tr><tr><td><code>dueDate</code></td><td>ISO-8601 date (<code>YYYY-MM-DD</code>). Resolve relative dates against today's date. Send an empty string when no deadline is mentioned.</td></tr><tr><td><code>priority</code></td><td>One of <code>low</code>, <code>medium</code>, <code>high</code>. Map "urgent" or "ASAP" to <code>high</code>.</td></tr><tr><td><code>customerId</code></td><td>Identifier of the customer the task belongs to. Comes from the execution request.</td></tr></tbody></table>
<p><img decoding="async" loading="lazy" alt="TaskCreate dynamic body template and parameters" src="https://docs.serenitystar.ai/es/assets/images/iteration3-c3be85a764501890301cf47cb8a8ecb5.png" width="1290" height="1265" class="img_ev3q"></p>
<p>Now the interesting part: <code>customerId</code> is also an agent input parameter. The support console already knows which customer is on the line and sends it with the execution request:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">cURL</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token function" style="color:#d73a49">curl</span><span class="token plain"> https://api.serenitystar.ai/api/v2/agent/YOUR_AGENT_CODE/execute </span><span class="token punctuation" style="color:#393A34">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token parameter variable" style="color:#36acaa">-H</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"Content-Type: application/json"</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token parameter variable" style="color:#36acaa">-H</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"X-API-KEY: YOUR_API_KEY"</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token parameter variable" style="color:#36acaa">-d</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'[</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">    { "Key": "message", "Value": "Log a task to chase the invoice, it is urgent." },</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">    { "Key": "customerId", "Value": "12345" }</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">  ]'</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p><code>{{customerId}}</code> is substituted from the request, before the model runs. <code>{{title}}</code>, <code>{{dueDate}}</code> and <code>{{priority}}</code> have no matching value in the context, so the agent completes them from their descriptions. Same syntax, two very different guarantees, which is exactly what you want: identifiers come from the caller, prose comes from the model.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-same-idea-on-other-content-types">The same idea on other content types<a href="https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies#the-same-idea-on-other-content-types" class="hash-link" aria-label="Enlace directo al The same idea on other content types" title="Enlace directo al The same idea on other content types">​</a></h2>
<p><strong>TaskCreate</strong> covered JSON. The remaining three skills differ in one place only: the content type, decided by the <code>Content-Type</code> header on the skill. When you do not set one the body is sent as <code>application/json</code>, which is why <strong>TaskCreate</strong> needed no header at all.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="oauthtoken-applicationx-www-form-urlencoded">OauthToken: <code>application/x-www-form-urlencoded</code><a href="https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies#oauthtoken-applicationx-www-form-urlencoded" class="hash-link" aria-label="Enlace directo al oauthtoken-applicationx-www-form-urlencoded" title="Enlace directo al oauthtoken-applicationx-www-form-urlencoded">​</a></h3>
<p>In <strong>OauthToken</strong>, add the header and remember that this body travels <strong>verbatim</strong>: there is no JSON-to-form conversion here, so the string the agent produces must already be the encoded pairs. Describe the fields and show the encoded shape:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Body description</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">Send these form fields:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- grant_type: always "client_credentials".</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- scope (optional): the scopes the user asked for, separated by a plus sign.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Percent-encode any character that is not alphanumeric.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Example:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">grant_type=client_credentials&amp;scope=tasks.write</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>If you describe a JSON object here, the agent will dutifully produce JSON and the token endpoint will reject it. Where the field names are fixed and only the values vary, a <strong>Dynamic</strong> body such as <code>grant_type=client_credentials&amp;scope={{scope}}</code> removes the risk altogether.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="documents-multipartform-data">Documents: <code>multipart/form-data</code><a href="https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies#documents-multipartform-data" class="hash-link" aria-label="Enlace directo al documents-multipartform-data" title="Enlace directo al documents-multipartform-data">​</a></h3>
<p><strong>Documents</strong> is the exception, and the only content type built from JSON: describe a JSON object, and each property is turned into a form field before the request is sent. Put only the media type in the header, the <code>boundary</code> that separates the parts is generated and appended for you.</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Body description</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">Send the document to register, with these fields:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- title (string, required): title of the document.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- category (string, required): one of "invoice", "contract", "report".</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- notes (string, optional): empty string when the user gives no notes.</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>The keys become the field names, so they must match what the endpoint expects, casing included. Nested values are flattened rather than rejected: <code>{"customer":{"id":"12"},"tags":["infra"]}</code> arrives as the fields <code>customer.id</code> and <code>tags[0]</code>, which is useful when an API expects that convention and surprising when it does not.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="incidents-textplain">Incidents: <code>text/plain</code><a href="https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies#incidents-textplain" class="hash-link" aria-label="Enlace directo al incidents-textplain" title="Enlace directo al incidents-textplain">​</a></h3>
<p>In <strong>Incidents</strong> the body is raw text, so the description must not talk about JSON at all:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Body description</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">Send plain text only, no JSON and no markdown. One line per incident, formatted as:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">severity|component|one-sentence summary</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Severity is one of P1, P2 or P3.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Example:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">P2|checkout-api|Checkout returns 500 for guest users since 14:20 UTC.</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>For a fixed layout like this one, a <strong>Dynamic</strong> body with <code>{{severity}}|{{component}}|{{summary}}</code> is even safer: the separator can no longer go missing.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-we-learned">What we learned<a href="https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies#what-we-learned" class="hash-link" aria-label="Enlace directo al What we learned" title="Enlace directo al What we learned">​</a></h2>
<ul>
<li><strong>Describe, do not just illustrate.</strong> Types, required flags, enumerations and the "unknown value" case are what stop a body from being invalid.</li>
<li><strong>Put shape in a template, values in descriptions.</strong> A dynamic body removes a whole class of failures.</li>
<li><strong>Let the caller send what the caller knows, and the platform what the platform knows.</strong> Identifiers and tenants belong in input parameters, today's date is already there as <code>{{system.date}}</code>. Neither belongs in the model's imagination.</li>
<li><strong>Match the description to the content type.</strong> JSON for the JSON media types and for multipart; the already-encoded pair string for URL-encoded; raw text for plain text and XML.</li>
<li><strong>Read the execution logs.</strong> The request the skill actually sent is the fastest way to see whether the problem is your description or your API.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="where-to-next">Where to next<a href="https://docs.serenitystar.ai/es/blog/ai-generated-http-request-bodies#where-to-next" class="hash-link" aria-label="Enlace directo al Where to next" title="Enlace directo al Where to next">​</a></h2>
<ul>
<li><a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/skills/advanced-configurations/ai-generated-parameters">AI-Generated Skill Parameters</a></li>
<li><a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/skills/advanced-configurations/http-request-bodies">HTTP Request Bodies &amp; Content Types</a></li>
<li><a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/skills/advanced-configurations/input-parameter-mapping">Input Parameter Mapping</a></li>
<li><a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents">A Guide to Executing POST Requests with Serenity* Agents</a></li>
</ul>]]></content:encoded>
            <category>Skills</category>
            <category>HTTP Request</category>
            <category>Parameters</category>
            <category>Integrations</category>
        </item>
        <item>
            <title><![CDATA[Improving and supervising agent responses over time]]></title>
            <link>https://docs.serenitystar.ai/es/blog/agent-feedback-options</link>
            <guid>https://docs.serenitystar.ai/es/blog/agent-feedback-options</guid>
            <pubDate>Mon, 03 Nov 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Introduction]]></description>
            <content:encoded><![CDATA[<h2 class="anchor anchorWithStickyNavbar_LWe7" id="introduction">Introduction<a href="https://docs.serenitystar.ai/es/blog/agent-feedback-options#introduction" class="hash-link" aria-label="Enlace directo al Introduction" title="Enlace directo al Introduction">​</a></h2>
<p>A key step in the agent lifecycle is continuous monitoring to ensure quality and consistency over time. This is essential for evolving your agent to handle edge cases, correct misinformation, and improve its performance.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-feedback-matters">Why Feedback Matters<a href="https://docs.serenitystar.ai/es/blog/agent-feedback-options#why-feedback-matters" class="hash-link" aria-label="Enlace directo al Why Feedback Matters" title="Enlace directo al Why Feedback Matters">​</a></h2>
<p>Performing an exhaustive analysis of every conversation your agent has can be time-consuming. This blog post introduces different tactics to automate the process of obtaining feedback from your agent over time.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback-collection-strategies">Feedback Collection Strategies<a href="https://docs.serenitystar.ai/es/blog/agent-feedback-options#feedback-collection-strategies" class="hash-link" aria-label="Enlace directo al Feedback Collection Strategies" title="Enlace directo al Feedback Collection Strategies">​</a></h2>
<ul>
<li>Manual review of conversations</li>
<li>Leveraging agent self-awareness</li>
<li>Automated AI insights</li>
<li>User feedback</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="manual-review-of-conversations">Manual Review of Conversations<a href="https://docs.serenitystar.ai/es/blog/agent-feedback-options#manual-review-of-conversations" class="hash-link" aria-label="Enlace directo al Manual Review of Conversations" title="Enlace directo al Manual Review of Conversations">​</a></h3>
<p>With this strategy, a person manually analyzes each conversation or a sample of conversations to identify key behaviours, mistakes, or edge cases. While valuable, this approach is time-consuming and requires a good understanding of the agent's behaviour to identify issues.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="using-agent-self-awareness">Using Agent Self-Awareness<a href="https://docs.serenitystar.ai/es/blog/agent-feedback-options#using-agent-self-awareness" class="hash-link" aria-label="Enlace directo al Using Agent Self-Awareness" title="Enlace directo al Using Agent Self-Awareness">​</a></h3>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="external-tools-or-databases">External Tools or Databases<a href="https://docs.serenitystar.ai/es/blog/agent-feedback-options#external-tools-or-databases" class="hash-link" aria-label="Enlace directo al External Tools or Databases" title="Enlace directo al External Tools or Databases">​</a></h4>
<p>In Serenity* Star, it is possible to configure your agent's behaviour to identify when it has made a mistake and, in that case, upload the information to a spreadsheet or database of your choice. With this information, you can later review the agent's performance and responses to quickly identify trends and correct behaviour.</p>
<p>For this example, we'll create a simple agent and connect it to Google Sheets to log incorrect responses.</p>
<p>The agent is designed to be a helpful assistant for various topics. However, we instruct it that if a user corrects any wrong answer, it should record the interaction in the Google Sheet for later analysis.</p>
<p><img decoding="async" loading="lazy" alt="Agent logs incorrect response screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-b70e581ed081a3c4227ed28c1d80031f.png" width="950" height="309" class="img_ev3q"></p>
<p>The agent is also configured with the Append Values skill to connect to a dedicated spreadsheet where all the data will be collected.</p>
<p><img decoding="async" loading="lazy" alt="Append Values skill configuration screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-1-4176a97d3666142f6ca2d4b901eb6163.png" width="870" height="525" class="img_ev3q"></p>
<p>Let's try the agent with a classic problem that large language models struggle with:</p>
<p><img decoding="async" loading="lazy" alt="Example prompt screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-2-714d3b94eee26ce18fd1bcbe87c9311b.png" width="838" height="778" class="img_ev3q"></p>
<p>Once the user corrects the model, the skill is executed and the data is stored in the spreadsheet.
<img decoding="async" loading="lazy" alt="Stored data screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-3-fa8d35e4317683dd0cacb1923fa79768.png" width="1078" height="208" class="img_ev3q"></p>
<p>This technique is valuable because live data can be stored easily. However, it has a drawback: the agent must recognize it made a mistake—either via user correction or by detecting errors itself.</p>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="agent-conversation-context">Agent Conversation Context<a href="https://docs.serenitystar.ai/es/blog/agent-feedback-options#agent-conversation-context" class="hash-link" aria-label="Enlace directo al Agent Conversation Context" title="Enlace directo al Agent Conversation Context">​</a></h4>
<p>In a similar approach, you can use the Agents Conversation Context to store feedback as conversation variables. In this example, we configure conversation variables named <strong>SuggestedCorrection</strong> and <strong>OriginalResponse</strong> to store corrected responses.</p>
<p><img decoding="async" loading="lazy" alt="Conversation context variables screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-6-05acc2136d2de5007be3cea203a38290.png" width="808" height="581" class="img_ev3q"></p>
<p><img decoding="async" loading="lazy" alt="Variable mapping screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-7-efcc5f7d9a90048aae56701c0a72f0b7.png" width="942" height="196" class="img_ev3q"></p>
<p>Let's try the agent with the same problem as before.
<img decoding="async" loading="lazy" alt="Agent collecting corrections screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-9-ac95f60534661f28f56f1b1c7ce5e73f.png" width="840" height="688" class="img_ev3q"></p>
<p>Once the agent starts collecting data you can periodically analyze it by going to the Insights and Conversation Context on your agent card.</p>
<p><img decoding="async" loading="lazy" alt="Insights overview screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-11-5dc9facd90ae67328a18af4ad209de4f.png" width="1480" height="161" class="img_ev3q"></p>
<p><img decoding="async" loading="lazy" alt="Conversation context view screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-10-bc9c7498b9b3416ddc848614f8bc16fa.png" width="1147" height="394" class="img_ev3q"></p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="automated-ai-insights">Automated AI Insights<a href="https://docs.serenitystar.ai/es/blog/agent-feedback-options#automated-ai-insights" class="hash-link" aria-label="Enlace directo al Automated AI Insights" title="Enlace directo al Automated AI Insights">​</a></h3>
<p>This technique in Serenity* Star allows for an evaluator agent to analyze existing conversations and identify mistakes the agent has made. It is aimed at supervision: take a sample of conversations and make an evaluation.</p>
<p>To use this, configure Insights in your agent by going to the Insights and Data Collection card. It is recommended that the evaluator model selected is a more capable model than the one used in the agent, as its job is to evaluate the agent's responses.</p>
<p>With this configuration, a sample of the conversations that the agent had will be analyzed and feedback can be gathered from the results.</p>
<p><img decoding="async" loading="lazy" alt="Insights configuration screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-4-cbbed3f4b4e6408cd5651d901e0f4fc3.png" width="848" height="737" class="img_ev3q"></p>
<p>For the same example as above, the collected insight for this conversation is as follows:
<img decoding="async" loading="lazy" alt="Sample insight screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-5-c7fff2f14e6b425c774459f7549642b1.png" width="599" height="525" class="img_ev3q"></p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="user-collected-feedback">User-collected Feedback<a href="https://docs.serenitystar.ai/es/blog/agent-feedback-options#user-collected-feedback" class="hash-link" aria-label="Enlace directo al User-collected Feedback" title="Enlace directo al User-collected Feedback">​</a></h3>
<p>In Serenity* Star, you can prompt users to submit feedback on specific agent responses. You can do this by using the Serenity Chat Widget. Using the same agent we used in previous examples, we will activate the User Feedback.</p>
<ol>
<li>In the Agent Designt Studio for the Agent, click the Channel Card</li>
</ol>
<p><img decoding="async" loading="lazy" alt="Channel card" src="https://docs.serenitystar.ai/es/assets/images/image-12-0ea8f536bbf7993c96b03260ddcde1e7.png" width="904" height="882" class="img_ev3q"></p>
<ol start="2">
<li>Click on the Chat Widget card to access the configuration Side Panel</li>
</ol>
<p><img decoding="async" loading="lazy" alt="Chat Widget channel" src="https://docs.serenitystar.ai/es/assets/images/image-13-61455457793fae8a7f24f0df74e281fa.png" width="902" height="774" class="img_ev3q"></p>
<ol start="3">
<li>Activate the channel and turn on the Enable Feedback Recollection option</li>
</ol>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-14-c5816b1c34ec79cbd4d563f2386db150.png" width="971" height="763" class="img_ev3q"></p>
<p>Once the Chat Widget is configured and integrated into your website, users can provide positive or negative feedback on any agent response:
<img decoding="async" loading="lazy" alt="User feedback on response screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-15-455a9e5da28194e404abeab90f40c0bd.png" width="587" height="558" class="img_ev3q"></p>
<p>This feedback will be collected and you can access it in the Feedback view by going to Insights and Conversation Context on your agent card.</p>
<p><img decoding="async" loading="lazy" alt="Feedback view screenshot" src="https://docs.serenitystar.ai/es/assets/images/image-16-d7c63cf0ba74b120ce409cce5f991a95.png" width="1440" height="382" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="https://docs.serenitystar.ai/es/blog/agent-feedback-options#conclusion" class="hash-link" aria-label="Enlace directo al Conclusion" title="Enlace directo al Conclusion">​</a></h2>
<p>Continuous feedback is essential for maintaining and improving the quality of your agents. By combining manual review, agent self-awareness, and automated AI insights, you can efficiently monitor performance, identify issues, and drive ongoing improvements. Start by implementing one or more of these strategies to ensure your agent evolves and delivers better results over time.</p>]]></content:encoded>
            <category>Feedback</category>
            <category>Improvement</category>
            <category>Testing</category>
            <category>Insights</category>
        </item>
        <item>
            <title><![CDATA[Identity Verification in Conversational Agents - Context & Flow Control]]></title>
            <link>https://docs.serenitystar.ai/es/blog/conversation-variables-flow-control</link>
            <guid>https://docs.serenitystar.ai/es/blog/conversation-variables-flow-control</guid>
            <pubDate>Wed, 08 Oct 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[One of the most powerful features when designing LLM-driven conversational agents with connected tools is their ability to handle persistent context and multi-step validation flows.]]></description>
            <content:encoded><![CDATA[<p>One of the most powerful features when designing <strong>LLM-driven conversational agents</strong> with connected tools is their ability to handle <strong>persistent context</strong> and <strong>multi-step validation flows</strong>.
In this article, we explore how we implemented an <strong>identity verification flow</strong> within a customer support agent for <strong>online order management</strong>, leveraging <em>conversation context</em>, <em>dynamic prompting</em>, and <em>agent skills</em>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="-the-use-case">🔧 The Use Case<a href="https://docs.serenitystar.ai/es/blog/conversation-variables-flow-control#-the-use-case" class="hash-link" aria-label="Enlace directo al 🔧 The Use Case" title="Enlace directo al 🔧 The Use Case">​</a></h2>
<p>The agent is defined as a <strong>Customer Support Agent for online orders</strong>, structured into three main stages:</p>
<ol>
<li>
<p><strong>Agent introduction.</strong>
The agent greets the user, introduces itself, and explains what it can help with.</p>
</li>
<li>
<p><strong>Identity verification.</strong></p>
<ul>
<li>Sends a 6-digit verification code using an API (<code>SendVerificationCode</code>).</li>
<li>Saves the <code>MessageId</code> returned by the API as a conversation variable.</li>
<li>Once the user enters the code, it executes a second skill (<code>ValidateVerificationCode</code>) using that same <code>MessageId</code> and the verification code provided.</li>
</ul>
</li>
<li>
<p><strong>Open conversation.</strong>
After validation, the agent unlocks the rest of the prompt, allowing free-form interactions such as checking orders, reporting issues, or submitting claims.</p>
</li>
</ol>
<div style="text-align:center"></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="-conversation-context-structure">🧩 Conversation Context Structure<a href="https://docs.serenitystar.ai/es/blog/conversation-variables-flow-control#-conversation-context-structure" class="hash-link" aria-label="Enlace directo al 🧩 Conversation Context Structure" title="Enlace directo al 🧩 Conversation Context Structure">​</a></h2>
<p>The <code>conversation context</code> includes a set of variables used to maintain state across the chat and control the logic flow:</p>
<table><thead><tr><th>Variable</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>Validated_Identity</code></td><td>boolean</td><td>Indicates if the user has completed identity verification.</td></tr><tr><td><code>MessageId</code></td><td>string</td><td>ID returned by the <code>SendVerificationCode</code> API.</td></tr><tr><td><code>Full_Name</code></td><td>string</td><td>Full name provided by the user.</td></tr><tr><td><code>Order_Number</code></td><td>string</td><td>The user’s order number.</td></tr><tr><td><code>Issue</code></td><td>string</td><td>Description of the issue reported.</td></tr></tbody></table>
<p>Each of these variables is updated dynamically based on the outcome of each skill.
For instance, when <code>ValidateVerificationCode</code> runs successfully, it sets <code>Validated_Identity = true</code>, which dynamically expands the prompt to the next section.</p>
<p><img decoding="async" loading="lazy" alt="Conversation Variables Configuration" src="https://docs.serenitystar.ai/es/assets/images/configure-conversation-context-c0e76a4846ecb993f1480e2d39f299d7.png" width="807" height="727" class="img_ev3q"></p>
<p><em>Need step-by-step setup instructions? See the Conversation Context docs:</em> <a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/conversation-context">Conversation Context documentation</a></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="️-step-by-step-execution">⚙️ Step-by-Step Execution<a href="https://docs.serenitystar.ai/es/blog/conversation-variables-flow-control#%EF%B8%8F-step-by-step-execution" class="hash-link" aria-label="Enlace directo al ⚙️ Step-by-Step Execution" title="Enlace directo al ⚙️ Step-by-Step Execution">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="1-sending-the-verification-code">1. Sending the Verification Code<a href="https://docs.serenitystar.ai/es/blog/conversation-variables-flow-control#1-sending-the-verification-code" class="hash-link" aria-label="Enlace directo al 1. Sending the Verification Code" title="Enlace directo al 1. Sending the Verification Code">​</a></h3>
<p>The flow begins with <code>SendVerificationCode</code>, which receives the user’s <code>Order_Number</code> and returns a <code>MessageId</code>. The details of this execution can be seen in the skill execution details:</p>
<p><img decoding="async" loading="lazy" alt="Skill execution details" src="https://docs.serenitystar.ai/es/assets/images/sendVerificationCodeResult-3c9453770485aab50cbbabf812b1af6d.png" width="955" height="640" class="img_ev3q"></p>
<p>The MessageId obtained is stored automatically in the conversation and referred in the prompt. This way, the agent can reference it later without exposing it to the user.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="2-validating-the-code">2. Validating the Code<a href="https://docs.serenitystar.ai/es/blog/conversation-variables-flow-control#2-validating-the-code" class="hash-link" aria-label="Enlace directo al 2. Validating the Code" title="Enlace directo al 2. Validating the Code">​</a></h3>
<p>When the user enters the received code (e.g., “123456”), the agent executes <code>ValidateVerificationCode</code> with:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"MessageId"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"ABC123"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"verificationCode"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"123456"</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>If the API returns success (<code>true</code>), the system sets:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"Validated_Identity"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">true</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>The prompt then expands dynamically, unlocking the next part of the agent’s capabilities. This is achieved using <strong>Dynamic Prompting</strong> with Liquid templating. The agent's core instructions are wrapped in a conditional block that checks the value of our conversation variable:</p>
<div class="language-liquid codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-liquid codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">{% if conversationVariables.Validated_Identity == "true" %}</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">... rest of the prompt with full capabilities ...</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">{% endif %}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>This ensures that the agent only gains access to its full set of instructions (e.g., checking orders or reporting issues) <em>after</em> the <code>Validated_Identity</code> variable is set to <code>true</code>. Before validation, it is restricted to only the identity verification flow, making the process secure and controlled.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="3-final-context-and-stored-data">3. Final Context and Stored Data<a href="https://docs.serenitystar.ai/es/blog/conversation-variables-flow-control#3-final-context-and-stored-data" class="hash-link" aria-label="Enlace directo al 3. Final Context and Stored Data" title="Enlace directo al 3. Final Context and Stored Data">​</a></h3>
<p>At the end of the flow, the agent has collected and stored all relevant data in its context:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"MessageId"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"ABC123"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"Full_Name"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"Julia Demo"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"Order_Number"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"111AAA"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"Validated_Identity"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">true</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"Issue"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"Customer received a bag on 7th October 2025 that has a scratch on the front. The scratch is not very large, but the item arrived damaged. No photographs of the damage are available."</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>This data remains available throughout the conversation lifecycle, enabling subsequent actions — such as creating a support ticket, checking order status, or escalating the case to a human agent.</p>
<p><img decoding="async" loading="lazy" alt="Visualize Conversation Context" src="https://docs.serenitystar.ai/es/assets/images/details-conversation-variables-c057469e6d6e638fee60ecfb1a4854ad.png" width="594" height="626" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="-technical-insight">🧠 Technical Insight<a href="https://docs.serenitystar.ai/es/blog/conversation-variables-flow-control#-technical-insight" class="hash-link" aria-label="Enlace directo al 🧠 Technical Insight" title="Enlace directo al 🧠 Technical Insight">​</a></h2>
<p>This example demonstrates how an <strong>LLM-based agent</strong> can manage <strong>stateful, conditional conversations</strong> while maintaining natural flow.
By combining LLM reasoning with structured conversation context, the agent can:</p>
<ul>
<li>Keep coherence across multiple steps.</li>
<li>Reuse results from previous skill executions.</li>
<li>Dynamically control prompt visibility based on context variables.</li>
</ul>
<p>This hybrid approach allows the agent to <strong>understand natural language</strong> while also <strong>operating within a deterministic, context-driven logic layer</strong> — creating secure, reliable automation.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="-conclusion">✨ Conclusion<a href="https://docs.serenitystar.ai/es/blog/conversation-variables-flow-control#-conclusion" class="hash-link" aria-label="Enlace directo al ✨ Conclusion" title="Enlace directo al ✨ Conclusion">​</a></h2>
<p>This verification workflow highlights how <strong>intelligent conversational agents</strong> can go beyond text responses — integrating identity validation, process automation, and secure logic control, all through natural conversation.
The key lies in <strong>persistent context</strong> and <strong>logical orchestration across skills</strong>, forming the backbone of robust conversational experiences.</p>
<p>For more details on configuring Conversation Variables and Conversation Context in your agent, see <a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/conversation-context">the specific documentation</a>.</p>
<p>Want to have this exact use case in your tenant?</p>
<ol>
<li>Sign up or sign in to your Serenity account.</li>
<li>Click the link below to import the agent and copy this identity verification flow directly into your tenant:</li>
</ol>
<p>👉 Import the agent: <a href="https://hub.serenitystar.ai/MyAgents/Import/df280e72-23ae-4244-a501-fa64c373ef69" target="_blank" rel="noopener noreferrer"><strong>Import Verification Flow (Copy to my tenant)</strong></a></p>
<p>After importing, you can customize conversation variables, skills, and API integrations to match your processes.</p>]]></content:encoded>
            <category>Identity Verification</category>
            <category>Conversational Agents</category>
            <category>Context Variables</category>
            <category>Flow Control</category>
            <category>AI Agents</category>
            <category>LLM Models</category>
        </item>
        <item>
            <title><![CDATA[Enhancing RAG with Hybrid Search and Metadata]]></title>
            <link>https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata</link>
            <guid>https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata</guid>
            <pubDate>Thu, 18 Sep 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[In today's data-driven world, organizations maintain vast knowledge bases containing information about similar products, services, or concepts. Traditional semantic search often struggles to distinguish between closely related content, leading to mixed or confusing results. Serenity\* AI Hub offers a powerful solution: hybrid search with document metadata that enhances RAG-based agents with structured fields for more precise information retrieval across any domain.]]></description>
            <content:encoded><![CDATA[<p>In today's data-driven world, organizations maintain vast knowledge bases containing information about similar products, services, or concepts. Traditional semantic search often struggles to distinguish between closely related content, leading to mixed or confusing results. <strong>Serenity* AI Hub</strong> offers a powerful solution: <strong>hybrid search with document metadata</strong> that enhances RAG-based agents with structured fields for more precise information retrieval across any domain.</p>
<p>For instance, imagine managing documentation for multiple similar products—like user manuals for different smartphone models, technical specifications for competing software tools, or guides for various financial services. Without proper filtering, agents might mix information from different sources, causing confusion. Hybrid search with metadata solves this by adding structured context to documents, ensuring accurate, targeted responses.</p>
<p>This approach is particularly valuable in scenarios where content structures are similar but details differ, such as:</p>
<ul>
<li>Product documentation across multiple versions or variants</li>
<li>Technical manuals for related but distinct equipment</li>
<li>Knowledge bases covering similar services or offerings</li>
<li>Research papers on comparable technologies or methodologies</li>
</ul>
<p>As a concrete example, let's explore how this applies to LLM model documentation, where organizations manage extensive knowledge bases about numerous AI models with similar structures but different capabilities, pricing, and specifications.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="understanding-document-metadata-in-ai-hub">Understanding Document Metadata in AI Hub<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#understanding-document-metadata-in-ai-hub" class="hash-link" aria-label="Enlace directo al Understanding Document Metadata in AI Hub" title="Enlace directo al Understanding Document Metadata in AI Hub">​</a></h2>
<p>Document metadata introduces structured fields that work alongside semantic search to improve retrieval accuracy. The system uses two key components:</p>
<ol>
<li><strong>Tags</strong>: Key-value pairs that categorize documents (e.g., model: Qwen3-Next-80B-A3B-Thinking)</li>
<li><strong>Descriptions</strong>: Concise summaries that provide context about the document's content and purpose</li>
</ol>
<p>These metadata fields enhance the retrieval process in two critical ways:</p>
<ul>
<li><strong>Hybrid Filtering</strong>: Tags are matched to conversation context to filter and rank relevant documents</li>
<li><strong>LLM Grounding</strong>: Descriptions provide additional context during answer generation</li>
</ul>
<p><strong>Important Note</strong>: Custom metadata is only available with the "Large Context Knowledge" or "AI Hybrid Search" integration modes. For optimal performance with metadata filtering, select "Knowledge with AI Hybrid Search (recommended)" in your Advanced Settings.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="ai-enhanced-search-query-generation">AI-Enhanced Search Query Generation<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#ai-enhanced-search-query-generation" class="hash-link" aria-label="Enlace directo al AI-Enhanced Search Query Generation" title="Enlace directo al AI-Enhanced Search Query Generation">​</a></h3>
<p>One of the key advantages of the "AI Hybrid Search" mode is its intelligent query optimization. Instead of using the user's literal text for embedding searches, the system:</p>
<ol>
<li><strong>Analyzes the user's intent</strong> and extracts key concepts</li>
<li><strong>Generates optimized search text</strong> specifically designed for better embedding matching</li>
<li><strong>Combines this with metadata filtering</strong> to retrieve the most relevant sections</li>
</ol>
<p>For example, if a user asks: "Can you tell me about the thinking capabilities of that Qwen model?", the AI might generate a more targeted search query like "Qwen3-Next-80B-A3B-Thinking reasoning capabilities specifications" for the embedding search, while simultaneously filtering by the <code>model: Qwen3-Next-80B-A3B-Thinking</code> tag.</p>
<p>This dual approach significantly improves retrieval accuracy compared to using the user's original text directly.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="setting-up-metadata-enhanced-knowledge-base">Setting Up Metadata-Enhanced Knowledge Base<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#setting-up-metadata-enhanced-knowledge-base" class="hash-link" aria-label="Enlace directo al Setting Up Metadata-Enhanced Knowledge Base" title="Enlace directo al Setting Up Metadata-Enhanced Knowledge Base">​</a></h2>
<p>To implement metadata-enhanced retrieval, follow these key steps using Serenity* AI Hub:</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="prerequisites">Prerequisites<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#prerequisites" class="hash-link" aria-label="Enlace directo al Prerequisites" title="Enlace directo al Prerequisites">​</a></h3>
<ul>
<li>Access to Serenity* AI Hub</li>
<li>A collection of documents to use as knowledge in your agent</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-1-plan-your-metadata-strategy">Step 1: Plan Your Metadata Strategy<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#step-1-plan-your-metadata-strategy" class="hash-link" aria-label="Enlace directo al Step 1: Plan Your Metadata Strategy" title="Enlace directo al Step 1: Plan Your Metadata Strategy">​</a></h3>
<p>Before adding metadata, identify the key dimensions that differentiate your LLM model documents. For this example, we'll use a simple but effective approach:</p>
<p><strong>Primary Tag Strategy:</strong></p>
<ul>
<li>Model name as the main differentiator (Qwen3-Next-80B-A3B-Thinking, DeepSeek-R1, Llama-3.1-8B, gemma-3-270m, etc.)</li>
</ul>
<p>This simple tagging approach is often the most practical because:</p>
<ul>
<li>It directly addresses the main challenge: preventing information mixing between models</li>
<li>It's easy to maintain and scale as you add more model documentation</li>
<li>It provides clear filtering that users can understand and rely on</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-2-access-the-knowledge-management-interface">Step 2: Access the Knowledge Management Interface<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#step-2-access-the-knowledge-management-interface" class="hash-link" aria-label="Enlace directo al Step 2: Access the Knowledge Management Interface" title="Enlace directo al Step 2: Access the Knowledge Management Interface">​</a></h3>
<p>Navigate to your agent's Knowledge tab in AI Hub.</p>
<p><img decoding="async" loading="lazy" alt="Upload Files Interface" src="https://docs.serenitystar.ai/es/assets/images/upload-files-f19c0380b8a2a18105558d0f306f4cd2.png" width="1228" height="707" class="img_ev3q"></p>
<p>Click on "Knowledge" to access your document library where you can upload your LLM model documentation files.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-3-add-metadata-to-documents">Step 3: Add Metadata to Documents<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#step-3-add-metadata-to-documents" class="hash-link" aria-label="Enlace directo al Step 3: Add Metadata to Documents" title="Enlace directo al Step 3: Add Metadata to Documents">​</a></h3>
<p>For each document in your knowledge base, you can add structured metadata by clicking the configure metadata icon:</p>
<p><img decoding="async" loading="lazy" alt="Configure Metadata Icon" src="https://docs.serenitystar.ai/es/assets/images/configure-metadata-icon-f3b1ac3836129c259ef9d95a168f7d82.png" width="655" height="97" class="img_ev3q"></p>
<p>As shown in the example, for a document like <code>Qwen3-Next-80B-A3B-Thinking.pdf</code>, you would add the description "Model specification for Qwen3 Next 80B A3B Thinking" and use the tag <code>Qwen3-Next-80B-A3B-Thinking</code>.</p>
<p>Note the important message that appears: "Custom metadata is only available with the 'Large Context Knowledge' or 'AI Hybrid Search' integration modes. We recommend choosing one of these modes in Knowledge &gt; 'Advanced Settings'."</p>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="adding-tags">Adding Tags<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#adding-tags" class="hash-link" aria-label="Enlace directo al Adding Tags" title="Enlace directo al Adding Tags">​</a></h4>
<p>Tags should follow a consistent key-value structure. In this case, we're using a simple but effective approach:</p>
<p><strong>Model Name Tags</strong></p>
<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">model: Qwen3-Next-80B-A3B-Thinking</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">model: DeepSeek-R1</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">model: Llama-3.1-8B</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">model: gemma-3-270m</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>This straightforward tagging strategy ensures that when users ask about a specific model, the hybrid search will only retrieve sections from documents tagged with that exact model name, preventing confusion between different models.</p>
<p><img decoding="async" loading="lazy" alt="Define Metadata Example" src="https://docs.serenitystar.ai/es/assets/images/define-metadata-example-af6c3191d5d9bdc5ccfa18bb2fa611cc.png" width="957" height="510" class="img_ev3q"></p>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="writing-effective-descriptions">Writing Effective Descriptions<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#writing-effective-descriptions" class="hash-link" aria-label="Enlace directo al Writing Effective Descriptions" title="Enlace directo al Writing Effective Descriptions">​</a></h4>
<p>Descriptions should be concise (1-2 lines) but provide meaningful context:</p>
<p><strong>Good Examples:</strong></p>
<ul>
<li>"Technical specifications and capabilities for Qwen3-Next-80B-A3B-Thinking model including context length and performance benchmarks"</li>
<li>"Comprehensive guide to DeepSeek-R1 features, reasoning capabilities, and implementation details"</li>
<li>"NVIDIA-Nemotron-Nano-9B-v2 model documentation covering efficiency optimizations and deployment strategies"</li>
</ul>
<p><strong>Poor Examples:</strong></p>
<ul>
<li>"LLM documentation" (too vague)</li>
<li>"This document contains detailed information about..." (too wordy)</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-4-configure-agent-for-metadata-usage">Step 4: Configure Agent for Metadata Usage<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#step-4-configure-agent-for-metadata-usage" class="hash-link" aria-label="Enlace directo al Step 4: Configure Agent for Metadata Usage" title="Enlace directo al Step 4: Configure Agent for Metadata Usage">​</a></h3>
<p>The metadata enhancement works automatically with existing agents, but you can optimize performance by configuring your agent's knowledge settings:</p>
<p><img decoding="async" loading="lazy" alt="Agent Knowledge Settings" src="https://docs.serenitystar.ai/es/assets/images/knowledge-advanced-settings-8bc70cd82461c8dfda4bd678641cf4f8.png" width="677" height="366" class="img_ev3q"></p>
<p>Notice that "Knowledge with AI Hybrid Search (recommended)" is selected as the integration mode. This is essential for metadata filtering to work effectively.</p>
<p>Ensure your agent's instructions reference the types of models or AI capabilities it supports, which helps with metadata matching.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-5-test-metadata-enhanced-retrieval">Step 5: Test Metadata-Enhanced Retrieval<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#step-5-test-metadata-enhanced-retrieval" class="hash-link" aria-label="Enlace directo al Step 5: Test Metadata-Enhanced Retrieval" title="Enlace directo al Step 5: Test Metadata-Enhanced Retrieval">​</a></h3>
<p>Use the preview chat to test how metadata improves document retrieval:</p>
<p><strong>Test Query Example:</strong>
"What are the reasoning capabilities of DeepSeek-R1?"</p>
<p>With the simple <code>model: DeepSeek-R1</code> tag, the agent will use AI Hybrid Search to provide accurate, model-specific information without mixing details from other models like Qwen3-Next-80B-A3B-Thinking or Llama-3.1-8B.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="understanding-retrieval-modes-hybrid-search-vs-large-context">Understanding Retrieval Modes: Hybrid Search vs. Large Context<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#understanding-retrieval-modes-hybrid-search-vs-large-context" class="hash-link" aria-label="Enlace directo al Understanding Retrieval Modes: Hybrid Search vs. Large Context" title="Enlace directo al Understanding Retrieval Modes: Hybrid Search vs. Large Context">​</a></h2>
<p>One of the key benefits of using metadata with hybrid search is how it affects which document sections are retrieved and added to the conversation context. In the following example, we'll demonstrate this by querying information about specific LLM models like NVIDIA Nemotron and DeepSeek-R1, showing how metadata filtering ensures only relevant model documentation is retrieved instead of mixing information from different models.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="large-context-mode-without-metadata-filtering">Large Context Mode (Without Metadata Filtering)<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#large-context-mode-without-metadata-filtering" class="hash-link" aria-label="Enlace directo al Large Context Mode (Without Metadata Filtering)" title="Enlace directo al Large Context Mode (Without Metadata Filtering)">​</a></h3>
<p>When not using hybrid search with metadata, the system may retrieve sections from multiple different models, potentially causing confusion:</p>
<p><img decoding="async" loading="lazy" alt="Sections Retrieved with Large Context" src="https://docs.serenitystar.ai/es/assets/images/sections-retrieved-large-context-30c880d0b4c0c19b78f5c4ebc5bd818f.png" width="1008" height="617" class="img_ev3q"></p>
<p>In this mode, you might see sections about different models mixed together, making it difficult for the LLM to provide accurate, model-specific information.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="hybrid-search-mode-with-metadata-filtering">Hybrid Search Mode (With Metadata Filtering)<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#hybrid-search-mode-with-metadata-filtering" class="hash-link" aria-label="Enlace directo al Hybrid Search Mode (With Metadata Filtering)" title="Enlace directo al Hybrid Search Mode (With Metadata Filtering)">​</a></h3>
<p>With hybrid search and metadata enabled, the system only retrieves sections that are relevant to the specific model being discussed:</p>
<p><img decoding="async" loading="lazy" alt="Sections Retrieved with Hybrid Search" src="https://docs.serenitystar.ai/es/assets/images/sections-retrieved-hybrid-1721e0082fe38b77debcad474aad81c0.png" width="1002" height="608" class="img_ev3q"></p>
<p>Notice how hybrid search mode ensures that only sections corresponding to the queried model are included in the context, leading to more accurate and focused responses.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="viewing-retrieved-sections-in-instance-details">Viewing Retrieved Sections in Instance Details<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#viewing-retrieved-sections-in-instance-details" class="hash-link" aria-label="Enlace directo al Viewing Retrieved Sections in Instance Details" title="Enlace directo al Viewing Retrieved Sections in Instance Details">​</a></h3>
<p>You can monitor which sections are being retrieved by viewing the instance details of your conversation. This transparency allows you to:</p>
<ul>
<li>Verify that the correct model information is being retrieved</li>
<li>Debug any issues with metadata filtering</li>
<li>Understand how your agent is selecting relevant content</li>
</ul>
<p>The instance details show exactly which document sections were added to the message context, displaying the specific PDFs and their relevance scores (as shown in the images above where you can see files like <code>NVIDIA-Nemotron-Nano-9B-v2.pdf</code>, <code>gpt-oss-120b.pdf</code>, and <code>Qwen3-Next-80B-A3B-Instruct.pdf</code> with their respective relevance scores), helping you validate that hybrid search is working effectively.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="advanced-metadata-implementation">Advanced Metadata Implementation<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#advanced-metadata-implementation" class="hash-link" aria-label="Enlace directo al Advanced Metadata Implementation" title="Enlace directo al Advanced Metadata Implementation">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="starting-simple-model-name-only">Starting Simple: Model Name Only<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#starting-simple-model-name-only" class="hash-link" aria-label="Enlace directo al Starting Simple: Model Name Only" title="Enlace directo al Starting Simple: Model Name Only">​</a></h3>
<p>Start with the simplest approach that solves your core problem - in this case, preventing cross-model information contamination:</p>
<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">model: Qwen3-Next-80B-A3B-Thinking</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">model: DeepSeek-R1</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">model: NVIDIA-Nemotron-Nano-9B-v2</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">model: Llama-3.1-8B</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>This single-tag strategy provides immediate benefits while being easy to implement and maintain. As your knowledge base grows, you can expand with additional dimensions:</p>
<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">model: Qwen3-Next-80B-A3B-Thinking</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">variant: Instruct</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="implementation-best-practices">Implementation Best Practices<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#implementation-best-practices" class="hash-link" aria-label="Enlace directo al Implementation Best Practices" title="Enlace directo al Implementation Best Practices">​</a></h3>
<ul>
<li><strong>Consistency is key</strong>: Whatever tagging strategy you choose, maintain it across all documents</li>
<li><strong>Start simple</strong>: A consistently applied simple system beats a complex, inconsistent one</li>
<li><strong>Test regularly</strong>: Use real user queries to validate retrieval accuracy</li>
<li><strong>Focus on quality</strong>: Meaningful tags are better than extensive but irrelevant tagging</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="scaling-beyond-llm-documentation">Scaling Beyond LLM Documentation<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#scaling-beyond-llm-documentation" class="hash-link" aria-label="Enlace directo al Scaling Beyond LLM Documentation" title="Enlace directo al Scaling Beyond LLM Documentation">​</a></h3>
<p>This hybrid search approach applies to any domain with similar content structures:</p>
<ul>
<li><strong>Product catalogs</strong> with variant-specific information</li>
<li><strong>Compliance documentation</strong> across different regulations</li>
<li><strong>Technical manuals</strong> for equipment families</li>
<li><strong>Process documentation</strong> across departments or regions</li>
</ul>
<p>The key is identifying the primary dimension that differentiates your content and using that as your metadata foundation.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="https://docs.serenitystar.ai/es/blog/llm-models-hybrid-search-metadata#conclusion" class="hash-link" aria-label="Enlace directo al Conclusion" title="Enlace directo al Conclusion">​</a></h2>
<p>Document metadata transforms RAG-based agents from simple search tools into intelligent assistants. By providing structured context through tags and descriptions, you enable precise, targeted information retrieval across any domain.</p>
<p>The investment in organizing your knowledge base with metadata pays dividends in improved user experience and more effective AI-powered assistance. Start by adding simple tags to your documents and see the immediate improvement in response accuracy!</p>]]></content:encoded>
            <category>RAG</category>
            <category>Knowledge</category>
            <category>Metadata</category>
            <category>Hybrid Search</category>
            <category>LLM Models</category>
            <category>AI Agents</category>
            <category>Document Retrieval</category>
        </item>
        <item>
            <title><![CDATA[Integrating Google Calendar with your Serenity* AI Agent]]></title>
            <link>https://docs.serenitystar.ai/es/blog/integrating-google-calendar-with-serenity-ai-agent</link>
            <guid>https://docs.serenitystar.ai/es/blog/integrating-google-calendar-with-serenity-ai-agent</guid>
            <pubDate>Tue, 10 Jun 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[This guide walks you through integrating Google Calendar with your Serenity* Star agent using OAuth 2.0 authentication. You'll learn how to set up an HTTP Request skill that can create calendar events by making authenticated API calls to the Google Calendar API.]]></description>
            <content:encoded><![CDATA[<p>This guide walks you through integrating Google Calendar with your Serenity* Star agent using OAuth 2.0 authentication. You'll learn how to set up an HTTP Request skill that can create calendar events by making authenticated API calls to the Google Calendar API.</p>
<p>You can use this integration to interact with your Google Calendar in any way you like, such as creating and deleting events, retrieving event details, or updating existing events, all by asking your AI agent to perform these tasks.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="add-an-http-request-skill">Add an HTTP Request Skill<a href="https://docs.serenitystar.ai/es/blog/integrating-google-calendar-with-serenity-ai-agent#add-an-http-request-skill" class="hash-link" aria-label="Enlace directo al Add an HTTP Request Skill" title="Enlace directo al Add an HTTP Request Skill">​</a></h2>
<ol>
<li>
<p>From the agent designer, add a new HTTP Request skill. In the following example, I'm preparing a skill to add new events to my calendar.</p>
<p><img decoding="async" loading="lazy" alt="HTTP Request Skill Form" src="https://docs.serenitystar.ai/es/assets/images/http-request-skill-form-398e2b62645c9a092ff8a0ea92f08f70.png" width="970" height="567" class="img_ev3q"></p>
<p>Configure the following settings:</p>
<ul>
<li><strong>Code</strong>: CreateCalendarEvent</li>
<li><strong>Description</strong>: POST HTTP request that adds an event to the calendar by specifying start date, end date, summary, and description in the body.</li>
<li><strong>Method</strong>: POST</li>
<li><strong>URL</strong>: <code>https://www.googleapis.com/calendar/v3/calendars/&lt;google-email-here&gt;/events</code>
<ul>
<li>Replace <code>&lt;google-email-here&gt;</code> with a valid email (e.g., "<a href="mailto:your-email@gmail.com" target="_blank" rel="noopener noreferrer">your-email@gmail.com</a>")</li>
</ul>
</li>
</ul>
</li>
<li>
<p>Select <strong>OAuth2</strong> as your authentication type and press "Create new"</p>
<p><img decoding="async" loading="lazy" alt="OAuth2 Authentication Selection" src="https://docs.serenitystar.ai/es/assets/images/oauth2-authentication-selection-6fb8d992fef19f9a7d283add6cc09329.png" width="954" height="210" class="img_ev3q"></p>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="configuring-the-oauth-20-connection">Configuring the OAuth 2.0 Connection<a href="https://docs.serenitystar.ai/es/blog/integrating-google-calendar-with-serenity-ai-agent#configuring-the-oauth-20-connection" class="hash-link" aria-label="Enlace directo al Configuring the OAuth 2.0 Connection" title="Enlace directo al Configuring the OAuth 2.0 Connection">​</a></h2>
<p>Complete the OAuth 2.0 Connection Configuration form:</p>
<p><img decoding="async" loading="lazy" alt="OAuth2 Connection Configuration Form" src="https://docs.serenitystar.ai/es/assets/images/oauth2-connection-configuration-form-8c5a2f35de1d277d835885d0b58abafc.png" width="962" height="805" class="img_ev3q"></p>
<p>Configure the following settings:</p>
<ul>
<li><strong>Name</strong>: Google Calendar (this is just to identify the connection)</li>
<li><strong>Auth URL</strong>: <code>https://accounts.google.com/o/oauth2/v2/auth</code></li>
<li><strong>Token URL</strong>: <code>https://oauth2.googleapis.com/token</code></li>
<li><strong>Client ID</strong>: Your Google OAuth app client ID (generated via Google Cloud Console)</li>
<li><strong>Client Secret</strong>: Your Google OAuth app client secret</li>
<li><strong>Scopes</strong>: <code>https://www.googleapis.com/auth/calendar</code></li>
</ul>
<p>For Google OAuth, you also need to add two additional Auth Request Parameters:</p>
<p><strong>Access Type Parameter:</strong></p>
<ul>
<li><strong>Key</strong>: <code>access_type</code></li>
<li><strong>Value</strong>: <code>offline</code></li>
</ul>
<p><strong>Prompt Parameter:</strong></p>
<ul>
<li><strong>Key</strong>: <code>prompt</code></li>
<li><strong>Value</strong>: <code>consent</code></li>
</ul>
<p><strong>Important</strong>: Make sure to add the Redirect URI to your Google OAuth app as specified at the top of the form:</p>
<p><img decoding="async" loading="lazy" alt="OAuth2 Redirect URI Configuration" src="https://docs.serenitystar.ai/es/assets/images/oauth2-redirect-uri-configuration-cba75abc505f601979e3a99156189264.png" width="820" height="201" class="img_ev3q"></p>
<p>Once the OAuth connection is complete, click "Continue" and go through Google's login and consent screens. You should see this success message:</p>
<p><img decoding="async" loading="lazy" alt="OAuth2 Connection Success Message" src="https://docs.serenitystar.ai/es/assets/images/oauth2-connection-success-message-925cb915847fbf6c4fd5157aa54fca78.png" width="1013" height="324" class="img_ev3q"></p>
<p>Close the tab and return to the OAuth 2.0 Connection form. You should see the new connection configured in the OAuth 2.0 selector:</p>
<p><img decoding="async" loading="lazy" alt="OAuth2 Connection Selector" src="https://docs.serenitystar.ai/es/assets/images/oauth2-connection-selector-1b18456e34c5a8331bdceab60d30cb7e.png" width="946" height="249" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="finish-configuring-the-http-request">Finish Configuring the HTTP Request<a href="https://docs.serenitystar.ai/es/blog/integrating-google-calendar-with-serenity-ai-agent#finish-configuring-the-http-request" class="hash-link" aria-label="Enlace directo al Finish Configuring the HTTP Request" title="Enlace directo al Finish Configuring the HTTP Request">​</a></h2>
<p>Press "Continue" to set up the rest of the request information. In this step, you may need to configure the request body. For my "Create Event" request, I used an AI-generated body like this:</p>
<p><img decoding="async" loading="lazy" alt="HTTP Request Body Configuration" src="https://docs.serenitystar.ai/es/assets/images/http-request-body-configuration-84f3b13398ea50905f1ecf3c3c6e027f.png" width="969" height="783" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="whats-next">What's Next?<a href="https://docs.serenitystar.ai/es/blog/integrating-google-calendar-with-serenity-ai-agent#whats-next" class="hash-link" aria-label="Enlace directo al What's Next?" title="Enlace directo al What's Next?">​</a></h2>
<p>You can now try your Agent from the Preview panel. Ask it to create a calendar event, and it should respond with a confirmation message.</p>
<p>Once you're sure that's working correctly, you can reuse this OAuth 2.0 connection in other HTTP Request skills to provide your Agent with other ways to interact with your Google Calendar, such as retrieving events or deleting them.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="keep-in-mind">Keep in Mind<a href="https://docs.serenitystar.ai/es/blog/integrating-google-calendar-with-serenity-ai-agent#keep-in-mind" class="hash-link" aria-label="Enlace directo al Keep in Mind" title="Enlace directo al Keep in Mind">​</a></h2>
<ul>
<li><strong>Permissions</strong>: Ensure your Google OAuth app has the necessary permissions to access the Calendar API. You can manage these in the Google Cloud Console.</li>
<li><strong>Your Agent will act on your behalf</strong>: When you set up the OAuth connection, your agent will be able to create, modify, and delete events in your Google Calendar. Keep this in mind before sharing your agent publicly.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="additional-resources">Additional Resources<a href="https://docs.serenitystar.ai/es/blog/integrating-google-calendar-with-serenity-ai-agent#additional-resources" class="hash-link" aria-label="Enlace directo al Additional Resources" title="Enlace directo al Additional Resources">​</a></h2>
<ul>
<li><a href="https://developers.google.com/workspace/calendar/api/v3/reference" target="_blank" rel="noopener noreferrer">Google Calendar API Documentation</a></li>
<li><a href="https://docs.serenitystar.ai/docs/serenity-aihub/capabilities/skills/details?pluginId=54e000d3-c881-46e2-b817-158f2d2ab84a" target="_blank" rel="noopener noreferrer">Http Request Skill Documentation</a></li>
</ul>]]></content:encoded>
            <category>Agents</category>
            <category>Skills</category>
            <category>Google</category>
            <category>Calendar</category>
        </item>
        <item>
            <title><![CDATA[Advanced ATM Security Assistant]]></title>
            <link>https://docs.serenitystar.ai/es/blog/advanced-atm-security-assistant</link>
            <guid>https://docs.serenitystar.ai/es/blog/advanced-atm-security-assistant</guid>
            <pubDate>Fri, 23 May 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Introduction]]></description>
            <content:encoded><![CDATA[<h2 class="anchor anchorWithStickyNavbar_LWe7" id="introduction">Introduction<a href="https://docs.serenitystar.ai/es/blog/advanced-atm-security-assistant#introduction" class="hash-link" aria-label="Enlace directo al Introduction" title="Enlace directo al Introduction">​</a></h2>
<p>In high-risk environments such as Automated Teller Machines (ATMs), the need to detect suspicious behavior in real time is critical. This article explores a concrete use case: extending an existing helmet-detection system with a natural language agent (LLM) that interprets, classifies, and responds to risk scenarios captured in images.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="from-visual-detection-to-semantic-understanding">From Visual Detection to Semantic Understanding<a href="https://docs.serenitystar.ai/es/blog/advanced-atm-security-assistant#from-visual-detection-to-semantic-understanding" class="hash-link" aria-label="Enlace directo al From Visual Detection to Semantic Understanding" title="Enlace directo al From Visual Detection to Semantic Understanding">​</a></h2>
<p>The system builds upon an already functional infrastructure that identifies individuals wearing helmets. On top of this, an "activity agent" is trained with a specific prompt designed to:</p>
<ul>
<li>Analyze images for unlawful or suspicious behavior</li>
<li>Classify the event (e.g., armed robbery, forced entry, vandalism)</li>
<li>Count and describe individuals (age, gender, clothing, height, tattoos)</li>
<li>Generate a structured JSON output with tags, confidence scores, timestamps, and recommended actions</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="step-by-step-agent-setup-in-serenity-star">Step-by-Step Agent Setup in Serenity* Star<a href="https://docs.serenitystar.ai/es/blog/advanced-atm-security-assistant#step-by-step-agent-setup-in-serenity-star" class="hash-link" aria-label="Enlace directo al Step-by-Step Agent Setup in Serenity* Star" title="Enlace directo al Step-by-Step Agent Setup in Serenity* Star">​</a></h2>
<p>Creating this kind of agent in Serenity* Star is straightforward. Below is a visual walkthrough:</p>
<ol>
<li>
<p><strong>Create a new agent</strong><br>
<img decoding="async" loading="lazy" alt="Create new agent" src="https://docs.serenitystar.ai/es/assets/images/1-nuevo-agente-47c2566522cf662b677db4a9539f8790.png" width="1862" height="165" class="img_ev3q"></p>
</li>
<li>
<p><strong>Select the 'Advanced ATM Security Assistant' template</strong><br>
<img decoding="async" loading="lazy" alt="Choose template" src="https://docs.serenitystar.ai/es/assets/images/2-elegimos-template-atm-a38490c112260c81eb005fe79d4a2b32.png" width="1560" height="772" class="img_ev3q"></p>
</li>
<li>
<p><strong>Customize the endpoint name and configuration</strong><br>
<img decoding="async" loading="lazy" alt="Configure endpoint" src="https://docs.serenitystar.ai/es/assets/images/3-elegimos-nombre-endpoint-ed35c074983e1c516d4e4c278606ec88.png" width="1577" height="788" class="img_ev3q"></p>
</li>
<li>
<p><strong>Finalize creation</strong><br>
<img decoding="async" loading="lazy" alt="Create agent" src="https://docs.serenitystar.ai/es/assets/images/4-crear-agente-e40a2e53ad55cb090bd1432c4b739002.png" width="1577" height="794" class="img_ev3q"></p>
</li>
<li>
<p><strong>Enable image processing capabilities</strong><br>
<img decoding="async" loading="lazy" alt="Activate vision" src="https://docs.serenitystar.ai/es/assets/images/5-activar-procesar-imagenes-con-vision-577969a42784d581f34c37f916973975.png" width="715" height="782" class="img_ev3q"></p>
</li>
<li>
<p><strong>Upload an image to test the agent</strong><br>
<img decoding="async" loading="lazy" alt="Upload test image" src="https://docs.serenitystar.ai/es/assets/images/6-prueba-1-agente-aa419484e23150d4e4ab5879d4915992.png" width="1637" height="710" class="img_ev3q"></p>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="execution-and-results">Execution and Results<a href="https://docs.serenitystar.ai/es/blog/advanced-atm-security-assistant#execution-and-results" class="hash-link" aria-label="Enlace directo al Execution and Results" title="Enlace directo al Execution and Results">​</a></h2>
<p>Once deployed, the agent can analyze ATM surveillance images with impressive speed and accuracy.</p>
<ul>
<li>
<p><strong>Test Image 1</strong> – Normal ATM usage scenario:</p>
<p><img decoding="async" loading="lazy" alt="Test image 1" src="https://docs.serenitystar.ai/es/assets/images/7-imagen1-6202d7dd15c5fab811b34ba75bef73df.jpg" width="640" height="480" class="img_ev3q"><br>
<img decoding="async" loading="lazy" alt="Agent response 1" src="https://docs.serenitystar.ai/es/assets/images/8-resultado-imagen-1-a4c3545122a2af7ae45e778e91bb510f.png" width="678" height="362" class="img_ev3q"></p>
<p>The system correctly identifies that no unlawful activity is occurring, with a low-risk score and a recommendation to ignore.</p>
</li>
<li>
<p><strong>Test Image 2</strong> – Forced entry attempt:</p>
<p><img decoding="async" loading="lazy" alt="Test image 2" src="https://docs.serenitystar.ai/es/assets/images/9-imagen2-d303d59b7ebfab99764d29532f13f6e3.jpg" width="1000" height="667" class="img_ev3q"><br>
<img decoding="async" loading="lazy" alt="Agent response 2" src="https://docs.serenitystar.ai/es/assets/images/10-resultado-imagen-2-cf6c6e2d9c89a932369e6d105cbad412.png" width="674" height="372" class="img_ev3q"></p>
<p>Here, the agent classifies the situation as “forced entry,” detects visible vandalism, and recommends dispatching security with a high-confidence score.</p>
</li>
<li>
<p><strong>Test Image 3</strong> – Attempted ATM break-in with tools:</p>
<p><img decoding="async" loading="lazy" alt="Test image 3" src="https://docs.serenitystar.ai/es/assets/images/11-imagen3-4f16800a2def7ff322ea235efd53c3ec.jpg" width="615" height="479" class="img_ev3q"><br>
<img decoding="async" loading="lazy" alt="Agent response 3" src="https://docs.serenitystar.ai/es/assets/images/12-resultado-imagen-3-8a36c49ccc7fff4c225896daf9a4482f.png" width="682" height="376" class="img_ev3q"></p>
<p>The agent detects a masked suspect attempting to breach the ATM using bolt cutters, with high alert level and immediate action recommendation.</p>
</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="integration-with-serenity-star">Integration with Serenity* Star<a href="https://docs.serenitystar.ai/es/blog/advanced-atm-security-assistant#integration-with-serenity-star" class="hash-link" aria-label="Enlace directo al Integration with Serenity* Star" title="Enlace directo al Integration with Serenity* Star">​</a></h2>
<p>The activity agent operates entirely within Serenity* Star, enabling seamless monitoring and continuous refinement of its performance. Once deployed, it enables:</p>
<ul>
<li>Centralized incident management across multiple camera feeds</li>
<li>Automated action flows (alerts, escalations, reports)</li>
<li>Continuous training via real-world feedback loops</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="api-access-and-execution">API Access and Execution<a href="https://docs.serenitystar.ai/es/blog/advanced-atm-security-assistant#api-access-and-execution" class="hash-link" aria-label="Enlace directo al API Access and Execution" title="Enlace directo al API Access and Execution">​</a></h2>
<p>To retrieve the API Key and execute the agent via code, Serenity* Star provides auto-generated code snippets. Here's how to find and use them:</p>
<ul>
<li>
<p><strong>Step 1: Locate the "Code Snippets" section in the agent configuration</strong><br>
<img decoding="async" loading="lazy" alt="Code Snippets button" src="https://docs.serenitystar.ai/es/assets/images/13-code-snnippets-bbead2f2051c6e39dc78bdc7e42870b9.png" width="1228" height="407" class="img_ev3q"></p>
</li>
<li>
<p><strong>Step 2: Copy the cURL command to execute your agent via API</strong><br>
<img decoding="async" loading="lazy" alt="cURL example with API Key" src="https://docs.serenitystar.ai/es/assets/images/14-code-snippets-api-key-blur-1adc27b87011be743d84b0a4e322d15d.png" width="713" height="715" class="img_ev3q"></p>
</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="systems-integration-with-serenity-star">Systems Integration with Serenity* Star<a href="https://docs.serenitystar.ai/es/blog/advanced-atm-security-assistant#systems-integration-with-serenity-star" class="hash-link" aria-label="Enlace directo al Systems Integration with Serenity* Star" title="Enlace directo al Systems Integration with Serenity* Star">​</a></h2>
<ol>
<li>
<p><strong>Upload the images to analyze to AI Hub through the volatile knowledge endpoint:</strong><br>
<a href="https://docs.serenitystar.ai/docs/api/aihub/upload-volatile-knowledge" target="_blank" rel="noopener noreferrer">Upload Volatile Knowledge</a></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token function" style="color:#d73a49">curl</span><span class="token plain"> </span><span class="token parameter variable" style="color:#36acaa">--location</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'https://api.serenitystar.ai/api/v2/VolatileKnowledge'</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token parameter variable" style="color:#36acaa">--header</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'X-API-KEY: &lt;YOUR_API_KEY&gt;'</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token parameter variable" style="color:#36acaa">--form</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'&lt;YOUR_IMAGE_FILE&gt;'</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
</li>
<li>
<p><strong>Check image processing status:</strong><br>
<a href="https://docs.serenitystar.ai/docs/api/aihub/get-volatile-knowledge-by-id" target="_blank" rel="noopener noreferrer">Check Volatile Knowledge</a></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token function" style="color:#d73a49">curl</span><span class="token plain"> </span><span class="token parameter variable" style="color:#36acaa">--location</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'https://api.serenitystar.ai/api/v2/VolatileKnowledge/&lt;VOLATILE_KNOWLEDGE_ID&gt;'</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token parameter variable" style="color:#36acaa">--header</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'X-API-KEY: &lt;YOUR_API_KEY&gt;'</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
</li>
<li>
<p><strong>Execute the agent with the uploaded image ID:</strong><br>
<a href="https://docs.serenitystar.ai/docs/api/aihub/execute-agent-with-code" target="_blank" rel="noopener noreferrer">Execute Agent</a></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token function" style="color:#d73a49">curl</span><span class="token plain"> </span><span class="token parameter variable" style="color:#36acaa">--location</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'https://api.serenitystar.ai/api/v2/agent/ATMassistant/execute'</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token parameter variable" style="color:#36acaa">--header</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'Content-Type: application/json'</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token parameter variable" style="color:#36acaa">--header</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'X-API-KEY: &lt;YOUR_API_KEY&gt;'</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token parameter variable" style="color:#36acaa">--data</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'[{</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">  "Key": "volatileKnowledgeIds",</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">  "Value": ["&lt;YOUR_IMAGE_VOLATILE_KNOWLEDGE_ID&gt;"]</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">}]'</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
</li>
<li>
<p><strong>Integrate the resulting JSON response with your target system.</strong></p>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="https://docs.serenitystar.ai/es/blog/advanced-atm-security-assistant#conclusion" class="hash-link" aria-label="Enlace directo al Conclusion" title="Enlace directo al Conclusion">​</a></h2>
<p>This use case demonstrates how combining LLMs with computer vision elevates security from passive monitoring to intelligent, operational interpretation. By generating structured, actionable insights in real time, Serenity Star is ready to scale these solutions into critical infrastructure environments.</p>]]></content:encoded>
            <category>AI-powered ATM surveillance</category>
            <category>LLM security agent</category>
            <category>real-time threat detection</category>
            <category>computer vision for crime prevention</category>
        </item>
        <item>
            <title><![CDATA[Using Forms to collect leads]]></title>
            <link>https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads</link>
            <guid>https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads</guid>
            <pubDate>Wed, 16 Apr 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[In today's competitive digital landscape, generating high-quality leads is crucial for business growth. AI Agents can transform your lead generation process by engaging with visitors in a conversational manner while seamlessly collecting valuable information. In this article, we'll explore how to use the Forms capability in Serenity\* AI Hub to create an effective lead collection system.]]></description>
            <content:encoded><![CDATA[<p>In today's competitive digital landscape, generating high-quality leads is crucial for business growth. AI Agents can transform your lead generation process by engaging with visitors in a conversational manner while seamlessly collecting valuable information. In this article, we'll explore how to use the Forms capability in <strong>Serenity* AI Hub</strong> to create an effective lead collection system.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-use-forms-for-lead-generation">Why Use Forms for Lead Generation?<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#why-use-forms-for-lead-generation" class="hash-link" aria-label="Enlace directo al Why Use Forms for Lead Generation?" title="Enlace directo al Why Use Forms for Lead Generation?">​</a></h2>
<p>Traditional lead forms can be static and impersonal, often leading to high abandonment rates. Conversational AI offers several advantages:</p>
<ul>
<li><strong>Natural Interaction</strong>: Visitors engage in a conversation rather than filling out fields on a form</li>
<li><strong>Progressive Data Collection</strong>: Information is gathered gradually throughout the conversation</li>
<li><strong>Personalized Experience</strong>: The agent adapts its questions based on previous responses</li>
<li><strong>Higher Completion Rates</strong>: Less intimidating than lengthy traditional forms</li>
<li><strong>24/7 Availability</strong>: Collect leads around the clock without human intervention</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="setting-up-your-lead-generation-form">Setting Up Your Lead Generation Form<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#setting-up-your-lead-generation-form" class="hash-link" aria-label="Enlace directo al Setting Up Your Lead Generation Form" title="Enlace directo al Setting Up Your Lead Generation Form">​</a></h2>
<p>Let's create an Assistant Agent that will engage with website visitors and collect lead information for your sales team.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="prerequisites">Prerequisites<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#prerequisites" class="hash-link" aria-label="Enlace directo al Prerequisites" title="Enlace directo al Prerequisites">​</a></h3>
<ul>
<li>Access to Serenity* AI Hub</li>
<li>A clear understanding of what lead information you need to collect</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-1-create-a-lead-generation-agent">Step 1: Create a Lead Generation Agent<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#step-1-create-a-lead-generation-agent" class="hash-link" aria-label="Enlace directo al Step 1: Create a Lead Generation Agent" title="Enlace directo al Step 1: Create a Lead Generation Agent">​</a></h3>
<p>Start by creating a new Assistant Agent specifically designed for lead collection. You can either use a template or create one from scratch.</p>
<p>Configure your agent with a personality that aligns with your brand. For lead generation, a friendly and helpful tone usually works best.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-2-configure-the-forms-feature">Step 2: Configure the Forms Feature<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#step-2-configure-the-forms-feature" class="hash-link" aria-label="Enlace directo al Step 2: Configure the Forms Feature" title="Enlace directo al Step 2: Configure the Forms Feature">​</a></h3>
<p>Navigate to the Forms tab in your agent configuration.</p>
<p><img decoding="async" loading="lazy" alt="Forms Tab" src="https://docs.serenitystar.ai/es/assets/images/forms-tab-fe579148a5e0cadbc50cf81400c5b698.png" width="1132" height="700" class="img_ev3q"></p>
<p>Click on "Add Field" to begin building your lead capture form.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-3-define-lead-information-fields">Step 3: Define Lead Information Fields<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#step-3-define-lead-information-fields" class="hash-link" aria-label="Enlace directo al Step 3: Define Lead Information Fields" title="Enlace directo al Step 3: Define Lead Information Fields">​</a></h3>
<p>For an effective lead generation form, consider adding these essential fields:</p>
<ol>
<li>
<p><strong>Name</strong> (Text type)</p>
<ul>
<li>Set as required</li>
<li>Instructions: "Ask for the person's full name"</li>
</ul>
</li>
<li>
<p><strong>Email</strong> (Email type)</p>
<ul>
<li>Set as required</li>
<li>Instructions: "Collect a valid email address for follow-up"</li>
</ul>
</li>
<li>
<p><strong>Phone Number</strong> (Phone type)</p>
<ul>
<li>Optional</li>
<li>Instructions: "Request phone number including country code if the lead seems interested in a call"</li>
</ul>
</li>
<li>
<p><strong>Company</strong> (Text type)</p>
<ul>
<li>Set as required</li>
<li>Instructions: "Ask for the company name"</li>
</ul>
</li>
<li>
<p><strong>Role/Position</strong> (Text type)</p>
<ul>
<li>Optional</li>
<li>Instructions: "Inquire about their position or role in the company"</li>
</ul>
</li>
<li>
<p><strong>Interest Level</strong> (Select type)</p>
<ul>
<li>Options: High, Medium, Low</li>
<li>Instructions: "Based on the conversation, assess their interest level"</li>
</ul>
</li>
<li>
<p><strong>Product Interest</strong> (Select type)</p>
<ul>
<li>Options: [Your specific products/services]</li>
<li>Instructions: "Determine which of our products or services they're most interested in"</li>
</ul>
</li>
<li>
<p><strong>Additional Notes</strong> (Text type)</p>
<ul>
<li>Optional</li>
<li>Instructions: "Capture any other relevant information shared during the conversation"</li>
</ul>
</li>
</ol>
<p>For each field, configure how it should be collected:</p>
<p><img decoding="async" loading="lazy" alt="Field Configuration Example" src="https://docs.serenitystar.ai/es/assets/images/field-config-07b9c3d3269fcf7d94d54dc539451d67.png" width="580" height="978" class="img_ev3q">
<img decoding="async" loading="lazy" alt="Field Configuration Example" src="https://docs.serenitystar.ai/es/assets/images/field-lists-a33dd4ed1e59c58dcc21b778c635e868.png" width="1019" height="842" class="img_ev3q"></p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-4-set-collection-instructions">Step 4: Set Collection Instructions<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#step-4-set-collection-instructions" class="hash-link" aria-label="Enlace directo al Step 4: Set Collection Instructions" title="Enlace directo al Step 4: Set Collection Instructions">​</a></h3>
<p>For a lead generation use case, it's usually best to select "After a Few Messages" as the collection timing. This allows the agent to build rapport before asking for information.</p>
<p><img decoding="async" loading="lazy" alt="Collection Timing" src="https://docs.serenitystar.ai/es/assets/images/collection-timing-f2d7809d96e3bda5f189930415cc826c.png" width="1015" height="360" class="img_ev3q"></p>
<p>For custom instructions, you might use:</p>
<p>"Engage in a natural conversation first. Ask about the visitor's challenges or needs. After establishing rapport, begin collecting lead information in a conversational way. Don't ask for all information at once - spread questions throughout the conversation."</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-5-test-your-lead-generation-agent">Step 5: Test Your Lead Generation Agent<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#step-5-test-your-lead-generation-agent" class="hash-link" aria-label="Enlace directo al Step 5: Test Your Lead Generation Agent" title="Enlace directo al Step 5: Test Your Lead Generation Agent">​</a></h3>
<p>Use the preview chat to test how your agent collects lead information. Pay attention to:</p>
<ul>
<li>How naturally the questions are integrated into the conversation</li>
<li>Whether the agent collects all required information</li>
<li>How the agent handles objections or hesitations</li>
</ul>
<p><img decoding="async" loading="lazy" alt="Testing Lead Form" src="https://docs.serenitystar.ai/es/assets/images/test-lead-form-c88b3d668a525db7ec98ca20b9f93c1b.png" width="1592" height="886" class="img_ev3q"></p>
<p>Make adjustments to your form fields and instructions based on the test results.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-6-deploy-your-lead-generation-agent">Step 6: Deploy Your Lead Generation Agent<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#step-6-deploy-your-lead-generation-agent" class="hash-link" aria-label="Enlace directo al Step 6: Deploy Your Lead Generation Agent" title="Enlace directo al Step 6: Deploy Your Lead Generation Agent">​</a></h3>
<p>Once you're satisfied with your lead generation agent, publish it to make it available for use. You can integrate it with your website, landing pages, or other digital channels.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="accessing-and-managing-lead-data">Accessing and Managing Lead Data<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#accessing-and-managing-lead-data" class="hash-link" aria-label="Enlace directo al Accessing and Managing Lead Data" title="Enlace directo al Accessing and Managing Lead Data">​</a></h2>
<p>After your agent has been collecting leads, you can access this valuable information from the agent card by clicking the "Forms" button.</p>
<p><img decoding="async" loading="lazy" alt="Access Forms Button" src="https://docs.serenitystar.ai/es/assets/images/access-forms-16b8579ceca813b1170b064dd129536b.png" width="1402" height="123" class="img_ev3q"></p>
<p>On the forms page, you'll see all the lead data organized in a grid format:</p>
<p><img decoding="async" loading="lazy" alt="Lead Data Grid" src="https://docs.serenitystar.ai/es/assets/images/lead-data-grid-2b1ed88dcf9fb81488f7597111d4aa68.png" width="1057" height="240" class="img_ev3q"></p>
<p>You can:</p>
<ul>
<li>Sort and filter leads</li>
<li>Export lead data to Excel for integration with your CRM</li>
<li>View different versions of your form to track performance over time</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="best-practices-for-conversational-lead-generation">Best Practices for Conversational Lead Generation<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#best-practices-for-conversational-lead-generation" class="hash-link" aria-label="Enlace directo al Best Practices for Conversational Lead Generation" title="Enlace directo al Best Practices for Conversational Lead Generation">​</a></h2>
<ol>
<li><strong>Start with Value</strong>: Have your agent provide helpful information before asking for contact details</li>
<li><strong>Be Transparent</strong>: Clearly communicate why you're collecting information and how it will be used</li>
<li><strong>Progressive Disclosure</strong>: Start with simple questions and gradually move to more detailed ones</li>
<li><strong>Offer Incentives</strong>: Consider offering something valuable in exchange for contact information</li>
<li><strong>Follow Up</strong>: Ensure leads are promptly followed up by your sales team</li>
<li><strong>Continuous Improvement</strong>: Regularly review conversations and adjust your form fields and agent instructions</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="https://docs.serenitystar.ai/es/blog/using-forms-to-collect-leads#conclusion" class="hash-link" aria-label="Enlace directo al Conclusion" title="Enlace directo al Conclusion">​</a></h2>
<p>Forms in AI Hub provide a powerful way to collect leads through conversational AI. By creating a natural, engaging experience, you can increase both the quantity and quality of leads while gathering rich contextual information that helps your sales team close more deals.</p>
<p>Ready to revolutionize your lead generation process? Start by creating your first lead collection agent today!</p>]]></content:encoded>
            <category>Forms</category>
            <category>Agents</category>
            <category>Lead Generation</category>
            <category>Conversational AI</category>
        </item>
        <item>
            <title><![CDATA[Using Serenity* Visual Studio Code Chat to Create Automated Tests]]></title>
            <link>https://docs.serenitystar.ai/es/blog/using-vschat-for-testing</link>
            <guid>https://docs.serenitystar.ai/es/blog/using-vschat-for-testing</guid>
            <pubDate>Mon, 14 Apr 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[In today's fast-paced development environment, automated testing is essential for ensuring software quality and efficiency. The Serenity\* VSCode Chat extension offers a powerful solution for developers looking to streamline their testing processes.]]></description>
            <content:encoded><![CDATA[<p>In today's fast-paced development environment, automated testing is essential for ensuring software quality and efficiency. The Serenity* VSCode Chat extension offers a powerful solution for developers looking to streamline their testing processes.</p>
<p>This blog post will guide you through the process of using the Serenity* VSCode Chat extension in Visual Studio Code to create automated test cases, enhancing both efficiency and effectiveness in your projects.</p>
<h1>Introduction to Serenity* VSCode Chat</h1>
<p>Serenity* VSCode Chat is a Visual Studio Code extension that brings AI assistance directly into your development environment. Configure custom AI agents with project-specific instructions and documentation, turning them into pair-programming companions that understand your project's context.</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-30527f8afa9fa8d0e85755b0a9f8ecf0.png" width="1600" height="717" class="img_ev3q"></p>
<p>The Serenity QA team uses this extension to facilitate E2E test development. The configured AI agent ensures tests follow our naming conventions and Arrange-Act-Assert pattern, adds meaningful comments, and suggests appropriate reusable components that were custom-built to use Selenium to interact with Serenity* Star.</p>
<p>By using the VSCode extension, the team has access to the agent and can quickly ask for help and iterate with the tests directly in VSCode.</p>
<h1>Successful use case</h1>
<p>By utilizing this tool, we were able to reduce the time spent on manual testing by over 50%. The team reported improved test coverage and faster feedback loops, which ultimately led to a more stable and reliable product release.</p>
<p>In a recent project, the Katalon Chrome extension was used to record the steps necessary for testing essential functions in our application. After recording the interactions, the scripts were exported in the programming language used by our development team. This script was then run through the Serenity* VSCode Chat extension, which refactored the code to reduce errors and align it with our coding standards. The result was a cleaner, more efficient test script that significantly improved our testing workflow.</p>
<p>Katalon export example, with languages available for exporting:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-1-aa69905b95dd791f7dff7be95d399c32.png" width="613" height="738" class="img_ev3q"></p>
<p>C# code block to be exported:</p>
<div class="language-csharp codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-csharp codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword" style="color:#00009f">using</span><span class="token plain"> </span><span class="token namespace" style="opacity:0.7">System</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">using</span><span class="token plain"> </span><span class="token namespace" style="opacity:0.7">System</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">Text</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">using</span><span class="token plain"> </span><span class="token namespace" style="opacity:0.7">System</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">Text</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">RegularExpressions</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">using</span><span class="token plain"> </span><span class="token namespace" style="opacity:0.7">System</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">Threading</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">using</span><span class="token plain"> </span><span class="token namespace" style="opacity:0.7">NUnit</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">Framework</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">using</span><span class="token plain"> </span><span class="token namespace" style="opacity:0.7">OpenQA</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">Selenium</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">using</span><span class="token plain"> </span><span class="token namespace" style="opacity:0.7">OpenQA</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">Selenium</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">Firefox</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">using</span><span class="token plain"> </span><span class="token namespace" style="opacity:0.7">OpenQA</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">Selenium</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">Support</span><span class="token namespace punctuation" style="opacity:0.7;color:#393A34">.</span><span class="token namespace" style="opacity:0.7">UI</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">namespace</span><span class="token plain"> </span><span class="token namespace" style="opacity:0.7">SeleniumTests</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">[</span><span class="token attribute class-name">TestFixture</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token keyword" style="color:#00009f">public</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">class</span><span class="token plain"> </span><span class="token class-name">CheckConditionPlugin</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#00009f">private</span><span class="token plain"> </span><span class="token class-name">IWebDriver</span><span class="token plain"> driver</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#00009f">private</span><span class="token plain"> </span><span class="token class-name">StringBuilder</span><span class="token plain"> verificationErrors</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#00009f">private</span><span class="token plain"> </span><span class="token class-name keyword" style="color:#00009f">string</span><span class="token plain"> baseURL</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#00009f">private</span><span class="token plain"> </span><span class="token class-name keyword" style="color:#00009f">bool</span><span class="token plain"> acceptNextAlert </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">true</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">[</span><span class="token attribute class-name">SetUp</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#00009f">public</span><span class="token plain"> </span><span class="token return-type class-name keyword" style="color:#00009f">void</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">SetupTest</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">new</span><span class="token plain"> </span><span class="token constructor-invocation class-name">FirefoxDriver</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            baseURL </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"https://www.google.com/"</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            verificationErrors </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">new</span><span class="token plain"> </span><span class="token constructor-invocation class-name">StringBuilder</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">[</span><span class="token attribute class-name">TearDown</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#00009f">public</span><span class="token plain"> </span><span class="token return-type class-name keyword" style="color:#00009f">void</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">TeardownTest</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token keyword" style="color:#00009f">try</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Quit</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token keyword" style="color:#00009f">catch</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token class-name">Exception</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token comment" style="color:#999988;font-style:italic">// Ignore errors if unable to close the browser</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            Assert</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">AreEqual</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">""</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> verificationErrors</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">ToString</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">[</span><span class="token attribute class-name">Test</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#00009f">public</span><span class="token plain"> </span><span class="token return-type class-name keyword" style="color:#00009f">void</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">TheCheckConditionPluginTest</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Navigate</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">GoToUrl</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"https://&lt;URL&gt;/MyAgents"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">XPath</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"//div[@id='my-agents-grid']/div/div[6]/div/div/div/div/table/tbody[2]/div/a/div"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Click</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Navigate</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">GoToUrl</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"https://&lt;URL&gt;/AssistantAgent/Edit/85B09A36-E17E-C359-3D4D-3A18738550EE"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">XPath</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"//a[@id='skills-tab']/span[2]"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Click</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Id</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"btn-add-plugin-empty"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Click</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">XPath</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"//div[@id='skills-grid']/div/div/div/a/div/p"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Click</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">XPath</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"//form[@id='default-plugin-configuration-form']/div/div[2]/ignite-input/div/input"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Click</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">XPath</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"//form[@id='default-plugin-configuration-form']/div/div[2]/ignite-input/div/input"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Clear</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">XPath</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"//form[@id='default-plugin-configuration-form']/div/div[2]/ignite-input/div/input"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">SendKeys</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"01"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">XPath</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"//div[@id='plugin-description-section']/div[2]/ignite-textarea-extension/div/textarea"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Clear</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">XPath</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"//div[@id='plugin-description-section']/div[2]/ignite-textarea-extension/div/textarea"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">SendKeys</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"evalua si el usuario dice hola"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">XPath</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"//div[@id='plugin-configuration-form']/div/div/div[3]/button[4]"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Click</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Id</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"btn-submit-assistant-agent"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Click</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">By</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">LinkText</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"Save Changes"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Click</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Navigate</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">GoToUrl</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"https://&lt;URL&gt;/AssistantAgent/Edit/85b09a36-e17e-c359-3d4d-3a18738550ee"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#00009f">private</span><span class="token plain"> </span><span class="token return-type class-name keyword" style="color:#00009f">bool</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">IsElementPresent</span><span class="token punctuation" style="color:#393A34">(</span><span class="token class-name">By</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">by</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token keyword" style="color:#00009f">try</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">FindElement</span><span class="token punctuation" style="color:#393A34">(</span><span class="token keyword" style="color:#00009f">by</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token keyword" style="color:#00009f">return</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">true</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token keyword" style="color:#00009f">catch</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token class-name">NoSuchElementException</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token keyword" style="color:#00009f">return</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">false</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#00009f">private</span><span class="token plain"> </span><span class="token return-type class-name keyword" style="color:#00009f">bool</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">IsAlertPresent</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token keyword" style="color:#00009f">try</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">SwitchTo</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Alert</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token keyword" style="color:#00009f">return</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">true</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token keyword" style="color:#00009f">catch</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token class-name">NoAlertPresentException</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token keyword" style="color:#00009f">return</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">false</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#00009f">private</span><span class="token plain"> </span><span class="token return-type class-name keyword" style="color:#00009f">string</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">CloseAlertAndGetItsText</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token keyword" style="color:#00009f">try</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token class-name">IAlert</span><span class="token plain"> alert </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> driver</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">SwitchTo</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Alert</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token class-name keyword" style="color:#00009f">string</span><span class="token plain"> alertText </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> alert</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">Text</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token keyword" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">acceptNextAlert</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                    alert</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Accept</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">else</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                    alert</span><span class="token punctuation" style="color:#393A34">.</span><span class="token function" style="color:#d73a49">Dismiss</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                </span><span class="token keyword" style="color:#00009f">return</span><span class="token plain"> alertText</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">finally</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                acceptNextAlert </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">true</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>The script is then run though our VSCode extension:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-2-401b3f5a86b0988550440555aa4db772.png" width="1600" height="682" class="img_ev3q"></p>
<p>Code scripts can be iterated to completion using VSCode Chat extension, that can solve issues and propose solutions:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-3-6aa3643ee573c1055bdf8efeab2da182.png" width="546" height="748" class="img_ev3q"></p>
<p>Examples of successful tests after iterating with VSCode Chat:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-4-02a86584560519871b5004bc85999c2b.png" width="1560" height="813" class="img_ev3q"></p>
<h1>Configuring Serenity* VSCode Chat and Katalon</h1>
<p>To get started with this powerful combination, follow these steps:</p>
<ol>
<li>
<p>Install Visual Studio Code: If you haven't already, download and install <a href="https://code.visualstudio.com/" target="_blank" rel="noopener noreferrer">Visual Studio Code</a>.</p>
</li>
<li>
<p>Install the Serenity* VSCode Chat Extension:</p>
<ol>
<li>Open Visual Studio Code.</li>
<li>Click on the Extensions icon in the Activity Bar.</li>
<li>Search for Serenity* VSCode Chat and click Install.</li>
</ol>
</li>
<li>
<p>Install Katalon Extension for Chrome:</p>
<ol>
<li>Open Google Chrome and navigate to the <a href="https://chrome.google.com/webstore" target="_blank" rel="noopener noreferrer">Chrome Web Store</a>.</li>
<li>Search for Katalon and click Add to Chrome.</li>
</ol>
</li>
<li>
<p>Set Up Your Project:</p>
<ol>
<li>Create a new project or open an existing one in Visual Studio Code.</li>
<li>Ensure that your project is configured to use the Serenity* Star framework.</li>
</ol>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="creating-and-executing-automated-tests">Creating and Executing Automated Tests<a href="https://docs.serenitystar.ai/es/blog/using-vschat-for-testing#creating-and-executing-automated-tests" class="hash-link" aria-label="Enlace directo al Creating and Executing Automated Tests" title="Enlace directo al Creating and Executing Automated Tests">​</a></h2>
<p>Now that you have both tools set up, let's create and execute automated tests:</p>
<ol>
<li>
<p>Record Your Test Steps:</p>
<ol>
<li>Open the Katalon extension in Chrome.</li>
<li>Click on Record and perform the actions you want to test.</li>
<li>Once finished, click Stop Recording.</li>
</ol>
</li>
<li>
<p>Export the Test Script:</p>
<ol>
<li>Click on the Export button and choose the appropriate programming language for your development team.</li>
</ol>
</li>
<li>
<p>Refactor the Script with Serenity* VSCode Chat:</p>
<ol>
<li>Copy and paste the export script in the integrated chat and ask the agent to refactor it.</li>
</ol>
</li>
<li>
<p>Run Your Tests:</p>
<ol>
<li>Make sure you have the following extension installed:
<img decoding="async" loading="lazy" alt="image.png" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAa8AAABkCAIAAAC+USiVAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAB0vSURBVHhe7Z0LWBNX2scnJICBcL8EhVDAS6V4xVvFtlBcXa1VttrWba2r3Va0YFetbMVbtTexXR4vVVy1n1tdtJ/aomut9mKDVvhQwFIRKQsqUAMKcidACJfwvWfm5EoCASVV+/6ePHHmzJkzZybmz/89M3kPz8vLizEPNze3qqoqutKH8GwEToM9Xurv+ITQ2tOKx1d1tCta79yuS7lWebilrY5hOmjFvsNjp1/snzysyWLDTx/nHfiP7csnhj3uYcVuJLTeLIj/c93tm3TVe2ZM1OM1/1l7yGbx+j/Ij8YVjF0fdmd3/E+jY6KH5ifEn7ylrrDv+pTlMU/c+d8Nn18l+w3w9rg1YNaHf3K5uCv+ZCnDiKfH/O3xW+qt/Z5cvH5a2/G1X4milk/pX1OYfu7MD5duNjMj53/4osu5+E/O1JBaAc+tfW1gdkL818zMmOhH/wsLt0jLz8ZET6w5vnbfJVIHQZDu0X7B7xs6Wtpqf7m9O60o5kJRTMav78A7LP9StgfKLSGFQEVOk4Iuisa8HfyPs3pSCChkzRop1KH5wsVc5tGxc8cEVGVfBHXrjI1AwLQpmunardIKuqRFu5Wgam1lKs7tfn/Pf/Jb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jjisyMK9ySLuqtGvL2x20+lFzcKnli3rqVC9mJAhlVSx37L0erqg9vVSPI74Q+V0MABNHe3tHZ2cPVVWyZFxzL3t7BHE9qFrZmt6M4m1/CSHzFVddTc2mRPlnXbisEj06JmjZS7BU0Zd5zI2g5R1a2rAG2Rk72dXAMmvLicLfWm9fSoFxRnnZ87/bjv9RbuXkNYtKul7Z6jF345xFezuKQVx4PsJUXXjZUVVl9E/hyxyE9HtlAkN8tllDDB5DSwlvyVmUbeeneAVKxJcq2+ltFxqdWZxQns4pamar87wzmKdeQ+uneM0WM/8zI2PVLnpYIDAxm1mf7YOvg2avei4t6pn/DxaOfnChjnonZQWbbiF/wGHPjzJHjTFnSnuNZVe6TXl3/Yey8UYLCb/71aScfWnYhR6Z0G7dsU+xztARBkK7p83vKDzzkd8phElv9R2oQBHno6PN7yg88tfmpBXw/n5asxP85jlKIIA8v6A0RBEEIOG6IIAhCQDVEEAQhoBoiCIIQUA0RBEEIqIYIgiAEVEMEQRACqiGCIAgB1RBBEISAaoggCEJANUQQBCGgGiIIghB69jvlqqoquoIgCPJwgd4QQRCEgGqIIAhCQDVEEAQhoBoiCIIQUA0RBEEIqIYIgiAMwzD/D5kpqqpm4TgRAAAAAElFTkSuQmCC" width="431" height="100" class="img_ev3q"></li>
<li>After building your project, run your tests with the play button on each test.</li>
<li>Review the output for test results and any errors that may have occurred.</li>
</ol>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-to-configure-your-agent-and-associate-it-with-serenity-star-chat">How to Configure your Agent and Associate it with Serenity Star Chat<a href="https://docs.serenitystar.ai/es/blog/using-vschat-for-testing#how-to-configure-your-agent-and-associate-it-with-serenity-star-chat" class="hash-link" aria-label="Enlace directo al How to Configure your Agent and Associate it with Serenity Star Chat" title="Enlace directo al How to Configure your Agent and Associate it with Serenity Star Chat">​</a></h2>
<p>First we need to create an AI Agent in Serenity* AI Hub:</p>
<ol>
<li>
<p>Get a Free Serenity* Star Account and Login</p>
</li>
<li>
<p>Click on “AI Agents”</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-5-1b9a10b30e31f7b17fff91313a1890a9.png" width="1299" height="508" class="img_ev3q"></p>
</li>
<li>
<p>Click over the “New Agent” button</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-6-70089ff1539aafa165382c450387168a.png" width="992" height="193" class="img_ev3q"></p>
</li>
<li>
<p>Search for the VSCode agent template</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-7-51db8d53578f50e539db4ff2e03eb22c.png" width="1157" height="438" class="img_ev3q"></p>
</li>
<li>
<p>Adjust anything you need and click on the "Create" button at the bottom-right corner of your screen.</p>
</li>
</ol>
<blockquote>
<p>💡 Tip: You can freely adjust your agent’s personality, knowledge, and skills. Keep in mind, AI Agents perform best when provided with rich and relevant context.</p>
</blockquote>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="getting-your-api-key">Getting your API Key<a href="https://docs.serenitystar.ai/es/blog/using-vschat-for-testing#getting-your-api-key" class="hash-link" aria-label="Enlace directo al Getting your API Key" title="Enlace directo al Getting your API Key">​</a></h3>
<ol>
<li>
<p>Now that the agent is created, from the AI Agents grid, click over the new agent’s card to go to the Agent Designer view.</p>
</li>
<li>
<p>Once in the Designer for the Coding expert agent, click on the Code Snippets button at the top-right of your screen.</p>
</li>
<li>
<p>You can get your API Key from the CURL snippet:</p>
<p><img decoding="async" loading="lazy" alt="Api Key" src="https://docs.serenitystar.ai/es/assets/images/image-8-74fa6eb44e2bec6c00d4653e258f7567.png" width="1239" height="619" class="img_ev3q"></p>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="setting-up-the-vscode-extension">Setting up the VSCode extension<a href="https://docs.serenitystar.ai/es/blog/using-vschat-for-testing#setting-up-the-vscode-extension" class="hash-link" aria-label="Enlace directo al Setting up the VSCode extension" title="Enlace directo al Setting up the VSCode extension">​</a></h2>
<ol>
<li>
<p>Go to VSCode</p>
</li>
<li>
<p>Install the Serenity* VSCode extension</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-9-d133906d00cf649beb18a9314a30fec9.png" width="1276" height="313" class="img_ev3q"></p>
</li>
<li>
<p>Open the Serenity* Chat View and click on the Setup Serenity button.</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAxMAAAJWCAYAAAAjuNo7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACUlSURBVHhe7d0JmJ1VffjxExJIQhYCZCeYsIU1BDIBJBQBUVQMi2trwYqFikttraX+26oFbPv0qUWrXbQgFrQodcEFEFd2BcGwNbIvAYEsQEiYhCQTEvK/v3feSybJZPslmcyEz6fP7bzzzp07c8M87f3ec857erW0tKwoW9CFF15YGj+jXHTRRdVtc5k2bVr18fzzzy9XXXVVdbwltLYuqI8AAKB7a2tbUh91je3qjwAAABtFTAAAACliAgAASBETAABASpctwJ45c2aZNWtWfXbTxWMGC7ABAKBdVy/A7rKY2FLEBAAAtNvmYqKnExMAAPQULg0LAAD0CGICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApvVY01Mdl8uTJ9RFNra0L6iMAAOje2tqW1Eddw8gEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABASq8VDfVxmTx5cn3UvYwePbqMGjXqlY933HFHdesKra0L6iMAAOje2tqW1Eddo9vGRITD1KlTy6mnnlqGDx9enVu6dGnp3bt3ueaaa8r5559fndvSxAQAAD1FV8dEt5vmFBFxySWXlCuvvLKceeaZr4RE2GGHHaqYA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dsGMTu4iIjpvYjXrk6tKrrKgWWDc3nduYoAjNdRMRF5+5bmb1mAAAwObTa0VDfVwmT55cH21+cfWmUaNGVZvXbYjnxhxdnjjw9CoI4ipNIcIgFluv63KxMbUpwqO5APu4ix8qM67+chn61M3V5xurtXX9l6YFAIDuoK1tSX3UNbosJjJm73lieXqfU6owuP7MfV8JhIiJCItYVF2NXAzpW131KRZrN9dXNMPj4Z9dVkY+dk11LkNMAADQU4iJ1cQIxe8OPK2M3blved+hu1aXfl2fWCMRU5tec+830iMSTWICAICeQkx0YsmOI8qsvaeW50cdXo1OxOjDMY1b8zhGIS6987nqvrHOIhZbxxqJzbHgWkwAANBTiIl1iKiYP7KlLNhlfFk8cHRZ1ndwdT52to4N6WIfibj86+aIiCYxAQBATyEmuhkxAQBAT9HVMdGtNq0DAAB6DjEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgpVdLS8uK+phOtLYuqI8AAKB7a2tbUh91DSMTAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgpVdLS8uK+phOtLYuqI8A1u3FMYeXJcP2L8sHDi0revWuz8LG67Vieem98LnS79n7y4Cnbq/PAqxfW9uS+qhriIn1EBPA+izvN6TM3/+UsmzQiPoMbD59FswpQ+7/Yem9ZH59Bm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QEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIKVXS0vLivqYTrS2LqiPAACgexszZrf6qGuIifUQEwAA9BRtbUvqo65hmhMAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgJReLS0tK+pjOtHauqA+AgCA7m3QoIH1UdcwMgEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAADwqtC/jD9gfON/b4z+ZeLkiWv9HjEBAACvAru+/ePlox/6UPmzd25oUPQvR77vE+WM951WPvTGXetzqxITAADwKjD3e/9WvnPfojLmmA0JivaQePfkIWX+tO+XL/98bn1+Vb1Hjx59Xn1MJ9raltZHAADQvfXtu0N91Jml5YlpvykvjjuiHHnYlLL/gBnlzvvmlmX1V1fqGBLfLp/92q1lcf2V1YmJ9RATAAD0FOuOiRBBcWuZv/uR5ajDOwuK/mXiez5eTjtil/WGRBAT6yEmAADoKdYfE2FZeeqOzoKiPSTOmDJ0g0IiiIn1EBMAAPQUGxYToQ6K3RpBcUQExZNl3gF/VM48enh57pZLywWXTVtvSIReLS0tK+pjOtHauqA+AgCA7m3QoIH10YbqX44861PlDycObhwvK7MbIfH5y+/ZoJAIYmI9xAQAAD3FxsdE6F8mvnFqGV8eKlf/fMNDIoiJ9RATAAD0FLmYyLPPBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgJReLS0tK+pjOtHauqA+AgCA7q2tbUl91DWMTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQIqYAAAAUsQEAACQIiYAAIAUMQEAAKSICQAAIEVMAAAAKWICAABIERMAAECKmAAAAFLEBAAAkCImAACAFDEBAACkiAkAACBFTAAAACliAgAASBETAABAipgAAABSxAQAAJAiJgAAgBQxAQAApIgJAAAgRUwAAAApYgIAAEgREwAAQEIp/x80/6xpD9sFzAAAAABJRU5ErkJggg==" width="787" height="598" class="img_ev3q"></p>
</li>
<li>
<p>This will guide you through a short process to setup your API Key and default agent.</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA5cAAAB/CAYAAAB7ajaXAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACOXSURBVHhe7d0HmJxVvfjxk2wKIRBCqCGEHpAOIsUECMUCelEpCoiAAqLSrvLnT7Gh3gsiwqUoygUEBAEponSko4CC9N5BWqihhJBG4M737JzNu+++M/v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UVORK5CYII=" width="919" height="127" class="img_ev3q"></p>
</li>
<li>
<p>Once done, you can start chatting with your Agent from the Serenity* Chat View:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-12-0225e81b7643e02acd37ef5cf4779019.png" width="1600" height="1076" class="img_ev3q"></p>
</li>
</ol>
<h1>Tips and Best Practices</h1>
<p>By integrating the Serenity* VSCode Chat extension, you can significantly enhance your automated testing process. This extension allows for efficient test creation, refactoring, and execution, ultimately leading to higher quality software and faster release cycles. Embrace these tools to streamline your development workflow and improve your testing outcomes!</p>
<p>For more information on using the Serenity* VSCode Chat extension, visit the <a href="https://docs.serenitystar.ai/docs/integrations/vscode-chat/" target="_blank" rel="noopener noreferrer">Serenity* VS Code Documentation</a>.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Giving an AI Agent access to your emails]]></title>
            <link>https://docs.serenitystar.ai/es/blog/how-to-give-your-agent-access-to-your-emails</link>
            <guid>https://docs.serenitystar.ai/es/blog/how-to-give-your-agent-access-to-your-emails</guid>
            <pubDate>Thu, 03 Apr 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[We want to provide an agent with the capability of accessing our Microsoft account to help us process our emails. We will take advantage of the Http request skill, and configure the OAuth authentication to use Microsoft Graph APIs. We will be configuring both the access in Microsoft Entra and the agent in Serenity* Star.]]></description>
            <content:encoded><![CDATA[<p>We want to provide an agent with the capability of accessing our Microsoft account to help us process our emails. We will take advantage of the Http request skill, and configure the OAuth authentication to use Microsoft Graph APIs. We will be configuring both the access in Microsoft Entra and the agent in Serenity* Star.</p>
<p>Follow this steps to configure the OAuth authentication method.</p>
<ol>
<li>
<p>We need to start by having an application registered in Microsoft. To do this, in the <a href="https://entra.microsoft.com/#home" target="_blank" rel="noopener noreferrer">Microsoft Entra</a> page, we will access the App registration section:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-8d954b7281a989c3a119f2b0b3b01499.png" width="643" height="941" class="img_ev3q"></p>
</li>
<li>
<p>And click on New registration:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-1-1ae7a8befda67275c865bc1a0aae2ce6.png" width="370" height="185" class="img_ev3q"></p>
<blockquote>
<p>It is important to add <a href="https://hub.serenitystar.ai/OAuth2Connection/AuthorizationCallback" target="_blank" rel="noopener noreferrer"><code>https://hub.serenitystar.ai/OAuth2Connection/AuthorizationCallback</code></a> as a Redirect Uri to give the required permissions for the authentication.</p>
</blockquote>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-2-d12b453aa7bdff9ccf9e653c05640f16.png" width="932" height="714" class="img_ev3q"></p>
</li>
<li>
<p>On Serenity* Star, we add a new HTTP request skill, and start configuring our integration. We will choose OAuth2 as authentication type and click on Create New to define it:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-3-532e3e3637c31a875a78d99b306bb065.png" width="949" height="186" class="img_ev3q"></p>
<p>You will see something like this, and we will go step by step through each of the fields:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-4-453116f729b2091f5ff366648e03752a.png" width="967" height="938" class="img_ev3q"></p>
<ul>
<li>
<p>Name: it is for using this configuration within the AI Hub.</p>
</li>
<li>
<p>Auth URL and Token URL: we will obtain it from Microsoft Entra. On your app registration, you can access the Endpoints list:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-5-efb42f8b53a7af5add64d25c7298ac92.png" width="961" height="355" class="img_ev3q"></p>
<p>In particular, we need the OAuth 2.0 authorization endpoint (v2) and the OAuth 2.0 token endpoint (v2)</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-6-dd378a752d9ce008306434c7dc1731d8.png" width="1112" height="822" class="img_ev3q"></p>
</li>
<li>
<p>Client Id: We obtain it directly from the app registration definition:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-7-57ac59f15186cd85f4efb57ec15b726e.png" width="842" height="384" class="img_ev3q"></p>
</li>
<li>
<p>Client Secret: we will create a new secret from Microsoft Entra and link it on Serenity* Star:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-8-0bd87bbe1c693a2aa6398cc3d07900a8.png" width="1642" height="903" class="img_ev3q"></p>
<blockquote>
<p>Be aware that the expiration defined here will impact the actions that can be performed by the agent.</p>
</blockquote>
</li>
<li>
<p>Scope: this will define which endpoints can be accessed with this authentication. The definition in Serenity* Star has to match the permissions that were given to this application in Microsoft Entra. To do this, we go to the API permissions section:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-9-6b286ab1efbd0e0da73b9838117a4cc0.png" width="1643" height="761" class="img_ev3q"></p>
<p>In this case, I want to use Microsoft Graph API, but from here it will depend on the implementation.</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-10-27b5be7c914400586f866d35fc52ee09.png" width="846" height="907" class="img_ev3q"></p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-11-c754b3384b1fa10a2a027020a79159fa.png" width="847" height="304" class="img_ev3q"></p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-12-910a837ec5bfac45b9ad903d41696abf.png" width="811" height="454" class="img_ev3q"></p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-13-3f6fbda730b0c0da920fda3112b9652d.png" width="1007" height="459" class="img_ev3q"></p>
<p>In the Scope configuration in the AI Hub, we need to add all of this permissions separated by a white space.</p>
<blockquote>
<p>Important: apart from the scope you want to enable, always add “<strong>offline_access</strong>” to your scope to enable the authentication.</p>
</blockquote>
</li>
</ul>
</li>
<li>
<p>Now you are ready to test the connection. You should see a new tab opened, and if everything was configured correctly, it will have a message like this one:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-14-e6a74de4fec88a1f39837574b682ef4d.png" width="998" height="319" class="img_ev3q"></p>
</li>
<li>
<p>Now we can finish configuring the Http request skill, to access our emails.</p>
<p>In the Microsoft Graph documentation, you can see all of the different endpoints that are available. In particular, we will configure our skill to read our mailbox, and we will use this endpoint:</p>
<p><a href="https://learn.microsoft.com/en-us/graph/api/user-list-messages?view=graph-rest-1.0&amp;tabs=http" target="_blank" rel="noopener noreferrer">https://learn.microsoft.com/en-us/graph/api/user-list-messages?view=graph-rest-1.0&amp;tabs=http</a></p>
<p>The parameters of the endpoint can be fully configured following this documentation: <a href="https://learn.microsoft.com/en-us/graph/query-parameters?tabs=http" target="_blank" rel="noopener noreferrer">https://learn.microsoft.com/en-us/graph/query-parameters?tabs=http</a></p>
<p>The following configuration for example, retrieves the sender and subject of 50 emails received since a variable date. The agent will decide the correct date based on the parameters.</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-15-13beccac2ba6fae201cd875a9c86d7f5.png" width="962" height="931" class="img_ev3q"></p>
<blockquote>
<p><strong>TIP:</strong> we recommend testing the requests from the Graph Explorer tool <a href="https://developer.microsoft.com/en-us/graph/graph-explorer?request=me%2Fmessages&amp;version=v1.0" target="_blank" rel="noopener noreferrer">https://developer.microsoft.com/en-us/graph/graph-explorer?request=me%2Fmessages&amp;version=v1.0</a></p>
</blockquote>
</li>
<li>
<p>We will use a basic prompt, but ensure to (with the help of liquid) let the agent know what day it is today.</p>
<div class="language-markdown codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-markdown codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">Help the user process his emails.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">You only have access to the sender and subject of those emails.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Take into account that today is {{ "now" | date: "%Y-%m-%d %H:%M" }}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
</li>
<li>
<p>We can try it out with a simple request:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-16-90e75d6f88696d80f85f8647a999df8d.png" width="1021" height="333" class="img_ev3q"></p>
</li>
</ol>
<p>And see the execution of the tool:</p>
<p><img decoding="async" loading="lazy" alt="image.png" src="https://docs.serenitystar.ai/es/assets/images/image-17-2b101cc74ebc221e6a879f3b4430ea62.png" width="950" height="924" class="img_ev3q"></p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create an AI Agent with Alibaba Cloud]]></title>
            <link>https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-alibaba</link>
            <guid>https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-alibaba</guid>
            <pubDate>Mon, 17 Mar 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Serenity\* AI Hub provides easy access to a variety of Large Language Models (LLM) powering your AI Agents. The LLM can be thought of as the brain powering your agent.]]></description>
            <content:encoded><![CDATA[<p>Serenity* AI Hub provides easy access to a variety of Large Language Models (LLM) powering your AI Agents. The LLM can be thought of as the brain powering your agent.<br>
<!-- -->In this article, you will learn how to integrate models though <strong>Alibaba Cloud</strong> to power your AI solutions.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="introduction">Introduction<a href="https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-alibaba#introduction" class="hash-link" aria-label="Enlace directo al Introduction" title="Enlace directo al Introduction">​</a></h2>
<p><strong>Qwen</strong> is a family of foundational models by <strong>Alibaba</strong>, available in a variety of sizes, use cases and techologies, designed for fast usage and scaling</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-5-6c8361bbbf2ec5279c67806c2d5e7f1c.png" width="1213" height="175" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="creating-an-agent">Creating an agent<a href="https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-alibaba#creating-an-agent" class="hash-link" aria-label="Enlace directo al Creating an agent" title="Enlace directo al Creating an agent">​</a></h2>
<ol>
<li>Register for free on <a href="https://hub.serenitystar.ai/" target="_blank" rel="noopener noreferrer">Serenity* AI Hub</a>.</li>
<li>On the home screen, use the integrated chat with <strong>Serena</strong> to create a new agent.</li>
<li>Once <strong>Serena</strong> correctly identifies the use case for the agent, you will be taken to the Agent Designer, where you can fully customize your agent.</li>
</ol>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-6-8903b82e9343cd3d421b6d99aed123b6.png" width="1458" height="319" class="img_ev3q">
<img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-2-46c59825be7dd70023c99d3c91063cad.png" width="1329" height="723" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="selecting-alibaba-qwen-models">Selecting Alibaba Qwen Models<a href="https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-alibaba#selecting-alibaba-qwen-models" class="hash-link" aria-label="Enlace directo al Selecting Alibaba Qwen Models" title="Enlace directo al Selecting Alibaba Qwen Models">​</a></h2>
<p>In the Agent Designer, go to the <strong>Model</strong> tab. From the model dropdown, you can easily select Alibaba Qwen Models. Once the selected model is chosen, the agent is ready to be used and evaluated. Changing between different <strong>Qwen</strong> models is as easy as selecting the appropriate model from the dropdown menu.</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-7-1009e016c8aa5e68f1f2059b275ef115.png" width="690" height="172" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="integrating-with-your-client-application">Integrating with your client application<a href="https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-alibaba#integrating-with-your-client-application" class="hash-link" aria-label="Enlace directo al Integrating with your client application" title="Enlace directo al Integrating with your client application">​</a></h2>
<p>Exporting your agent and integrating it with your application is as simple as executing an HTTP request to AI Hub. For a quick example, click on <strong>Code Snippets</strong> in the top right corner, and a sample CURL command will be generated to execute the agent. You can easily integrate this CURL command with your system and start enhancing your applications.</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-3-cf7222be0417038f45a4145d8993c18b.png" width="950" height="400" class="img_ev3q">
<img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-4-9fede9e0294f263fbad1f42cf91e2c93.png" width="975" height="520" class="img_ev3q"></p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrate AI Agents in Zapier]]></title>
            <link>https://docs.serenitystar.ai/es/blog/how-to-integrate-zapier</link>
            <guid>https://docs.serenitystar.ai/es/blog/how-to-integrate-zapier</guid>
            <pubDate>Fri, 14 Mar 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Integrating Serenity\* AI Hub Agents with Zapier is a straightforward way to automate tasks and trigger Agent actions through a wide range of options and workflows. This guide will walk you through the simple steps to configure your Agents in your Zaps!]]></description>
            <content:encoded><![CDATA[<p>Integrating Serenity* AI Hub Agents with Zapier is a straightforward way to automate tasks and trigger Agent actions through a wide range of options and workflows. This guide will walk you through the simple steps to configure your Agents in your Zaps!</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="steps">Steps<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-zapier#steps" class="hash-link" aria-label="Enlace directo al Steps" title="Enlace directo al Steps">​</a></h2>
<ol>
<li>
<p><a href="https://hub.serenitystar.ai/" target="_blank" rel="noopener noreferrer">Sign up for free</a> to create your first AI agent and get your API key.</p>
</li>
<li>
<p><a href="https://zapier.com/" target="_blank" rel="noopener noreferrer">Log in to Zapier</a> to create or edit an existing Zap.</p>
</li>
<li>
<p>Create a new step in your workflow and search for the Serenity* Star connector.
<img decoding="async" loading="lazy" alt="Select Serenity* Star Connector" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnoAAACfCAYAAABuvHQUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACXKSURBVHhe7d13fFX1/cfx1125GZCQRCAgiMgeggxZIggOhoO6Z9Vq1eLP1Yp7UEe12modKCLWXa12qFURRQOyt8g2gIBhQwgJGXee+/sjyTU55J4TSIDk+n4+HnmUfN/fexPSPr759Jx73zju+N1NEUREREQk7jjNCyIiIiISHzToiYiIiMQpDXoiIiIicUqDnoiIiEic0qAnIiIiEqc06ImIiIjEKQ16IiIiInFKg56IiIhInNKgJyIiIhKnNOiJiIiIxCkNeiIiIiJxSoOeiIiISJzSoCciIiISpzToiYiIiMQpx3WXXxIxL4qIiIhIw+e47cYbIgDhcIhQKITXm2jeA9E8iNebZI4ACBshQsHYuWGECQYD1nkggDcxVm4QCPhITEw2RwBEIgZ+v03u85GYFCuP4POVkJSUYo6gJjkRfKU2eUkxScmNzFFUSUkRyYczL95Pckpj83JUcfF+Ug5jbvf1S4qLSE6x+P7t/n42eWlJEYnJKThwmCMASkuLSUxKts4Tk3E4qs99pcV4LfMSvIm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558nP4DB5i318igwYPp2+9k3nnzLR6+7wEKy+tf0jMyGH3uOezYvoM+ffvQpu3x5ofaikQi0b68EaNHVvl/HskpKZw2fBiFBQVkf/1NlcfVRuvjWvPkM38hMTGRl55/kQ/ee59bf387CaZL6C1bHcsVV/+ae/5wF3998imOPbYlf3vpRTKPyayyT0REpCFx3HbjDbFfGVgPPD9xgnnpsAmFoajYYNNOJz9tc7G/2EGiJ0K/7mFatQCIVPvPi9SU3++nYF8BjRqlkJySYo6h/FZuaamPJulNom+6qInCggLChkGTJk2qvXR7sEpKSkjweKq8puC9t9/hgbvv44VXXuLcX42psj9ehIJBioqKSKujn6OIiPwy3T72FvPSUaErepXMWABfzExgZU4CBcVOUtMiDOpTNuQ5yl9HWBter5dmzZvFHPIov7KVeUzmQQ15AKlpaaSnp9fZcJKcnBwd8lavXMU9vx/Hc399lo6dOjJo8GDz9rjh9nhoUoc/RxERkaNJg15lEUj0QuumIQb3DDLi5BAtMqzeA/PLMGfWbD7/9DPaHH88z098SbczRUREGojorVvDMDDCIdye6jvIDMMgHA7hOUx5JGIQCh2YH8lbtyIiIiJ1wXzrNhjw4/Z4YjaMBAKB8gqV6vNgMIDL5cZZTc0aFnmVehXzOxErq1Hussid1jk2jxcRERFpqFxuD1bv6HS73Za5y1V9T14FV1306Dnt8hhTJuWvb6tNLiIiItJQOZ1Oy9f61yivZpCrEKuHT5OViIiISJzSoCciIiISpzToiYiIiMQpDXoiIiIicUqDnoiIiEicig56hhEmFApWTSsxDINQMGBejqpJHrTIIxHrXERERKShCgYDRCKGeTmqJrlhlxsH5pXqVZyW/+yWw+HAadFzV5PcuifPLhcRERFpmFwu+548u9yqfiVWz97B9ehZ9Nwd7lxERESkoapRT55dXs0gVyFWrslKREREJE5p0BMRERGJUxr0REREROKUBj0RERGROKVBT0RERCROVerRM+x79Oxyix48w6YnTz16IiIiEq/KevIi5uWo2vbohex79Bw4nTY9ena5RQ+ew7Ynzy4XERERaZisuoqpUY+ey7p+pSY9elY9dkc7FxEREWmonE5XtYNYBfsevRo8vppck5WIiIhInNKgJyIiIhKnNOiJiIiIxCkNeiIiIiJxSoOeiIiISJyq2x49qzxinUciBqGQevREREQk/tS2Ry8UssuDR6BHz6IexYH147HNRURERBom+x49F9jUq1jnNvUqtoNajfLYf4naPl5ERESkobLvwTs8eezJS0REREQaNA16IiIiInFKg56IiIhInNKgJyIiIhKn/h8pD7KRR5vThgAAAABJRU5ErkJggg==" width="634" height="159" class="img_ev3q"></p>
</li>
<li>
<p>Sign in to Serenity* AI Hub by creating a new connection in Zapier.
<img decoding="async" loading="lazy" alt="Create a new Connection" src="https://docs.serenitystar.ai/es/assets/images/zapier-sign-in-cdbb303c683fee1d8bb74b4e1bbd67d2.png" width="416" height="755" class="img_ev3q"></p>
</li>
<li>
<p>Insert your Serenity* AI Hub API key credentials.
<img decoding="async" loading="lazy" alt="Entering credentials" src="https://docs.serenitystar.ai/es/assets/images/zapier-hub-key-2edb77f33e2ede003e4e334a2323fff7.png" width="669" height="487" class="img_ev3q"></p>
</li>
<li>
<p>Select the event you want to execute in this step.</p>
</li>
<li>
<p>Complete the mandatory parameters and automate your workflow!
<img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/zapier-events-15e98b6b63f3263f059067565acf9daa.png" width="373" height="297" class="img_ev3q"></p>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="available-events">Available Events<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-zapier#available-events" class="hash-link" aria-label="Enlace directo al Available Events" title="Enlace directo al Available Events">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="execute-activity-agent">Execute Activity Agent<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-zapier#execute-activity-agent" class="hash-link" aria-label="Enlace directo al Execute Activity Agent" title="Enlace directo al Execute Activity Agent">​</a></h3>
<p>A simplified event that executes any activity agent from a list of your available agents on AI Hub.</p>
<ul>
<li><strong>Agent Code (required):</strong> Select from the provided list the Activity Agent you want to execute.</li>
<li><strong>Input Parameters:</strong> The parameters defined in the Parameters tab on the Agent Designer allow you to configure agent behavior and functionality. For more details on how to define and use parameters, refer to the <a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/input-parameters/">Serenity Input Parameters Guide</a>. Be sure to provide values for all required parameters.</li>
<li><strong>Agent Version:</strong> The specific version of the agent to be executed. If no value is specified, the published version will be used.</li>
</ul>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/zapier-activity-agent-7437685acbe04f3f6887228ea948c5a3.png" width="765" height="474" class="img_ev3q"></p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="create-assistant-conversation">Create Assistant Conversation<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-zapier#create-assistant-conversation" class="hash-link" aria-label="Enlace directo al Create Assistant Conversation" title="Enlace directo al Create Assistant Conversation">​</a></h3>
<p>This event is used for starting a new conversation with a given Assistant Agent. It returns the necessary <code>chatId</code> for sending messages in a conversation.</p>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="configuring-parameters">Configuring parameters:<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-zapier#configuring-parameters" class="hash-link" aria-label="Enlace directo al Configuring parameters:" title="Enlace directo al Configuring parameters:">​</a></h4>
<ul>
<li><strong>Agent Code (required):</strong> Select from the provided list the Assistant Agent you want to start the conversation with.</li>
<li><strong>Input Parameters:</strong> The parameters defined in the Parameters tab on the Agent Designer allow you to configure agent behavior and functionality. For more details on how to define and use parameters, refer to the <a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/input-parameters/">Serenity Input Parameters Guide</a>. Be sure to provide values for all required parameters.</li>
<li><strong>Agent Version:</strong> The specific version of the agent to be executed. If no value is specified, the published version will be used.</li>
<li><strong>User Identifier:</strong> An optional identifier used to associate the conversation with a specific user in Serenity* AI Hub.</li>
</ul>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/zapier-create-conversation-420f37b479423e5e6c90e6f2b08c31b6.png" width="790" height="757" class="img_ev3q"></p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="execute-assistant-conversation">Execute Assistant Conversation<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-zapier#execute-assistant-conversation" class="hash-link" aria-label="Enlace directo al Execute Assistant Conversation" title="Enlace directo al Execute Assistant Conversation">​</a></h3>
<p>This event is used to send messages to the selected agent through a given chat instance. Use this event to send and receive messages with the agent.</p>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="configuring-parameters-1">Configuring parameters:<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-zapier#configuring-parameters-1" class="hash-link" aria-label="Enlace directo al Configuring parameters:" title="Enlace directo al Configuring parameters:">​</a></h4>
<ul>
<li><strong>Agent Code (required):</strong> Select from the provided list the Assistant Agent you want to message. Be sure to select the same agent you have already started a conversation with.</li>
<li><strong>Chat Id (required):</strong> The chat ID of the conversation where the messages will be sent. It's recommended to map this value to the data output of the <strong>Create Assistant Conversation</strong> event.</li>
<li><strong>Message (required):</strong> The message to send to the agent.</li>
<li><strong>Input Parameters:</strong> The parameters defined in the Parameters tab on the Agent Designer allow you to configure agent behavior and functionality. For more details on how to define and use parameters, refer to the <a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/capabilities/input-parameters/">Serenity Input Parameters Guide</a>. Be sure to provide values for all required parameters.</li>
</ul>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/zapier-execute-conversation-8323bff7488253ea94b7155a65773cbe.png" width="789" height="747" class="img_ev3q"></p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create an AI Agent with IBM's new LLM Granite]]></title>
            <link>https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-IBM</link>
            <guid>https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-IBM</guid>
            <pubDate>Thu, 30 Jan 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Serenity\* AI Hub provides easy access to a variety of Large Language Models (LLM) powering your AI Agents. The LLM can be thought of as the brain powering your agent.]]></description>
            <content:encoded><![CDATA[<p>Serenity* AI Hub provides easy access to a variety of Large Language Models (LLM) powering your AI Agents. The LLM can be thought of as the brain powering your agent.<br>
<!-- -->In this article, you will learn how to integrate <strong>IBM</strong> foundational models from the <strong>Granite</strong> family to power your AI solutions.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="introduction">Introduction<a href="https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-IBM#introduction" class="hash-link" aria-label="Enlace directo al Introduction" title="Enlace directo al Introduction">​</a></h2>
<p><strong>Granite</strong> is a family of foundational models by <strong>IBM</strong>, available in a variety of sizes: 2, 8, and 20 billion parameters. The new IBM Granite 3.0 models deliver state-of-the-art performance relative to model size while maximizing safety, speed, and cost-efficiency for enterprise use cases.</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-4f6084cb3903df134e67142cd46cb3b1.png" width="1220" height="184" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="creating-an-agent">Creating an agent<a href="https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-IBM#creating-an-agent" class="hash-link" aria-label="Enlace directo al Creating an agent" title="Enlace directo al Creating an agent">​</a></h2>
<ol>
<li>Register for free on <a href="https://hub.serenitystar.ai/" target="_blank" rel="noopener noreferrer">Serenity* AI Hub</a>.</li>
<li>On the home screen, use the integrated chat with <strong>Serena</strong> to create a new agent.</li>
<li>Once <strong>Serena</strong> correctly identifies the use case for the agent, you will be taken to the Agent Designer, where you can fully customize your agent.</li>
</ol>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-6-8903b82e9343cd3d421b6d99aed123b6.png" width="1458" height="319" class="img_ev3q">
<img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-2-46c59825be7dd70023c99d3c91063cad.png" width="1329" height="723" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="selecting-ibm-granite-models">Selecting IBM Granite Models<a href="https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-IBM#selecting-ibm-granite-models" class="hash-link" aria-label="Enlace directo al Selecting IBM Granite Models" title="Enlace directo al Selecting IBM Granite Models">​</a></h2>
<p>In the Agent Designer, go to the <strong>Model</strong> tab. From the model dropdown, you can easily select IBM Granite models. Once the selected model is chosen, the agent is ready to be used and evaluated. Changing between different <strong>Granite</strong> models is as easy as selecting the appropriate model from the dropdown menu.</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-1-89ea9c423b3f3ecf0146432544a1615a.png" width="705" height="335" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="integrating-with-your-client-application">Integrating with your client application<a href="https://docs.serenitystar.ai/es/blog/how-to-create-an-agent-with-IBM#integrating-with-your-client-application" class="hash-link" aria-label="Enlace directo al Integrating with your client application" title="Enlace directo al Integrating with your client application">​</a></h2>
<p>Exporting your agent and integrating it with your application is as simple as executing an HTTP request to AI Hub. For a quick example, click on <strong>Code Snippets</strong> in the top right corner, and a sample CURL command will be generated to execute the agent. You can easily integrate this CURL command with your system and start enhancing your applications.</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-3-cf7222be0417038f45a4145d8993c18b.png" width="950" height="400" class="img_ev3q">
<img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-4-9fede9e0294f263fbad1f42cf91e2c93.png" width="975" height="520" class="img_ev3q"></p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Integrate Your AI Agent with Calendly]]></title>
            <link>https://docs.serenitystar.ai/es/blog/integrating-with-calendly</link>
            <guid>https://docs.serenitystar.ai/es/blog/integrating-with-calendly</guid>
            <pubDate>Wed, 29 Jan 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[When we talk about AI Agents, a key feature to automate your processes and workflows is the capability of integrating with external services. One of these services can be Calendly, for accessing your agenda and organizing your day.]]></description>
            <content:encoded><![CDATA[<p>When we talk about AI Agents, a key feature to automate your processes and workflows is the capability of integrating with external services. One of these services can be Calendly, for accessing your agenda and organizing your day.</p>
<p>In this article, we will explore how to integrate your AI Agent with the Calendly API using the <strong>HTTP Request Skill</strong> in <strong>Serenity* AI Hub</strong>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="about-the-example">About the Example<a href="https://docs.serenitystar.ai/es/blog/integrating-with-calendly#about-the-example" class="hash-link" aria-label="Enlace directo al About the Example" title="Enlace directo al About the Example">​</a></h2>
<p>We will be creating an <a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/agents/assistant-agent">Assistant Agent</a> that integrates with Calendly to retrieve your daily scheduled events. We will use Calendly’s <code>/scheduled_events</code> endpoint to get a list of upcoming events for the logged-in user.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="prerequisites">Prerequisites<a href="https://docs.serenitystar.ai/es/blog/integrating-with-calendly#prerequisites" class="hash-link" aria-label="Enlace directo al Prerequisites" title="Enlace directo al Prerequisites">​</a></h3>
<ul>
<li>You should have a Calendly account to follow this step-by-step guide.</li>
<li>Inside Calendly, create a Bearer Token that we will use for authentication with the Calendly API.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="setting-up-the-agent">Setting Up the Agent<a href="https://docs.serenitystar.ai/es/blog/integrating-with-calendly#setting-up-the-agent" class="hash-link" aria-label="Enlace directo al Setting Up the Agent" title="Enlace directo al Setting Up the Agent">​</a></h2>
<p>For this example, we will be using an existing Agent template in AI Hub called <strong>Calendly Assistant</strong>. Go to the agent creator screen and select the template from the list.</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/template-selection-16ddb3f104b0ebaf01c658c84cb6a6d6.png" width="843" height="1254" class="img_ev3q"></p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="skills-tab">Skills Tab<a href="https://docs.serenitystar.ai/es/blog/integrating-with-calendly#skills-tab" class="hash-link" aria-label="Enlace directo al Skills Tab" title="Enlace directo al Skills Tab">​</a></h3>
<p>In the skills tab we can see two existing skills that will be used for the integration with <strong>Calendly</strong>:</p>
<ul>
<li>The first skill will allow you to get the list of upcoming events</li>
<li>The second skill allows you to retrieve your Calendy user id</li>
</ul>
<p>Click on edit the first skill so we can configure your authentication settings.</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/skill-tab-b9391f7a4d5b942c4d7c74cd3b254fb6.png" width="917" height="626" class="img_ev3q"></p>
<p>Let's go through the configuration settings needed for the Calendly request skill:</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/skill-configuration-a634ae2ef54e00c872e7e88a83c0940b.png" width="895" height="1263" class="img_ev3q"></p>
<ul>
<li><strong>Code:</strong> A simple identifier for the skill.</li>
<li><strong>What is this HTTP Request for?</strong> This defines the objective of this skill. If the agent determines that the specified condition is met, it will execute the skill.</li>
<li><strong>Endpoint:</strong> Specifies the method type and base URL. In this case, we use the <code>scheduled_events?user</code> endpoint, which requires a user parameter. By using the <code>{{userId}}</code> syntax, we indicate that this parameter value will be automatically replaced by the AI. Additional parameters can also be specified using this syntax.</li>
<li><strong>URL Parameters:</strong> Defines how the agent should replace each URL parameter. In this case, we use Calendly’s user identification system via the <code>User Id</code>.</li>
<li><strong>Authentication:</strong> Replace the placeholder with your Calendly bearer token.</li>
</ul>
<p>If you edit the second skill, the one that allows you to retrieve the user by, you should see the following configuration:</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/get-user-id-skill-b260ed282f229cdb1a9888dbe7a0568e.png" width="767" height="1266" class="img_ev3q"></p>
<blockquote>
<p>Replace the placeholder with your Calendly bearer token</p>
</blockquote>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="testing-the-agent">Testing the Agent<a href="https://docs.serenitystar.ai/es/blog/integrating-with-calendly#testing-the-agent" class="hash-link" aria-label="Enlace directo al Testing the Agent" title="Enlace directo al Testing the Agent">​</a></h3>
<p>Once the skills are configured, simply type your question to test the agent. For example, you can ask "What are my scheduled events for today?" Your agent should respond with a message like this:</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/message-07e30e6ad16b0a90c61aca485798f676.png" width="726" height="1166" class="img_ev3q"></p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/calendly-be3f16e40f84714cbda5e248fe321082.png" width="1235" height="394" class="img_ev3q"></p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="final-tips">Final Tips<a href="https://docs.serenitystar.ai/es/blog/integrating-with-calendly#final-tips" class="hash-link" aria-label="Enlace directo al Final Tips" title="Enlace directo al Final Tips">​</a></h3>
<ul>
<li>Check out the Calendly API Reference to further customize and add additional endpoints.</li>
<li>You can add dynamic parameters to your base URL, which will be completed by the agent based on the context of the conversation.</li>
<li>Clearly define the responsibility of each skill and when it should be executed. This will improve your agent’s performance by avoiding unnecessary skill execution.</li>
<li>Integrate your agent with your website, application, or any other service.</li>
</ul>]]></content:encoded>
            <category>HTTP Request</category>
            <category>Skills</category>
            <category>Agents</category>
            <category>Calendly</category>
        </item>
        <item>
            <title><![CDATA[Is Your Language Holding Back Your AI Agent? How Language Resources Affect LLM Performance]]></title>
            <link>https://docs.serenitystar.ai/es/blog/2025/01/17/language-impact-on-llm-performance</link>
            <guid>https://docs.serenitystar.ai/es/blog/2025/01/17/language-impact-on-llm-performance</guid>
            <pubDate>Fri, 17 Jan 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Large Language Models (LLMs) have revolutionized every day tasks and become a part of our day to day life, demonstrating remarkable capabilities across a range of activities. However, their performance often varies depending on the language we're using. This can have significant implications for their deployment in multilingual settings, especially when extending support to low-resource languages.]]></description>
            <content:encoded><![CDATA[<p>Large Language Models (LLMs) have revolutionized every day tasks and become a part of our day to day life, demonstrating remarkable capabilities across a range of activities. However, their performance often varies depending on the language we're using. This can have significant implications for their deployment in multilingual settings, especially when extending support to low-resource languages.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="high-resource-and-low-resource-languages">High-Resource and Low-Resource Languages<a href="https://docs.serenitystar.ai/es/blog/2025/01/17/language-impact-on-llm-performance#high-resource-and-low-resource-languages" class="hash-link" aria-label="Enlace directo al High-Resource and Low-Resource Languages" title="Enlace directo al High-Resource and Low-Resource Languages">​</a></h2>
<p>Languages are broadly classified based on the amount of training data available at the time of training LLMs. High-resource languages, such as English, Chinese, and Spanish, benefit from vast amounts of text data, which facilitates the creation of uniform and well-structured embedding spaces. These embeddings, which represent the semantic relationships between words, phrases, and concepts, tend to be more consistent and stable in high-resource languages. This uniformity ensures that LLMs perform reliably across a variety of tasks for these languages.</p>
<p>Conversely, low-resource languages face a different reality. Due to the limited availability of high-quality data, the embedding spaces for these languages are often sparse and less uniform. This inconsistency can lead to subpar performance, as the model struggles to capture nuanced semantic relationships. For instance, tasks like sentiment analysis, machine translation, or question answering may yield less accurate results when applied to low-resource languages.</p>
<p>In simpler terms we can think of these like talking to a wise old person who has a lot of life experiences (a high-resource language) versus talking to a little kid who has not lived much yet (low-resource language). Of course, the wise old person who has had many experiences in life is better equipped to give you advice. They will be able to better understand your emotions and relate to them, leading to better advice.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="why-does-this-happen">Why Does This Happen?<a href="https://docs.serenitystar.ai/es/blog/2025/01/17/language-impact-on-llm-performance#why-does-this-happen" class="hash-link" aria-label="Enlace directo al Why Does This Happen?" title="Enlace directo al Why Does This Happen?">​</a></h3>
<p>The training process of LLMs inherently favors languages with more data. High-resource languages dominate the loss optimization during training, leading to embedding spaces that are better tuned to these languages. On the other hand, low-resource languages are often underrepresented, resulting in embedding spaces that are:</p>
<ul>
<li><strong>Less densely populated</strong>: Fewer examples mean weaker representation of linguistic nuances.</li>
<li><strong>More prone to noise</strong>: The lack of data increases the likelihood of overfitting or spurious correlations.</li>
<li><strong>Poorly aligned with high-resource languages</strong>: This misalignment can cause inaccuracies in multilingual tasks, such as translation or cross-lingual understanding.</li>
</ul>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/embedding-spaces-0d403abf726d012668d20eb74eaebd01.png" width="683" height="347" class="img_ev3q"></p>
<p>Here we can see what happens with these embedding spaces of Gemma 7B with 8 different languages. Can you tell which ones are high-resource and which ones are low-resource languages?</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="correcting-the-imbalance-the-role-of-fine-tuning">Correcting the Imbalance: The Role of Fine-Tuning<a href="https://docs.serenitystar.ai/es/blog/2025/01/17/language-impact-on-llm-performance#correcting-the-imbalance-the-role-of-fine-tuning" class="hash-link" aria-label="Enlace directo al Correcting the Imbalance: The Role of Fine-Tuning" title="Enlace directo al Correcting the Imbalance: The Role of Fine-Tuning">​</a></h2>
<p>Recent advancements in LLM development, such as the Qwen models, demonstrate how fine-tuning can mitigate these issues. Fine-tuning involves training a pre-trained model on specific data tailored to the target language or task. This additional training can help align the embedding spaces of low-resource languages with their high-resource counterparts. Here’s how:</p>
<ul>
<li><strong>Data Augmentation:</strong> By introducing synthetic or curated datasets for low-resource languages, fine-tuning enriches the embedding space.</li>
<li><strong>Multilingual Alignment:</strong> Techniques like contrastive learning can align representations across languages, improving performance in cross-lingual tasks.</li>
<li><strong>Task-Specific Optimization:</strong> Fine-tuning on task-relevant data ensures that the model’s performance improves for specific applications, even in low-resource settings.</li>
</ul>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/similarity-layers-2e7a6c592a59f908ab86b553533e58b1.png" width="1237" height="717" class="img_ev3q"></p>
<p>These graphs show the similarity to English performance across layers in the LLM for a couple different models. Notice how in the <a href="https://ollama.com/library/qwen:7b" target="_blank" rel="noopener noreferrer">Qwen model</a>, Chinese is the only high-resource language that shows an improvement in performance over the last layers. This is thanks to their fine-tuning work specifically for Chinese training data.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="running-some-tests">Running Some Tests<a href="https://docs.serenitystar.ai/es/blog/2025/01/17/language-impact-on-llm-performance#running-some-tests" class="hash-link" aria-label="Enlace directo al Running Some Tests" title="Enlace directo al Running Some Tests">​</a></h2>
<p>We ran some tests comparing English and Spanish performance using our very own <a href="https://hub.serenitystar.ai/TestPlan" target="_blank" rel="noopener noreferrer">Agent Quality Studio</a>.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/testplan-d8c79b65d92791daffc4d0c4f473b341.png" width="1446" height="1189" class="img_ev3q"></p>
<p>We asked some very specific and challenging questions in both English and Spanish and had automated testing determine whether they were similar enough. Note that in this testing we take English as absolutely correct in the sense that we don't measure performance as how correct an answer is, rather as how similar it is to the English answer. In some cases it could not be the case that the English answer itself is sub-optimal. We just measure similarity to English as that is the standard among LLMs.</p>
<p>Both models got every question correct except for one interesting case where the Spanish model did even better! Though this may be due to the connotation some specific words may have in Spanish.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/emag-053e30bd962e35d2d246ad8c88a86b6a.png" width="847" height="445" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="final-thoughts">Final Thoughts<a href="https://docs.serenitystar.ai/es/blog/2025/01/17/language-impact-on-llm-performance#final-thoughts" class="hash-link" aria-label="Enlace directo al Final Thoughts" title="Enlace directo al Final Thoughts">​</a></h2>
<p>We learned that low-resource languages can lead to non-uniform embedding spaces and this has a significant negative impact on LLM performance. However, as we could see in our test results it's really not a big deal among high-resouce languages, even in challenging topics like STEM. How does this really affect day-to-day operation with LLMs? It will really depend on your use case but, generally speaking, as long as you stay within high-resource languages you honestly don't have much to worry about. So, here's what you need to keep in mind in order to get the most out of your AI Agents:</p>
<ul>
<li>Try to <strong>stick to high-resource languages</strong> if possible. Sticking to English, Spanish, French, Chinese, etc... will yield better results across the board</li>
<li>If you really need to squeeze out the best performance you can for a specific language then <strong>consider fine-tuning</strong>. As we saw previously, this can greatly help with performance in a specific language.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="references">References<a href="https://docs.serenitystar.ai/es/blog/2025/01/17/language-impact-on-llm-performance#references" class="hash-link" aria-label="Enlace directo al References" title="Enlace directo al References">​</a></h2>
<p><a href="https://arxiv.org/pdf/2404.11553" target="_blank" rel="noopener noreferrer">Zihao Li "Quantifying Multilingual Performance of Large Language Models Across Languages" <em>arXiv preprint arXiv:2404.11553</em> (2024).</a></p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Guide to Executing POST Requests with Serenity* Agents]]></title>
            <link>https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents</link>
            <guid>https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents</guid>
            <pubDate>Thu, 16 Jan 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Serenity Agents can execute HTTP requests via the HttpRequest Skill.* This skill allows us to describe the endpoint we want to execute, including the method, headers, authentication, and body.]]></description>
            <content:encoded><![CDATA[<p>Serenity* Agents can execute HTTP requests via the <em>HttpRequest Skill.</em> This skill allows us to describe the endpoint we want to execute, including the method, headers, authentication, and body.</p>
<p>This article will explore how to use this skill to execute <em>POST requests</em>. We'll see how to configure this skill to provide an AI-generated body for the request and, most importantly, ensure the agent knows <strong>how to build a valid body</strong> and <strong>when to use each skill</strong>.</p>
<p>We'll iterate from a simple starter agent to a more robust one, testing and improving it along the way.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="about-the-example">About the example<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#about-the-example" class="hash-link" aria-label="Enlace directo al About the example" title="Enlace directo al About the example">​</a></h2>
<p>We'll create an agent whose goal will be to help us schedule meetings and events based on a prompt.</p>
<p>For this example, I created a mock API with two endpoints:</p>
<ul>
<li><code>POST /meeting/schedule</code> to schedule a meeting</li>
<li><code>POST /event/schedule</code> to schedule an event (used for reminders or something that doesn't require attendees)</li>
</ul>
<blockquote>
<p>Both endpoints are intentionally similar, so we can demonstrate how to instruct the agent to use the right skill for each case.</p>
</blockquote>
<p>We'll give our agent access to these endpoints via the <em>HttpRequest Skill</em>.</p>
<p>For example, if the agent receives a prompt like "Schedule a meeting for the product demo on September 22nd at 3 pm. It should take 45 minutes," it should execute the following request:</p>
<div class="language-sh codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-sh codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token function" style="color:#d73a49">curl</span><span class="token plain"> </span><span class="token parameter variable" style="color:#36acaa">-X</span><span class="token plain"> POST </span><span class="token string" style="color:#e3116c">"https://&lt;my-mock-api&gt;/meeting/schedule"</span><span class="token plain"> </span><span class="token parameter variable" style="color:#36acaa">-H</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"Content-Type: application/json"</span><span class="token plain"> </span><span class="token parameter variable" style="color:#36acaa">-d</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'{</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">    "datetime": "2025-09-22T15:00:00",</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">    "duration": 0.75,</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">    "subject": "Product demo",</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">    "attendees": [],</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">    "location": null,</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">    "description": null</span><br></span><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">}'</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="setting-up-the-agent">Setting up the Agent<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#setting-up-the-agent" class="hash-link" aria-label="Enlace directo al Setting up the Agent" title="Enlace directo al Setting up the Agent">​</a></h2>
<p>For this example, we will create an Activity agent. It will receive a <code>prompt</code> that will be used to decide which skill to use, if any.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="general-tab">General Tab<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#general-tab" class="hash-link" aria-label="Enlace directo al General Tab" title="Enlace directo al General Tab">​</a></h3>
<p><img decoding="async" loading="lazy" alt="General tab describing the calendar organizer agent" src="https://docs.serenitystar.ai/es/assets/images/general-tab-ec8bfac5562d2dca0849d196de07b4cd.png" width="659" height="742" class="img_ev3q"></p>
<p>The main thing to notice here is the "Ask" field. That's the instruction the agent will receive. As you can see, it includes an input parameter called <code>prompt</code>.</p>
<p>We'll keep it simple for now.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="model-tab">Model Tab<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#model-tab" class="hash-link" aria-label="Enlace directo al Model Tab" title="Enlace directo al Model Tab">​</a></h3>
<p><img decoding="async" loading="lazy" alt="Model tab showing how I seleccted OpenAI&amp;#39;s GPT 4.o Mini" src="https://docs.serenitystar.ai/es/assets/images/model-tab-4b2edae170f96a763e595eb7847b9d86.png" width="1141" height="497" class="img_ev3q"></p>
<p>In this tab, select OpenAI's GPT 4o Mini and leave everything else as default.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="skills-tab">Skills Tab<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#skills-tab" class="hash-link" aria-label="Enlace directo al Skills Tab" title="Enlace directo al Skills Tab">​</a></h3>
<p>Time to add our two HTTP Request Skills.</p>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="meeting-skill">Meeting Skill<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#meeting-skill" class="hash-link" aria-label="Enlace directo al Meeting Skill" title="Enlace directo al Meeting Skill">​</a></h4>
<p><img decoding="async" loading="lazy" alt="HTTP Request form for the meeting skill" src="https://docs.serenitystar.ai/es/assets/images/meeting-skill-1a-be0bf4d1f408feb23785f2031a6a4640.png" width="969" height="731" class="img_ev3q"></p>
<p>The first section of the form asks us for the following information:</p>
<ul>
<li><strong>Code</strong>: This should be a unique code to identify this particular skill.&nbsp;It will also help us identify the skill in the agent's response and logs.</li>
<li><strong>Description</strong>: Describe what the skill does, when to use it, any important notes or limitations we want the agent to consider, etc.</li>
</ul>
<p>These two fields are extremely important for the agent to determine when and how to use each skill. In this first iteration, we'll keep them brief and simple so we can see the difference when we improve them later.</p>
<p>For the Authentication Type, I'll select "No Auth" since my mock API doesn't require authentication.</p>
<p>Then, fill the Method and Url fields with the appropriate values for the meeting endpoint and press "Continue."</p>
<p>In the next section, we'll be asked to configure the <em>headers</em> and <em>body</em>.</p>
<p><img decoding="async" loading="lazy" alt="The default configurations for headers and body" src="https://docs.serenitystar.ai/es/assets/images/meeting-skill-1b-e8eb52735a53e615e32f198d254c037f.png" width="962" height="490" class="img_ev3q"></p>
<p>We don't need to provide any headers in this case, so we'll leave that section as is.</p>
<p>For the body, turn on the "Include request body" switch and select "AI-Generated Body." This will instruct the agent to generate the body considering the body description we provide, as well as the prompt and skill description.</p>
<p><img decoding="async" loading="lazy" alt="Body description" src="https://docs.serenitystar.ai/es/assets/images/meeting-skill-1c-caeeb6cb53435094f4e681b275151108.png" width="974" height="795" class="img_ev3q"></p>
<p>We'll simply provide a sample body with a brief description.</p>
<p>Finally, check the "Include skill output in the agent's result" switch at the bottom to include this skill's response in the agent's response. This will help us with our tests later.</p>
<p>And now, we can confirm this configuration and move on to the next skill.</p>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="event-skill">Event Skill<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#event-skill" class="hash-link" aria-label="Enlace directo al Event Skill" title="Enlace directo al Event Skill">​</a></h4>
<p>This configuration will be similar to the previous one, so I'll just show you the resulting forms:</p>
<p><img decoding="async" loading="lazy" alt="Event skill description" src="https://docs.serenitystar.ai/es/assets/images/event-skill-1a-b203ce581057c3a4b3b7bd7b9c6d1918.png" width="981" height="728" class="img_ev3q"></p>
<p><img decoding="async" loading="lazy" alt="Event skill body" src="https://docs.serenitystar.ai/es/assets/images/event-skill-1b-d284005dff15e11479b55d9c49bf7b0f.png" width="979" height="767" class="img_ev3q"></p>
<p>Now that the agent has skills, we can create it and begin testing.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="testing-the-first-version-of-our-agent">Testing the first version of our agent<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#testing-the-first-version-of-our-agent" class="hash-link" aria-label="Enlace directo al Testing the first version of our agent" title="Enlace directo al Testing the first version of our agent">​</a></h2>
<p>We can access our new agent from the "AI Agents" page. Click over the card to open the Agent Designer.</p>
<p><img decoding="async" loading="lazy" alt="AI Agent list" src="https://docs.serenitystar.ai/es/assets/images/aiagent-0cc3aff43f9cce075beee689336932d6.png" width="1662" height="314" class="img_ev3q"></p>
<p>At the right side we have a "Preview" section where we can test our agent filling-in the <code>prompt</code> parameter with different values.</p>
<p>Let's try it.</p>
<p><img decoding="async" loading="lazy" alt="First test asking to schedule a meeting" src="https://docs.serenitystar.ai/es/assets/images/preview-1-e07ef7f0e3067abbe5512a1e6965f729.png" width="975" height="757" class="img_ev3q"></p>
<p>It seems like it understood the task, but taking a look at the logs I can see that it didn't invoke any of the skills and its asking for the location of the meeting. That's probably because I didn't specify which fields are optional when describing the body.</p>
<p>It also appears to be using the date I provided as an example (2025-01-15) as the current date.</p>
<p>Let's try adjusting the input prompt to see if we can get a better result:</p>
<p><img decoding="async" loading="lazy" alt="The response of the agent demonstrating that the meeting was successfully created" src="https://docs.serenitystar.ai/es/assets/images/scheduled-meeting-156f06f58b114d4390cb2d3e5d3f5147.png" width="959" height="797" class="img_ev3q"></p>
<p>It seems the adjustments to the prompt did the trick, and now the agent is properly calling the MeetingScheduler skill.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="automated-testing">Automated testing<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#automated-testing" class="hash-link" aria-label="Enlace directo al Automated testing" title="Enlace directo al Automated testing">​</a></h3>
<p><strong>One or two manual tests are not enough</strong> to ensure the agent is working as expected. Ideally, we should run a set of diverse tests that emulate real-world scenarios and evaluate the results to see where the agent is failing.</p>
<p>You can use Postman to <strong>run automated tests on your agent by providing a data file with many different test cases</strong> and using Postman's scripts to verify the results.</p>
<p><img decoding="async" loading="lazy" alt="Postman endpoint and body" src="https://docs.serenitystar.ai/es/assets/images/postman-1-975aef61b80bed21957ca5a346fdc4ad.png" width="1252" height="486" class="img_ev3q"></p>
<p>For example, in this case, I added a Postman endpoint where the body contains a variable for <code>prompt,</code> which will be replaced by the test data.</p>
<p>Here's a sample of my test data:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">&nbsp; &nbsp; </span><span class="token property" style="color:#36acaa">"prompt"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"Arrange a meeting for the product demo on September 22nd at 3 pm. It should take 45 minutes."</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">&nbsp; &nbsp; </span><span class="token property" style="color:#36acaa">"type"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"meeting"</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">&nbsp; &nbsp; </span><span class="token property" style="color:#36acaa">"prompt"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"Put the Leonid meteor shower on November 17th on my calendar. Starts at midnight."</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">&nbsp; &nbsp; </span><span class="token property" style="color:#36acaa">"type"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"event"</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">&nbsp; &nbsp; </span><span class="token property" style="color:#36acaa">"prompt"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"Book a weekly sync with the design team next Thursday at 11 am for 30 minutes."</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">&nbsp; &nbsp; </span><span class="token property" style="color:#36acaa">"type"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"meeting"</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">&nbsp; &nbsp; </span><span class="token property" style="color:#36acaa">"prompt"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"Add the company picnic to my calendar for August 25th. It starts at 10 am and lasts all day."</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">&nbsp; &nbsp; </span><span class="token property" style="color:#36acaa">"type"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"event"</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">]</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>I also added a test script to verify the agent's response. This script checks if the agent used the right skill by comparing the response with the variable <code>type</code>. This variable is part of my test data, but it's not sent to the agent since we only use it to verify the response.</p>
<p><img decoding="async" loading="lazy" alt="Postman scripts for testing" src="https://docs.serenitystar.ai/es/assets/images/postman-2-c02a950e9bd5dc369ed99fed0efe275c.png" width="1308" height="638" class="img_ev3q"></p>
<p>I'll configure a Runner to execute this endpoint using my json file as the data source.</p>
<p><img decoding="async" loading="lazy" alt="Postman runner configuration" src="https://docs.serenitystar.ai/es/assets/images/postman-3-a3bb370306d951d06f6f59b3557aa6de.png" width="853" height="1004" class="img_ev3q"></p>
<p>And after running the tests, we can see the results:</p>
<p><img decoding="async" loading="lazy" alt="Postman tests results" src="https://docs.serenitystar.ai/es/assets/images/postman-4-9952c6784e56240cd7a097fef942b624.png" width="1831" height="291" class="img_ev3q"></p>
<p>According to the results, sometimes the agent uses the wrong skill, and sometimes, it cannot use any skill at all.</p>
<p>After reviewing the failed tests, I noticed 3 main issues:</p>
<ol>
<li>The agent sometimes confuses Meetings with Events, which makes sense since we didn't provide any information on how to differentiate them.</li>
<li>It has trouble calculating dates with prompts such as "Tomorrow" or "Next Wednesday" unless we provide the current date, time, and day of the week within the prompt.</li>
<li>It also can't differentiate between optional and required body fields, and it doesn't know details about them, such as the unit of time for the <code>duration</code> field.</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="improving-the-agent">Improving the agent<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#improving-the-agent" class="hash-link" aria-label="Enlace directo al Improving the agent" title="Enlace directo al Improving the agent">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="issue-1-differentiating-between-meetings-and-events">Issue 1: Differentiating between Meetings and Events<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#issue-1-differentiating-between-meetings-and-events" class="hash-link" aria-label="Enlace directo al Issue 1: Differentiating between Meetings and Events" title="Enlace directo al Issue 1: Differentiating between Meetings and Events">​</a></h3>
<p>This should be easy to fix. We need to change the skill's description to provide more information.</p>
<p><img decoding="async" loading="lazy" alt="Meeting skill improved description" src="https://docs.serenitystar.ai/es/assets/images/meeting-skill-2a-54e3faee9fa0bbfe39b497c701f1a2cb.png" width="993" height="500" class="img_ev3q"></p>
<p><img decoding="async" loading="lazy" alt="Event skill improved description" src="https://docs.serenitystar.ai/es/assets/images/event-skill-2a-c8c8e43ab54142eb9857beb998fb5b5a.png" width="994" height="441" class="img_ev3q"></p>
<p>The improvements are:</p>
<ul>
<li>Now we're indicating <em>when</em> to use this skill.</li>
<li>We're specifying the skill is actually an HTTP request, so it's easier for the agent to understand why it needs a body. And we're also stating that a body must be provided to strengthen that point.</li>
<li>Finally, we're indicating the skill's expected output.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="issue-2-calculating-dates">Issue 2: Calculating dates<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#issue-2-calculating-dates" class="hash-link" aria-label="Enlace directo al Issue 2: Calculating dates" title="Enlace directo al Issue 2: Calculating dates">​</a></h3>
<p>We could fix this by adding the "TimePlugin," which includes a set of tools to calculate dates and times and returns the current date. But in this case, there's a simpler solution.</p>
<p>We can use Liquid to indicate the current date in the "Ask" field, like so:</p>
<p><img decoding="async" loading="lazy" alt="Using liquid to specify the date" src="https://docs.serenitystar.ai/es/assets/images/liquid-0dbc3a1331b1868e3c264d785b5b0742.png" width="705" height="316" class="img_ev3q"></p>
<blockquote>
<p>The liquid expression prints the date in the following format "2025-01-15 15:10 - Wednesday". <a href="https://shopify.github.io/liquid/filters/date/" target="_blank" rel="noopener noreferrer">Read more about this here</a></p>
</blockquote>
<p>💡 Including just the minimum required skills is a good idea for performance and to avoid confusing the agent.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="issue-3-building-a-valid-body">Issue 3: Building a valid body<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#issue-3-building-a-valid-body" class="hash-link" aria-label="Enlace directo al Issue 3: Building a valid body" title="Enlace directo al Issue 3: Building a valid body">​</a></h3>
<p>This can be done by improving the body description, like so:</p>
<p><img decoding="async" loading="lazy" alt="Improved body for the meeting skill" src="https://docs.serenitystar.ai/es/assets/images/meeting-skill-2b-4429b7ac7e6740355627dd160239f24a.png" width="975" height="695" class="img_ev3q"></p>
<p>We're now providing a description for each field, indicating when they're required or optional, and details about the data type and units.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="testing-the-improved-agent">Testing the improved agent<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#testing-the-improved-agent" class="hash-link" aria-label="Enlace directo al Testing the improved agent" title="Enlace directo al Testing the improved agent">​</a></h2>
<p>We can run the tests again after saving and publishing the agent with these changes.</p>
<p><img decoding="async" loading="lazy" alt="Postman results after improving the agent" src="https://docs.serenitystar.ai/es/assets/images/postman-5-0744da8649d2ae54ad5810ede26dfe18.png" width="1826" height="269" class="img_ev3q"></p>
<p>The results look much better now. However, we can keep iterating and testing by following the same process.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="final-tips-on-configuring-agents-with-skills">Final tips on configuring agents with skills<a href="https://docs.serenitystar.ai/es/blog/a-guide-to-executing-post-requests-with-serenity-agents#final-tips-on-configuring-agents-with-skills" class="hash-link" aria-label="Enlace directo al Final tips on configuring agents with skills" title="Enlace directo al Final tips on configuring agents with skills">​</a></h2>
<p>To sum up, here are some tips to get the best results while configuring an agent with skills:</p>
<p><strong>Choose a clear representative Code for your skill</strong>: This, along with the description, will help the agent determine when to use it and will also help you find it in the agent's response and logs.</p>
<ul>
<li><strong>Write detailed descriptions</strong>: The Skill description is key to instructing the agent when and how to use it. Write anything you think is relevant, including constraints, what the endpoint will return, and when not to use it.</li>
<li><strong>Describe the body (or any other skill parameters) thoroughly</strong>: If the agent needs to create a body for your request, make sure it knows the details of each field, such as data types, which are required and which are optional, types of units, etc.</li>
<li><strong>Include the minimum skills needed to do the job</strong>: This will help the agent avoid confusion and improve performance. If you think your agent is overloaded with skills, you may want to replace some with Liquid or use the <em>Agent executor skill</em> to call specialized agents for each task.</li>
<li><strong>Try different models</strong>: If the model you selected for your agent is not performing as expected, try a different one. Read the documentation on each model to see which one may perform better for your use case.</li>
<li><strong>Test thoroughly</strong>: Make sure the agent performs well on different cases. Users may provide diverse prompts, and we don't want to overfit the agent to a specific type of input.</li>
<li><strong>Iterate</strong>: Keep iterating. We can always return to a previous version of the agent, so don't be afraid to make changes and test them.</li>
</ul>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Integrate the Chat Widget in a Next.js Project]]></title>
            <link>https://docs.serenitystar.ai/es/blog/how-to-integrate-serenity-chat-with-nextjs</link>
            <guid>https://docs.serenitystar.ai/es/blog/how-to-integrate-serenity-chat-with-nextjs</guid>
            <pubDate>Mon, 16 Dec 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[The Chat Widget allows you to add a customizable AI-powered chat feature to your web application. This guide will walk you through integrating the widget into a Next.js project using both the App Router and Pages Router approaches.]]></description>
            <content:encoded><![CDATA[<p>The Chat Widget allows you to add a customizable AI-powered chat feature to your web application. This guide will walk you through integrating the widget into a Next.js project using both the App Router and Pages Router approaches.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="using-app-router">Using App Router<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-serenity-chat-with-nextjs#using-app-router" class="hash-link" aria-label="Enlace directo al Using App Router" title="Enlace directo al Using App Router">​</a></h2>
<p>When using the App Router in Next.js, follow these steps:</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-1-modify-the-root-layout">Step 1: Modify the Root Layout<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-serenity-chat-with-nextjs#step-1-modify-the-root-layout" class="hash-link" aria-label="Enlace directo al Step 1: Modify the Root Layout" title="Enlace directo al Step 1: Modify the Root Layout">​</a></h3>
<p>In the <code>app/layout.tsx</code> file (or .js), add the CSS link to the <code>&lt;head&gt;</code> section and the JS script to the end of the <code>&lt;body&gt;</code>. You'll also need to include a placeholder <code>&lt;div&gt;</code> for the chat widget and reference a custom component for initialization.</p>
<p>Here’s an example of the modified layout:</p>
<div class="language-tsx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-tsx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword" style="color:#00009f">import</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">type</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token maybe-class-name">Metadata</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"next"</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports punctuation" style="color:#393A34">{</span><span class="token imports"> </span><span class="token imports maybe-class-name">Geist</span><span class="token imports punctuation" style="color:#393A34">,</span><span class="token imports"> </span><span class="token imports maybe-class-name">Geist_Mono</span><span class="token imports"> </span><span class="token imports punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"next/font/google"</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">import</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"./globals.css"</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports maybe-class-name">SerenityChat</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"@/components/SerenityChat"</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> geistSans </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">Geist</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  variable</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"--font-geist-sans"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  subsets</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#e3116c">"latin"</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> geistMono </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">Geist_Mono</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  variable</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"--font-geist-mono"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  subsets</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#e3116c">"latin"</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> metadata</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token maybe-class-name">Metadata</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  title</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"Create Next App"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  description</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"Generated by create next app"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">default</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">RootLayout</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  children</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token maybe-class-name">Readonly</span><span class="token operator" style="color:#393A34">&lt;</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token maybe-class-name">React</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access maybe-class-name">ReactNode</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">&gt;</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token keyword" style="color:#00009f">return</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag" style="color:#00009f">html</span><span class="token tag" style="color:#00009f"> </span><span class="token tag attr-name" style="color:#00a4db">lang</span><span class="token tag attr-value punctuation attr-equals" style="color:#393A34">=</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag attr-value" style="color:#e3116c">en</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">      </span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag" style="color:#00009f">body</span><span class="token tag" style="color:#00009f"> </span><span class="token tag attr-name" style="color:#00a4db">className</span><span class="token tag script language-javascript script-punctuation punctuation" style="color:#393A34">=</span><span class="token tag script language-javascript punctuation" style="color:#393A34">{</span><span class="token tag script language-javascript template-string template-punctuation string" style="color:#e3116c">`</span><span class="token tag script language-javascript template-string interpolation interpolation-punctuation punctuation" style="color:#393A34">${</span><span class="token tag script language-javascript template-string interpolation" style="color:#00009f">geistSans</span><span class="token tag script language-javascript template-string interpolation punctuation" style="color:#393A34">.</span><span class="token tag script language-javascript template-string interpolation" style="color:#00009f">variable</span><span class="token tag script language-javascript template-string interpolation interpolation-punctuation punctuation" style="color:#393A34">}</span><span class="token tag script language-javascript template-string string" style="color:#e3116c"> </span><span class="token tag script language-javascript template-string interpolation interpolation-punctuation punctuation" style="color:#393A34">${</span><span class="token tag script language-javascript template-string interpolation" style="color:#00009f">geistMono</span><span class="token tag script language-javascript template-string interpolation punctuation" style="color:#393A34">.</span><span class="token tag script language-javascript template-string interpolation" style="color:#00009f">variable</span><span class="token tag script language-javascript template-string interpolation interpolation-punctuation punctuation" style="color:#393A34">}</span><span class="token tag script language-javascript template-string template-punctuation string" style="color:#e3116c">`</span><span class="token tag script language-javascript punctuation" style="color:#393A34">}</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token comment" style="color:#999988;font-style:italic">/* Placeholder for Chat Widget */</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">        </span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag" style="color:#00009f">div</span><span class="token tag" style="color:#00009f"> </span><span class="token tag attr-name" style="color:#00a4db">id</span><span class="token tag attr-value punctuation attr-equals" style="color:#393A34">=</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag attr-value" style="color:#e3116c">aihub-chat</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token tag punctuation" style="color:#393A34">&lt;/</span><span class="token tag" style="color:#00009f">div</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">children</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token comment" style="color:#999988;font-style:italic">/* Initialize Serenity Chat */</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">        </span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag class-name" style="color:#00009f">SerenityChat</span><span class="token tag" style="color:#00009f"> </span><span class="token tag punctuation" style="color:#393A34">/&gt;</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token comment" style="color:#999988;font-style:italic">/* Add Serenity* Star Chat JS */</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">        </span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag" style="color:#00009f">script</span><span class="token tag" style="color:#00009f"> </span><span class="token tag attr-name" style="color:#00a4db">src</span><span class="token tag attr-value punctuation attr-equals" style="color:#393A34">=</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag attr-value" style="color:#e3116c">https://hub.serenitystar.ai/resources/chat.js</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain-text"></span><span class="token tag punctuation" style="color:#393A34">&lt;/</span><span class="token tag" style="color:#00009f">script</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">      </span><span class="token tag punctuation" style="color:#393A34">&lt;/</span><span class="token tag" style="color:#00009f">body</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">    </span><span class="token tag punctuation" style="color:#393A34">&lt;/</span><span class="token tag" style="color:#00009f">html</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-2-create-the-chat-widget">Step 2: Create the Chat Widget<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-serenity-chat-with-nextjs#step-2-create-the-chat-widget" class="hash-link" aria-label="Enlace directo al Step 2: Create the Chat Widget" title="Enlace directo al Step 2: Create the Chat Widget">​</a></h3>
<p>The <code>Chat Widget</code> initializes the chat using the <code>AIHubChat</code> class. Place this file in <code>src/components/SerenityChat.tsx</code>:</p>
<div class="language-tsx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-tsx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token string" style="color:#e3116c">"use client"</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports punctuation" style="color:#393A34">{</span><span class="token imports"> useEffect </span><span class="token imports punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"react"</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token maybe-class-name">SerenityChat</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token maybe-class-name">React</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method-variable function-variable method function property-access maybe-class-name" style="color:#d73a49">FC</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=&gt;</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token function-variable function" style="color:#d73a49">initChat</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=&gt;</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token comment" style="color:#999988;font-style:italic">//@ts-ignore</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> chat </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">new</span><span class="token plain"> </span><span class="token class-name">AIHubChat</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"aihub-chat"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      apiKey</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"&lt;Your API Key&gt;"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      agentCode</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"&lt;Your Agent Code&gt;"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      baseURL</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"https://api.serenitystar.ai/api"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    chat</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">init</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token function" style="color:#d73a49">useEffect</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=&gt;</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token function" style="color:#d73a49">initChat</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token keyword" style="color:#00009f">return</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">null</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">default</span><span class="token plain"> </span><span class="token maybe-class-name">SerenityChat</span><span class="token punctuation" style="color:#393A34">;</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<blockquote>
<p>Replace <code>&lt;Your API Key&gt;</code> and <code>&lt;Your Agent Code&gt;</code> with your actual credentials.</p>
</blockquote>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="using-pages-router">Using Pages Router<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-serenity-chat-with-nextjs#using-pages-router" class="hash-link" aria-label="Enlace directo al Using Pages Router" title="Enlace directo al Using Pages Router">​</a></h2>
<p>If you’re using the Pages Router, you just need to update your <code>_app.tsx</code> file.</p>
<p>Include the CSS link and the initialization script globally. Use the <code>&lt;Head&gt;</code> component for the CSS and also add the js script like this:</p>
<div class="language-tsx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-tsx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports maybe-class-name">Head</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"next/head"</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports punctuation" style="color:#393A34">{</span><span class="token imports"> useEffect </span><span class="token imports punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"react"</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">import</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"@/styles/globals.css"</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">default</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">App</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token maybe-class-name">Component</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> pageProps </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token function" style="color:#d73a49">useEffect</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=&gt;</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token keyword" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token keyword" style="color:#00009f">typeof</span><span class="token plain"> </span><span class="token dom variable" style="color:#36acaa">window</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">!==</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"undefined"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token comment" style="color:#999988;font-style:italic">//@ts-ignore</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> chat </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">new</span><span class="token plain"> </span><span class="token class-name">AIHubChat</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"aihub-chat"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        apiKey</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"&lt;Your API Key&gt;"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        agentCode</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"&lt;Your Agent Code&gt;"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        baseURL</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"https://api.serenitystar.ai/api"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      chat</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">init</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token keyword" style="color:#00009f">return</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">      </span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag" style="color:#00009f">div</span><span class="token tag" style="color:#00009f"> </span><span class="token tag attr-name" style="color:#00a4db">id</span><span class="token tag attr-value punctuation attr-equals" style="color:#393A34">=</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag attr-value" style="color:#e3116c">aihub-chat</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token tag punctuation" style="color:#393A34">&lt;/</span><span class="token tag" style="color:#00009f">div</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">      </span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag class-name" style="color:#00009f">Component</span><span class="token tag" style="color:#00009f"> </span><span class="token tag spread punctuation" style="color:#393A34">{</span><span class="token tag spread operator" style="color:#393A34">...</span><span class="token tag spread" style="color:#00009f">pageProps</span><span class="token tag spread punctuation" style="color:#393A34">}</span><span class="token tag" style="color:#00009f"> </span><span class="token tag punctuation" style="color:#393A34">/&gt;</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">      </span><span class="token punctuation" style="color:#393A34">{</span><span class="token comment" style="color:#999988;font-style:italic">/* Add Serenity* Star Chat JS */</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">      </span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag" style="color:#00009f">script</span><span class="token tag" style="color:#00009f"> </span><span class="token tag attr-name" style="color:#00a4db">src</span><span class="token tag attr-value punctuation attr-equals" style="color:#393A34">=</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag attr-value" style="color:#e3116c">https://hub.serenitystar.ai/resources/chat.js</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain-text"></span><span class="token tag punctuation" style="color:#393A34">&lt;/</span><span class="token tag" style="color:#00009f">script</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain-text"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain-text">    </span><span class="token tag punctuation" style="color:#393A34">&lt;/</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="summary">Summary<a href="https://docs.serenitystar.ai/es/blog/how-to-integrate-serenity-chat-with-nextjs#summary" class="hash-link" aria-label="Enlace directo al Summary" title="Enlace directo al Summary">​</a></h2>
<ul>
<li>App Router: Use layout.tsx for global styles and scripts and a use client component for chat initialization.</li>
<li>Pages Router: Add the CSS and JS in <code>_app.js</code>, and initialize the chat directly in a useEffect.</li>
</ul>
<p>By following these instructions, you can easily integrate the chat widget into your Next.js project.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Tag Manager Integration]]></title>
            <link>https://docs.serenitystar.ai/es/blog/google-tag-manager-integration</link>
            <guid>https://docs.serenitystar.ai/es/blog/google-tag-manager-integration</guid>
            <pubDate>Fri, 18 Oct 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[Integrating the Chat Widget into your website using Google Tag Manager (GTM) is straightforward and allows you to add the chat widget without modifying your website's code directly. This guide will walk you through the simple steps to set up GTM if it's not already installed, and then show you how to add and configure the Serenity Chat custom tag.]]></description>
            <content:encoded><![CDATA[<p>Integrating the <a href="https://docs.serenitystar.ai/es/docs/client-library-reference/javascript-chat-widget"><strong>Chat Widget</strong></a> into your website using <strong>Google Tag Manager</strong> (GTM) is straightforward and allows you to add the chat widget without modifying your website's code directly. This guide will walk you through the simple steps to set up GTM if it's not already installed, and then show you how to add and configure the <a href="https://tagmanager.google.com/gallery/#/owners/Serenity-AI-Hub/templates/gtm-chat" target="_blank" rel="noopener noreferrer">Serenity Chat custom tag</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="step-1-add-google-tag-manager-to-your-website">Step 1: Add Google Tag Manager to Your Website<a href="https://docs.serenitystar.ai/es/blog/google-tag-manager-integration#step-1-add-google-tag-manager-to-your-website" class="hash-link" aria-label="Enlace directo al Step 1: Add Google Tag Manager to Your Website" title="Enlace directo al Step 1: Add Google Tag Manager to Your Website">​</a></h2>
<p>Before adding the Serenity Chat tag, you need to ensure GTM is installed on your website. Here’s a quick setup guide if you haven’t done this yet:</p>
<ol>
<li>
<p><strong>Create a GTM Account</strong>:</p>
<ul>
<li>Visit the <a href="https://tagmanager.google.com/" target="_blank" rel="noopener noreferrer">Google Tag Manager website</a> and sign in.</li>
<li>Create a new GTM account by providing your account name and container details.</li>
</ul>
</li>
<li>
<p><strong>Get the GTM Script Snippet</strong>:</p>
<ul>
<li>After setting up your container, GTM will provide you with a JavaScript snippet.</li>
<li>You’ll need to paste this into your website: one part goes in the <code>&lt;head&gt;</code> section, and the other immediately after the opening <code>&lt;body&gt;</code> tag.</li>
</ul>
</li>
<li>
<p><strong>Install the Snippet on Your Website</strong>:</p>
<ul>
<li>
<p>Add the GTM snippet to the appropriate sections of your website’s HTML, ensuring it's included on all the pages where you want to use GTM.</p>
<p><img decoding="async" loading="lazy" alt="Google Tag Manager - Code Snippets" src="https://docs.serenitystar.ai/es/assets/images/gtm-code-snippets-e0687e46e010158d3762f9cc233a6532.png" width="1227" height="852" class="img_ev3q"></p>
</li>
</ul>
</li>
</ol>
<p>Once the GTM code is in place, you’re ready to start adding tags.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="step-2-add-the-serenity-chat-custom-tag">Step 2: Add the Serenity Chat Custom Tag<a href="https://docs.serenitystar.ai/es/blog/google-tag-manager-integration#step-2-add-the-serenity-chat-custom-tag" class="hash-link" aria-label="Enlace directo al Step 2: Add the Serenity Chat Custom Tag" title="Enlace directo al Step 2: Add the Serenity Chat Custom Tag">​</a></h2>
<p>Now that GTM is installed, you can add the <strong>Serenity Chat</strong> tag to integrate the chat tool into your site. Follow these steps to configure it:</p>
<ol>
<li>
<p><strong>Open Your GTM Workspace</strong>:</p>
<ul>
<li>In Google Tag Manager, open the <strong>Workspace</strong> you want to use.</li>
</ul>
</li>
<li>
<p><strong>Create a New Tag</strong>:</p>
<ul>
<li>Go to the <strong>Tags</strong> section and click on <strong>New</strong> to create a new tag.
<img decoding="async" loading="lazy" alt="Add Tag" src="https://docs.serenitystar.ai/es/assets/images/add-tag-step-2-4c573389e454dcaaef7f2f93d597f199.png" width="1685" height="444" class="img_ev3q"></li>
<li>In the <strong>Tag Configuration</strong> box, click to open the <strong>Choose Tag Type</strong> panel.</li>
</ul>
</li>
<li>
<p><strong>Discover the Serenity Chat Template</strong>:</p>
<ul>
<li>
<p>In the panel, click on the option <strong>Discover more tag types in the Community Template Gallery</strong>.
<img decoding="async" loading="lazy" alt="Add Tag" src="https://docs.serenitystar.ai/es/assets/images/add-tag-step-3-6f80e8f899e4c8f6236f6b20b2510a79.png" width="663" height="563" class="img_ev3q"></p>
</li>
<li>
<p>This will open the Community Template Gallery. Use the search bar to filter for "Serenity Chat".
<img decoding="async" loading="lazy" alt="Add Tag" src="https://docs.serenitystar.ai/es/assets/images/add-tag-step-3b-80b4a8308e2826881761ae1d727a6fcd.png" width="650" height="155" class="img_ev3q"></p>
</li>
<li>
<p>Once you find the <strong>Serenity Chat</strong> tag, click on <strong>Choose Template</strong>.
<img decoding="async" loading="lazy" alt="Add Tag" src="https://docs.serenitystar.ai/es/assets/images/add-tag-step-3c-c72af51fe40d7f624945ea4af132ca2a.png" width="660" height="537" class="img_ev3q"></p>
</li>
</ul>
</li>
<li>
<p><strong>Configure the Serenity Chat Tag</strong>:</p>
<ul>
<li>After selecting the template, you’ll see the configuration fields.</li>
<li>Enter your <strong>API Key</strong> and <strong>agentCode</strong> in the required fields.
<img decoding="async" loading="lazy" alt="Add Tag" src="https://docs.serenitystar.ai/es/assets/images/add-tag-step-4-15ba9e8e1aae022dfa67fedff903b545.png" width="948" height="478" class="img_ev3q"></li>
</ul>
</li>
<li>
<p><strong>Set Up a Trigger</strong>:</p>
<ul>
<li>Scroll down to the <strong>Triggering</strong> section and click <strong>Triggering</strong>.</li>
<li>For most users, it’s recommended to select <strong>Page View</strong> and apply it to <strong>All Pages</strong>. This ensures that the chat will appear on every page of your site.
<img decoding="async" loading="lazy" alt="Add Tag" src="https://docs.serenitystar.ai/es/assets/images/add-tag-step-5-84e4ee8ebb3b059f8865d0dab8821cac.png" width="1070" height="545" class="img_ev3q"></li>
</ul>
</li>
<li>
<p><strong>Save the Tag</strong>:</p>
<ul>
<li>After configuring the tag and trigger, give your tag a descriptive name (e.g., "Serenity Chat Tag") and click <strong>Save</strong>.</li>
</ul>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="step-3-publish-your-changes">Step 3: Publish Your Changes<a href="https://docs.serenitystar.ai/es/blog/google-tag-manager-integration#step-3-publish-your-changes" class="hash-link" aria-label="Enlace directo al Step 3: Publish Your Changes" title="Enlace directo al Step 3: Publish Your Changes">​</a></h2>
<p>After you’ve configured and saved the <strong>Serenity Chat</strong> tag, you need to publish your changes for them to take effect:</p>
<ol>
<li>
<p><strong>Preview Your Changes</strong>:</p>
<ul>
<li>Before publishing, click <strong>Preview</strong> in GTM to test the tag. This will open a debug mode where you can verify that the Serenity Chat widget is working as expected on your site.
<img decoding="async" loading="lazy" alt="Add Tag" src="https://docs.serenitystar.ai/es/assets/images/publish-step-1-6951178937fd84e0e5fda17134101164.png" width="666" height="418" class="img_ev3q"></li>
</ul>
</li>
<li>
<p><strong>Submit and Publish</strong>:</p>
<ul>
<li>Once you’ve confirmed that everything works, click the <strong>Submit</strong> button.
<img decoding="async" loading="lazy" alt="Add Tag" src="https://docs.serenitystar.ai/es/assets/images/publish-step-2-2c938a42901bedd89a5c537648b23981.png" width="551" height="363" class="img_ev3q"></li>
<li>Add a description of your changes (e.g., "Added Serenity Chat tag").</li>
<li>Finally, click <strong>Publish</strong> to push the changes live to your website.</li>
</ul>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="https://docs.serenitystar.ai/es/blog/google-tag-manager-integration#conclusion" class="hash-link" aria-label="Enlace directo al Conclusion" title="Enlace directo al Conclusion">​</a></h2>
<p>By following these steps, you can easily integrate <strong>Chat Widget</strong> into your website using Google Tag Manager. This allows you to deploy the chat functionality quickly and manage it through GTM without editing your site’s code directly. Once live, your chat widget will be available for users to interact with.</p>
<p>For any issues or additional customizations, be sure to consult the GTM or Serenity Chat documentation.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to integrate Assistants with external APIs]]></title>
            <link>https://docs.serenitystar.ai/es/blog/api-call-completion</link>
            <guid>https://docs.serenitystar.ai/es/blog/api-call-completion</guid>
            <pubDate>Wed, 12 Jun 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[With Serenity* Star AI Hub, you can add plugins to an Agent so you can send HTTP Requests to an external API. This can be useful if you want to collect user information using the Chat Widget]]></description>
            <content:encoded><![CDATA[<p>With Serenity* Star AI Hub, you can add plugins to an Agent so you can send HTTP Requests to an external API. This can be useful if you want to collect user information using the <a href="https://docs.serenitystar.ai/es/docs/client-library-reference/javascript-chat-widget">Chat Widget</a></p>
<p>Let's implement a simple agent that will do the following:</p>
<ul>
<li>Ask the user for they Name, Last Name and Phone Number</li>
<li>Once all data is provided, an HTTP POST request will be sent to an external API that will register the user and return a User ID.</li>
<li>Inform the user that their registration was successful and return the User ID.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="prerequisites">Prerequisites<a href="https://docs.serenitystar.ai/es/blog/api-call-completion#prerequisites" class="hash-link" aria-label="Enlace directo al Prerequisites" title="Enlace directo al Prerequisites">​</a></h2>
<p>You should have an API endpoint that allows for sending data using the following format in the body:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token property" style="color:#36acaa">"name"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">""</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token property" style="color:#36acaa">"lastName"</span><span class="token operator" style="color:#393A34">:</span><span class="token string" style="color:#e3116c">""</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "phoneNumber</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p>And its response has the following structure:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#36acaa">"userId"</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">""</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="creating-an-assistant-agent-to-chat-with-the-user">Creating an Assistant Agent to chat with the user.<a href="https://docs.serenitystar.ai/es/blog/api-call-completion#creating-an-assistant-agent-to-chat-with-the-user" class="hash-link" aria-label="Enlace directo al Creating an Assistant Agent to chat with the user." title="Enlace directo al Creating an Assistant Agent to chat with the user.">​</a></h2>
<p>First, create our Assistant Agent that will chat with the user. An Assistant, is a type of agent that allows you to interact with the user without having to deal with the complexity of the conversation flow. You just send the user's input to the agent, and it will return the response taking into account the context of the conversation.</p>
<p>If you want to learn more about assistant agents, checkout <a href="https://docs.serenitystar.ai/es/docs/serenity-aihub/agents/create-agent">Assistant Agent</a></p>
<ol>
<li>Navigate to the Serenity* platform.</li>
<li>On the Sidebar, go to agents and on this menu, select "New agent" at the top right. You will be taken Serena creation chat, we will skip this step, press on "Create Manually" and select "Assistant Agent"
<img decoding="async" loading="lazy" alt="Access to agent grid" src="https://docs.serenitystar.ai/es/assets/images/image-ea072ede62a10708d84a7c0eeea0c2aa.png" width="1364" height="633" class="img_ev3q">
<img decoding="async" loading="lazy" alt="Select create manually" src="https://docs.serenitystar.ai/es/assets/images/create-agent-manually-from-serena-c556ccc9a96604b4add789f79c55c6f9.png" width="1702" height="1008" class="img_ev3q">
<img decoding="async" loading="lazy" alt="Select assistant agent" src="https://docs.serenitystar.ai/es/assets/images/image-1-8e1759a418e150bfe8eed09f94f2be14.png" width="1365" height="633" class="img_ev3q"></li>
</ol>
<p>The form will have several tabs, <strong>General</strong>, <strong>Model</strong>, <strong>Skills</strong>, <strong>Parameters</strong>, <strong>Knowledge</strong>, <strong>Behaviour</strong>.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="general-tab">General Tab<a href="https://docs.serenitystar.ai/es/blog/api-call-completion#general-tab" class="hash-link" aria-label="Enlace directo al General Tab" title="Enlace directo al General Tab">​</a></h3>
<p>In the <strong>General</strong> tab, fill the form with the following fields:</p>
<ul>
<li>Name: A descriptive name of the agent, in this case, we will use <strong>User Registration Bot</strong></li>
<li>Code: A unique code to identify the agent, we will use <strong>registration-bot</strong></li>
<li>Description: A short description of what the agent does, in this case, we will use <strong>This agent will gather user information and store it in an external API</strong></li>
<li>Avatar (Optional): You can upload an image that will represent the agent.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="behaviour-tab">Behaviour tab<a href="https://docs.serenitystar.ai/es/blog/api-call-completion#behaviour-tab" class="hash-link" aria-label="Enlace directo al Behaviour tab" title="Enlace directo al Behaviour tab">​</a></h3>
<ul>
<li>
<p>Initial Bot Message: This is the first message that the agent will send to the user. In this case, we will use <strong>Hello! I'm here to help you register in our platform. Please provide me with your Name, Last Name and Phone Number.</strong></p>
</li>
<li>
<p>Personality: Here we have to tell the agent what we want to do. In this case, we want to gather users information, we will be using the advanced mode. Open the advanced mode and set the following prompt</p>
<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">Your goal is to register users in our platform, for this you have to retrieve and store user data.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">The data you must retrive is:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- Name</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- Last Name</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">- Phone Number</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Prompt the user to gather this information.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Once you have all the information. You must store the user data through an httpp request with the following body format:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "name": "",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "lastName":"",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "phoneNumber:</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">}</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">If the storage is correct, you should return the userId you have received. If its incorrect, reply "It's not posible to store the information right now"</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
<p><img decoding="async" loading="lazy" alt="Extended view of agents personality" src="https://docs.serenitystar.ai/es/assets/images/image-2-b2730ee66fd1378880f29e181eb6a85d.png" width="1362" height="636" class="img_ev3q"></p>
</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="skills-tab">Skills Tab<a href="https://docs.serenitystar.ai/es/blog/api-call-completion#skills-tab" class="hash-link" aria-label="Enlace directo al Skills Tab" title="Enlace directo al Skills Tab">​</a></h3>
<ol>
<li>
<p>Click on "<strong>Add Skills</strong>"
<img decoding="async" loading="lazy" alt="Add skills option" src="https://docs.serenitystar.ai/es/assets/images/image-3-3471452f75115ba655a13afa010598c9.png" width="1365" height="631" class="img_ev3q"></p>
</li>
<li>
<p>Add the Http Request Plugin:
<img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-4-0d09191a0d315e0146589b839910ddb3.png" width="1361" height="626" class="img_ev3q"></p>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="configuring-the-plugin">Configuring the Plugin<a href="https://docs.serenitystar.ai/es/blog/api-call-completion#configuring-the-plugin" class="hash-link" aria-label="Enlace directo al Configuring the Plugin" title="Enlace directo al Configuring the Plugin">​</a></h2>
<p>Fill out the form for the API configurations on the side panel wizard. Set up the authorization of your API, and complete de required fields.</p>
<p>In this example we will be using a mock server with no authorization so we only need to fill out the description and URI.</p>
<p><strong>Description:</strong> This field should contain a description of what the endpoint does or the goal of the http request as the AI will use it to decide wether or not to make the call.</p>
<p><strong>Body:</strong> As the body will be filled by the agent, we can leave it empty</p>
<p><strong>URI:</strong> The endpoint of the request we will be using</p>
<p>Finally our Http Request Plugin looks something like this
<img decoding="async" loading="lazy" alt="Configuration of the http request plugin" src="https://docs.serenitystar.ai/es/assets/images/image-5-ecc3dea9b20f2a8e0205c7c72bb2c2d0.png" width="1361" height="630" class="img_ev3q">
<img decoding="async" loading="lazy" alt="Configuration of the http request plugin" src="https://docs.serenitystar.ai/es/assets/images/image-9-282ec97c69e9375aaf392b948bbfd79b.png" width="1361" height="630" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="testing-the-assistant">Testing the Assistant<a href="https://docs.serenitystar.ai/es/blog/api-call-completion#testing-the-assistant" class="hash-link" aria-label="Enlace directo al Testing the Assistant" title="Enlace directo al Testing the Assistant">​</a></h2>
<p>Finish by clicking on the "<strong>Create</strong>" button. You will be redirected to the agent's list.</p>
<p>Search for the agent an open it.</p>
<p>At this point, the assistant is ready, so let's try it out by writing on the preview window.</p>
<p><img decoding="async" loading="lazy" alt="Asking the agent to register" src="https://docs.serenitystar.ai/es/assets/images/image-6-26ce7b465fa68e17e3f07aaaca813c45.png" width="649" height="434" class="img_ev3q">
<img decoding="async" loading="lazy" alt="Agents response and succesfull registration" src="https://docs.serenitystar.ai/es/assets/images/image-7-9acf1cc1d3f5d9329d700f85f1dc05e0.png" width="663" height="243" class="img_ev3q"></p>
<p>We can additionaly take a look at the mock server to make sure the request was succesfully received.</p>
<p><img decoding="async" loading="lazy" alt="alt text" src="https://docs.serenitystar.ai/es/assets/images/image-8-1856feee609d2366efc2ee669607a825.png" width="1208" height="263" class="img_ev3q"></p>
<p>Great! It seems like the Agent has successfully sent the gathered data to the API and received a response.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="wrapping-it-up">Wrapping it up<a href="https://docs.serenitystar.ai/es/blog/api-call-completion#wrapping-it-up" class="hash-link" aria-label="Enlace directo al Wrapping it up" title="Enlace directo al Wrapping it up">​</a></h3>
<ul>
<li>Agents can make API calls by including the HTTP Request Skill</li>
<li>The plugin description should be comprehensive so that the agents can identify when to call it, specially when more than one call is configured.</li>
<li>The agent can retrieve an create a body from the conversation with the user</li>
<li>For better results, use Open AI Models when using this skills.</li>
<li>Http Request can manage various types of authorization depending on the endpoint requirements</li>
</ul>]]></content:encoded>
            <category>API Requests</category>
            <category>Plugins</category>
            <category>Agents</category>
        </item>
        <item>
            <title><![CDATA[How to incorporate the chat widget in Wordpress]]></title>
            <link>https://docs.serenitystar.ai/es/blog/wordpress-integration</link>
            <guid>https://docs.serenitystar.ai/es/blog/wordpress-integration</guid>
            <pubDate>Wed, 29 May 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[The Chat Widget module allows you to quickly integrate your agents into your site.]]></description>
            <content:encoded><![CDATA[<p>The Chat Widget module allows you to quickly integrate your agents into your site.</p>
<p>This module is designed to be as simple as possible to integrate, and it provides a simple API to customize it to your needs.</p>
<p>This article will guide you through the process of adding the Chat Widget module to a Wordpress site.</p>
<p>If you want to learn more about this module, checkout the <a href="https://docs.serenitystar.ai/es/docs/client-library-reference/javascript-chat-widget">Chat Widget module</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="getting-code-snippets-for-my-agent">Getting code snippets for my agent<a href="https://docs.serenitystar.ai/es/blog/wordpress-integration#getting-code-snippets-for-my-agent" class="hash-link" aria-label="Enlace directo al Getting code snippets for my agent" title="Enlace directo al Getting code snippets for my agent">​</a></h2>
<p>To add a new instance of the chat widget, you'll need to add the following resources to your HTML file:</p>
<ul>
<li>Link to the Chat Widget CSS &amp; JS files</li>
<li>Empty HTML element that will be replaced by the widget</li>
<li>Component initialization script</li>
</ul>
<ol>
<li>
<p>Go to Serenity* AI Hub and select the agent type you want to use.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/serenity-sidebar-0a5f6336bd1da3877748cad4589d7321.png" width="314" height="419" class="img_ev3q"></p>
</li>
<li>
<p>Inside the list of agents, filter by the name of the agent you want to use and press the edit button.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/serenity-agent-index-2a3ea2083cef9d0e9ece0b615084c869.png" width="1347" height="431" class="img_ev3q"></p>
</li>
<li>
<p>Once in the Agent Designer screen, click on the "Code Snippets" button in the top right corner.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/serenity-agent-c6d7b075e0e5fa23c91ae415b0e0f714.png" width="663" height="592" class="img_ev3q"></p>
</li>
<li>
<p>Once in the code snippets you will find a selector where you can choose between different options.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/snippets-2bc1bbcd182fbd633399eca02e3e885e.png" width="1364" height="639" class="img_ev3q"></p>
</li>
<li>
<p>Select JavaScript code language.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/snippets-js-db22fb40d8b5ade7395b678aefb8564b.png" width="1364" height="639" class="img_ev3q"></p>
</li>
<li>
<p>Copy the fragments provided.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/snippets-js-sources-2bfa10aab71ba014693613e7d2635179.png" width="1364" height="638" class="img_ev3q"></p>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="installing-the-required-wordpress-plugins">Installing the required Wordpress plugins<a href="https://docs.serenitystar.ai/es/blog/wordpress-integration#installing-the-required-wordpress-plugins" class="hash-link" aria-label="Enlace directo al Installing the required Wordpress plugins" title="Enlace directo al Installing the required Wordpress plugins">​</a></h2>
<p>Once we got the code snippets, we'll need to visit our WordPress dashboard.
<img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/wordpress-dashboard-5df4792dc5da5e3b38060b0fcd146ad2.png" width="1347" height="610" class="img_ev3q"></p>
<ol>
<li>
<p>In the wordpress dashboard, we will go to plugins.
<img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/wordpress-plugins-39b8eb49780904c594474ced1a684284.png" width="359" height="450" class="img_ev3q"></p>
</li>
<li>
<p>Before incorporating the chat, we must verify that we have installed the plugin "Simple Custom CSS and JS".</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/wordpress-check-plugins-3b210172b5535ac9ba88e205eae4ddd0.png" width="429" height="453" class="img_ev3q"></p>
</li>
<li>
<p>In case you do not have the plugin, click the "Add new plugin" button in the sidebar.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/add-plugin-a40ce87722489afadd229fe565e61823.png" width="1349" height="411" class="img_ev3q"></p>
</li>
<li>
<p>Type "Simple Custom CSS and JS" in the search box.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/search-plugin-95c167106ffb4866686aa2d8eac94012.png" width="1349" height="484" class="img_ev3q"></p>
</li>
<li>
<p>Press "Install Now" and then "Activate".</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/activate-plugin-a820a94dd596e87c228b0b9e30d29c9d.png" width="748" height="489" class="img_ev3q"></p>
</li>
<li>
<p>After activation the "Custom CSS &amp; JS" option will appear in the sidebar.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/plugin-installed-8e3f24f4dafce71cbd8a67213f38bb27.png" width="756" height="488" class="img_ev3q"></p>
</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="adding-code-snippets-to-wordpress">Adding code snippets to Wordpress<a href="https://docs.serenitystar.ai/es/blog/wordpress-integration#adding-code-snippets-to-wordpress" class="hash-link" aria-label="Enlace directo al Adding code snippets to Wordpress" title="Enlace directo al Adding code snippets to Wordpress">​</a></h2>
<p>With the plugin activated, it's now time to add the code snippets for the chat widget. Once we're done, the chat will be displayed in the bottom right corner of the screen.</p>
<p><img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/serenity-without-chat-53d6578f5a29e8cbe91056de8e8d1a0c.png" width="1415" height="1233" class="img_ev3q"></p>
<p>To add the snippets we must go to the "<strong>Custom CSS &amp; JS</strong>" option in the Wordpress sidebar, and then use the "<strong>Add HTML Code</strong>" and "<strong>Add JS Code</strong>" buttons.
<img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/wordpress-scripts-792093928ac567fa7b76e61efc7a55ed.png" width="824" height="253" class="img_ev3q"></p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="adding-css--html-snippets">Adding CSS &amp; HTML snippets<a href="https://docs.serenitystar.ai/es/blog/wordpress-integration#adding-css--html-snippets" class="hash-link" aria-label="Enlace directo al Adding CSS &amp; HTML snippets" title="Enlace directo al Adding CSS &amp; HTML snippets">​</a></h3>
<ol>
<li>
<p>Go to "<strong>Custom CSS &amp; JS</strong>", and then click on "<strong>Add HTML Code</strong>"</p>
</li>
<li>
<p>Give it a title and paste in the code box the snippets specified below</p>
<div class="language-html codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-html codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token comment" style="color:#999988;font-style:italic">&lt;!-- Empty div to replace with the chat --&gt;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag" style="color:#00009f">div</span><span class="token tag" style="color:#00009f"> </span><span class="token tag attr-name" style="color:#00a4db">id</span><span class="token tag attr-value punctuation attr-equals" style="color:#393A34">=</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag attr-value" style="color:#e3116c">aihub-chat</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token tag punctuation" style="color:#393A34">&lt;/</span><span class="token tag" style="color:#00009f">div</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token comment" style="color:#999988;font-style:italic">&lt;!-- Chat widget resources --&gt;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token tag punctuation" style="color:#393A34">&lt;</span><span class="token tag" style="color:#00009f">script</span><span class="token tag" style="color:#00009f"> </span><span class="token tag attr-name" style="color:#00a4db">src</span><span class="token tag attr-value punctuation attr-equals" style="color:#393A34">=</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag attr-value" style="color:#e3116c">https://hub.serenitystar.ai/resources/chat.js</span><span class="token tag attr-value punctuation" style="color:#393A34">"</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><span class="token script"></span><span class="token tag punctuation" style="color:#393A34">&lt;/</span><span class="token tag" style="color:#00009f">script</span><span class="token tag punctuation" style="color:#393A34">&gt;</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
</li>
<li>
<p>Publish the code
<img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/wordpress-html-script-5262f6eebd89040922d65af9f5212e41.png" width="1347" height="562" class="img_ev3q"></p>
</li>
</ol>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="adding-the-js-code">Adding the JS code<a href="https://docs.serenitystar.ai/es/blog/wordpress-integration#adding-the-js-code" class="hash-link" aria-label="Enlace directo al Adding the JS code" title="Enlace directo al Adding the JS code">​</a></h3>
<ol>
<li>
<p>Go to "<strong>Custom CSS &amp; JS</strong>", and then click on "Add JS Code".</p>
</li>
<li>
<p>Give it a title and paste in the code box the snippets specified below</p>
<div class="language-js codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-js codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token dom variable" style="color:#36acaa">document</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">addEventListener</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"DOMContentLoaded"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> chat </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">new</span><span class="token plain"> </span><span class="token class-name">AIHubChat</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"aihub-chat"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">     </span><span class="token literal-property property" style="color:#36acaa">apiKey</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"&lt;Your API key&gt;"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">     </span><span class="token literal-property property" style="color:#36acaa">agentCode</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"&lt;Your Agent Code&gt;"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">     </span><span class="token literal-property property" style="color:#36acaa">baseURL</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"https://api.serenitystar.ai/api"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  chat</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">init</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copiar código" title="Copiar" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
</li>
<li>
<p>Publish the code
<img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/wordpress-js-script-7f9bf350a17771466f11749335f58733.png" width="1347" height="608" class="img_ev3q"></p>
</li>
</ol>
<p>Once these changes have been made, the chat widget should be displayed on the Wordpress site.
<img decoding="async" loading="lazy" alt="image" src="https://docs.serenitystar.ai/es/assets/images/serenity-with-chat-c8d711a01a126c7bac279c7f61d483bc.png" width="1422" height="1239" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="https://docs.serenitystar.ai/es/blog/wordpress-integration#conclusion" class="hash-link" aria-label="Enlace directo al Conclusion" title="Enlace directo al Conclusion">​</a></h2>
<p>In this article, we've learned how to add the Chat Widget module to a Wordpress site. This module allows you to quickly integrate your agents into your site, and it provides a simple API to customize it to your needs.</p>
<p>If you want to learn more about this module, checkout the <a href="https://docs.serenitystar.ai/es/docs/client-library-reference/javascript-chat-widget">Chat Widget module</a></p>]]></content:encoded>
            <category>wordpress</category>
            <category>chat-widget</category>
        </item>
        <item>
            <title><![CDATA[Welcome]]></title>
            <link>https://docs.serenitystar.ai/es/blog/welcome</link>
            <guid>https://docs.serenitystar.ai/es/blog/welcome</guid>
            <pubDate>Tue, 28 May 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[Welcome to Serenity* Star Blog! This is the place where we share news, updates, and insights about our products, features, and more.]]></description>
            <content:encoded><![CDATA[<p>Welcome to Serenity* Star Blog! This is the place where we share news, updates, and insights about our products, features, and more.</p>
<p>Stay tuned for the latest information and announcements. We're excited to have you here! 🚀</p>]]></content:encoded>
        </item>
    </channel>
</rss>