<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cabdukayumova on Medium]]></title>
        <description><![CDATA[Stories by Cabdukayumova on Medium]]></description>
        <link>https://medium.com/@cabdukayumova?source=rss-a424dfc6fe0a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ohgoG0OBY4zUgJ9E55eHZA.jpeg</url>
            <title>Stories by Cabdukayumova on Medium</title>
            <link>https://medium.com/@cabdukayumova?source=rss-a424dfc6fe0a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:48:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cabdukayumova/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Secure API Gateway connection to AWS]]></title>
            <link>https://awstip.com/secure-api-gateway-connection-to-aws-91fc5f93d921?source=rss-a424dfc6fe0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/91fc5f93d921</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-api-gateway]]></category>
            <category><![CDATA[aws-iam]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[api-security]]></category>
            <dc:creator><![CDATA[Cabdukayumova]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 12:24:39 GMT</pubDate>
            <atom:updated>2026-11-10T09:38:08.244Z</atom:updated>
            <content:encoded><![CDATA[<p>We all know how an API can be a lifesaver when you want to integrate a few tools together. But how can you be sure you can provide additional security to your API requests? Let’s review the use case:</p><p>Think of a customer portal where people upload passports, bank statements, or signed contracts. Three things matter: <strong>knowing who did what</strong>, <strong>limiting how long access exists</strong>, and <strong>keeping the data itself locked down</strong>. One solution can be attaching logs from your cloud or system to be able to track, but will it solve all of your needs in a secure way?</p><p>Let’s review how we can solve this issue by providing a secure API connection to an S3 bucket in AWS.</p><p><strong>What will be covered?</strong></p><ul><li>Architectural solution</li><li>Set up S3</li><li>Set up IAM</li><li>Set up Lambda</li><li>Set up API Gateway</li><li>Test the connection in Postman</li></ul><p>Let’s get started =)</p><h3>Architectural solution</h3><p>From our use case, we want to achieve a few goals:</p><ol><li>Audit trail: who uploaded what</li><li>No direct access to the data</li><li>Short life of accessible URL</li></ol><h4>Direct integration</h4><p>If we use the regular architecture like below, our application will still work. But with this, we should give direct access to the API, where each request connects directly to S3. It will give attackers the opportunity to attack your AWS resources, which could make your business stall or cause unnecessary compute requests. Additionally, from an audit perspective, because it is direct access, you should additionally manage user access to answer who uploaded what and when. And users can upload (or forget) to manage sensitive files to the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*YQZXqf1K8yyH_rH8a2kwdA.gif" /><figcaption>Direct API integration</figcaption></figure><h4>Secure integration</h4><p>In the second architectural solution, we will use the same services of AWS, but with a few changes. As you can see, the first user should request to upload the file; Lambda will process it and, based on the policy, will return a URL for uploading the file temporarily. After user will upload the file directly to the S3 with using temporarily URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*sHD-fOd9NLZtrECDbJ7yvw.gif" /><figcaption>Two step uploading the file to S3</figcaption></figure><p><strong>Why “temporary” URL matters for security?</strong></p><ul><li><strong>The bucket stays private.</strong> You never make it public or give the client AWS credentials. The URL is one-time use.</li><li><strong>It expires.</strong> In the setup I gave you, it’s valid for 5 minutes (you can manage the time), so a leaked URL becomes useless quickly.</li><li><strong>Your API still controls access.</strong> Only callers who pass IAM auth (with AWS signature or other ways of auth) can get a URL, so you decide who may upload and can validate the filename and type before issuing it.</li></ul><p><strong>What is the downside of the “temporary” URL?</strong></p><ul><li>It’s two steps for the client instead of one. But if you are using it within an application, you can manage it from business logic.</li><li>Your Lambda never sees the file, so you can’t inspect it before it lands in S3. Validation (virus scan, type check) has to happen afterward via an S3 event trigger. It means you should add a security function.</li><li>Anyone who holds the URL can use it until it expires, so keep expiry short.</li></ul><p>Additionally, you should consider that direct upload of the file will speed up the process (the user should not go through loops of checks and computing each time). And in the cases when you should upload big enough files (up to 5GB) you can use this solution. For official documentation, check it out <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html">here</a>.</p><h3>Set up S3</h3><p>Open your AWS console and search for S3 from the top-left search bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*Mc1BumQP5WJisi73X0ANpg.png" /><figcaption>Searching S3</figcaption></figure><p>Select S3, and click the Create bucket button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*j-AK9GVK9TzhnkYm27g0Nw.png" /><figcaption>Creating a bucket</figcaption></figure><p>Select General Purpose, and give a name for the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*36UTNy-Z9EEr-I0vDcylZg.png" /><figcaption>Creating a bucket</figcaption></figure><p>Make sure you allow public access to your bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r4lMVv0OB_5DCAkWLzhLMQ.png" /><figcaption>Creating a bucket</figcaption></figure><p>Next, scroll down and select encryption options. Depending on your security requirements, encryption can be different too. Click the Create bucket button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*btbrJqsESo_w7-YViMNMrQ.png" /><figcaption>Selecting encryption methon</figcaption></figure><p>When your bucket is created, go to the Permissions tab and click the Edit button for the Bucket policy section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DRI0fkYR75LkLTno365RNQ.png" /><figcaption>Editing bucket policy</figcaption></figure><p>Add the policy for the bucket and click the Update button.</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [{<br>    &quot;Sid&quot;: &quot;DenyInsecureTransport&quot;,<br>    &quot;Effect&quot;: &quot;Deny&quot;,<br>    &quot;Principal&quot;: &quot;*&quot;,<br>    &quot;Action&quot;: &quot;s3:*&quot;,<br>    &quot;Resource&quot;: [<br>      &quot;arn:aws:s3:::my-secure-uploads-123&quot;,<br>      &quot;arn:aws:s3:::my-secure-uploads-123/*&quot;<br>    ],<br>    &quot;Condition&quot;: { &quot;Bool&quot;: { &quot;aws:SecureTransport&quot;: &quot;false&quot; } }<br>  }]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*PlRJxipyprcshUwCHrVvEg.png" /><figcaption>Editing the policy</figcaption></figure><p>That is all for the S3 bucket.</p><blockquote><strong>Note:</strong> Make sure all of your services in AWS in one region. For example, if you are using us-east-2, make sure S3, Lambda and others on the same region. You can check it on top right of your console.</blockquote><h3>Set up IAM</h3><p>From the top-left corner search bar in your AWS console, search for IAM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*Xc8PlYCa1Xa8oMvO0xEs-Q.png" /><figcaption>Searching IAM</figcaption></figure><p>Select IAM from the results, go to the Roles tab, and click the Create role button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Ql95Z-viP4PyXOElhAS3Q.png" /><figcaption>Creating a role</figcaption></figure><p>Select AWS service and Lambda from the drop-down menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*R3dlcSF6BO-9x4lEI1uJ8A.png" /><figcaption>Settings of role</figcaption></figure><p>We will add policies in two ways: from existing and from inline (writing it in JSON). Search for <em>AWSLambdaBasicExecutionRole</em> for the existing policy. We need this for basic debugging and logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*t-Hlicvbz2bWzaKmZNQ2TA.png" /><figcaption>Adding existing policy</figcaption></figure><p>Now, select the Create inline policy section and write the policy. You can see I have the name of my resource and what action is expected from the policy. Make sure you changed your resource name to yours, in the other case you will see the error.</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [{<br>    &quot;Effect&quot;: &quot;Allow&quot;,<br>    &quot;Action&quot;: &quot;s3:PutObject&quot;,<br>    &quot;Resource&quot;: &quot;arn:aws:s3:::my-secure-uploads-123/uploads/*&quot;<br>  }]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALlexbo7hvtFplYTE_4pBQ.png" /><figcaption>Adding inline policy</figcaption></figure><p>Next, give a name for your role and click the Create role button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*wY3z8bYTYs0WZVHDXskhYw.png" /><figcaption>Creating a role</figcaption></figure><p>That was all for the IAM, now time to Lambda.</p><h3>Set up Lambda</h3><p>From the console top-left menu, search for Lambda, and click the Create function button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*wOy0QPKFYQ3xmNX67MzlEQ.png" /><figcaption>Searching Lambda</figcaption></figure><p>Give a name for the function and select your programming language (in my case, it is Python 3.12).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*hko7DyMdhhT5IpfwMdQdOg.png" /><figcaption>Creating a function</figcaption></figure><p>Scroll down, toggle Custom execution role, and select a role that you created before. Make sure you clicked the Save button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*49jciTOyc7Ac6nlo7akxTA.png" /><figcaption>Adding a role</figcaption></figure><blockquote><strong>Note:</strong> If you don’t add your custom role, Lambda usually by default creates a role in IAM. But that role may not have all your needed policies. Make sure you attached right role for the execution.</blockquote><p>Now, go to the Configuration tab and Environment variables. Click the Edit button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZMqgFClTLQZBwunkx9XYQ.png" /><figcaption>Configurations</figcaption></figure><p>Add <em>BUCKET = {YOUR_BUCKET_NAME}. </em>It is important to keep your code dynamic enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JdkLtex5DjBAMWwlNYe5Ag.png" /><figcaption>Adding variables</figcaption></figure><p>Next, go back to the Code tab, copy and paste the code, and click the Deploy button.</p><pre>import json<br>import os<br>import uuid<br><br>import boto3<br>from botocore.config import Config<br><br>REGION = &quot;us-east-2&quot;<br><br>s3 = boto3.client(<br>    &quot;s3&quot;,<br>    region_name=REGION,<br>    endpoint_url=&quot;https://s3.&quot; + REGION + &quot;.amazonaws.com&quot;,<br>    config=Config(signature_version=&quot;s3v4&quot;),<br>)<br><br>BUCKET = os.environ[&quot;BUCKET&quot;]<br><br>ALLOWED_TYPES = [<br>    &quot;application/pdf&quot;,<br>    &quot;image/png&quot;,<br>    &quot;image/jpeg&quot;,<br>    &quot;text/csv&quot;,<br>    &quot;text/plain&quot;,<br>]<br><br><br>def respond(status, body):<br>    return {<br>        &quot;statusCode&quot;: status,<br>        &quot;headers&quot;: {&quot;Content-Type&quot;: &quot;application/json&quot;},<br>        &quot;body&quot;: json.dumps(body),<br>    }<br><br><br>def lambda_handler(event, context):<br>    try:<br>        body = json.loads(event.get(&quot;body&quot;) or &quot;{}&quot;)<br>    except json.JSONDecodeError:<br>        return respond(400, {&quot;error&quot;: &quot;Invalid JSON&quot;})<br><br>    filename = os.path.basename(body.get(&quot;filename&quot;, &quot;&quot;)).strip()<br>    content_type = body.get(&quot;contentType&quot;, &quot;&quot;)<br><br>    if not filename:<br>        return respond(400, {&quot;error&quot;: &quot;filename is required&quot;})<br><br>    if content_type not in ALLOWED_TYPES:<br>        return respond(400, {&quot;error&quot;: &quot;contentType not allowed&quot;})<br><br>    identity = event.get(&quot;requestContext&quot;, {}).get(&quot;identity&quot;, {})<br>    caller = identity.get(&quot;userArn&quot;, &quot;unknown&quot;)<br><br>    key = &quot;uploads/&quot; + str(uuid.uuid4()) + &quot;-&quot; + filename<br><br>    url = s3.generate_presigned_url(https://medium.com/%3Cbr%3E%20%20%20%20%20%20%20%20&quot;put_object&quot;,%3Cbr%3E%20%20%20%20%20%20%20%20Params=%7B&quot;Bucket&quot;:%20BUCKET,%20&quot;Key&quot;:%20key,%20&quot;ContentType&quot;:%20content_type%7D,%3Cbr%3E%20%20%20%20%20%20%20%20ExpiresIn=300,%3Cbr%3E)<br><br>    print(caller)<br>    print(key)<br><br>    return respond(<br>        200,<br>        {<br>            &quot;uploadUrl&quot;: url,<br>            &quot;key&quot;: key,<br>            &quot;requiredHeaders&quot;: {&quot;Content-Type&quot;: content_type},<br>        },<br>    )</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*sMjOz7EOHxgDtmpbMzOmOw.png" /><figcaption>Deploying the code</figcaption></figure><p>A few things to watch here:</p><ul><li>Make sure you added your bucket to the environment variables. In the other case your should write manually your bucket name in the code.</li><li>Make sure your Runtime settings Handle is <em>lambda_function.lambda_handler. </em>The Handler setting is how Lambda knows which function in your code to call when a request arrives. If it doesn’t match your code, Lambda can’t start your function at all, so nothing else you configured (IAM, S3, API Gateway) ever gets a chance to run.</li></ul><p>That was all for Lambda. Time to move to API Gateway.</p><h3>Set up API Gateway</h3><p>From your console top left menu, search for API Gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*-NHxH4wGg5Txe7cMsU5Prg.png" /><figcaption>Searching API Gateway</figcaption></figure><p>Select the Build button in the REST API section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nztm29zPTx-OXvPLUhzrWA.png" /><figcaption>Creating API</figcaption></figure><p>Add a resource to your API; in this case, name it <em>upload</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wClcR7eCd2Izk5TkOmgeiQ.png" /><figcaption>Creating a resource</figcaption></figure><p>Inside the resource, click the Create method button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AwsgdHGk9T1p1pEqj3RyUw.png" /><figcaption>Creating a method</figcaption></figure><p>Select Method type (POST), integration type (Lambda), your function which you created earlier. Make sure you toggle on Lambda proxy integration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*7Qo-bqdXpWN6o7lZhqCdmg.png" /><figcaption>Creating a method</figcaption></figure><p>Next, scroll down and, from the Method request settings section, select AWS IAM in the Authorization dropdown. Click the Create button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*NN5SQqJ7fHteVsnmWNsdhg.png" /><figcaption>Request settings</figcaption></figure><p>When the method is created, click the Deploy API button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v3WBvwvkfhiBtg9OUQsiUg.png" /><figcaption>Deploying API</figcaption></figure><p>If you don’t have a stage yet (dev, test, prod, etc.), select the New stage and give a name (dev).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*Xbd0vynbNyDjJ8CsJ9fUlQ.png" /><figcaption>Deploying API</figcaption></figure><p>When your API is deployed, make sure you copy the Invoke URL of your API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*kX0CCHrJdtdQiFrNqZh8oQ.png" /></figure><p>That was all for API Gateway. Time to test the connection in Postman.</p><h3>Test the connection in Postman</h3><p>I need to create a user and attach a policy to the user so I can test the connection. First. I go to IAM from the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*CrE1wQ1kl9NmOrIRqhBzFg.png" /><figcaption>Creating a user</figcaption></figure><p>Go to IAM users and click the Create user button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yGklnC7JRQuEeNR4Rw9r_A.png" /><figcaption>Creating user</figcaption></figure><p>Give a name for your user (postman-tester), and click the inline policy section. Here, give a name for your policy, add JSON code, and click the Save button. Make sure the resource name matches your API resource name.</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [{<br>    &quot;Effect&quot;: &quot;Allow&quot;,<br>    &quot;Action&quot;: &quot;execute-api:Invoke&quot;,<br>    &quot;Resource&quot;: &quot;arn:aws:execute-api:us-east-1:123456789012:abc123/dev/POST/upload&quot;<br>  }]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*jEC3Ayl7eCUq8gXdlltg4g.png" /><figcaption>Creating a policy</figcaption></figure><p>Next, select the Attach policies directly section, search for the recently created policy, and click the Next button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PWyOrtOVX6VPvsnKtcHqOg.png" /><figcaption>Attaching a policy</figcaption></figure><p>Make sure you saved changes and click the Create user button. When your user is created, go to the Security credentials tab and click the Create access key button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Sf4iidoYMUx8-CWEIwaXw.png" /><figcaption>Creating a security key</figcaption></figure><p>Here, select Other and click the Next button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jo4ZyBDpQqnDYInT4bx-6w.png" /><figcaption>Creating a secret key</figcaption></figure><p>Make sure you copied/downloaded your access key and secret access key. If you don’t do it in this step, you will lose it and can’t get access afterward. Finally, click the Done button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwFm7hF1v8gr7C1qKBiokQ.png" /><figcaption>Creating secret key</figcaption></figure><p>So, we finished setting up the AWS user; now time to move to Postman. <br>First, make sure you copied and pasted your URL from your deployed API into the address bar, and you selected the POST method.</p><p>Second, go to the Authorization tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*BEmw48kfYAPmlTgK7svs_Q.png" /><figcaption>Testing in Postman</figcaption></figure><p>From the Type dropdown, select AWS signature, and paste the access key and secret access key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TNhX6VBNhEbd2ouQ_cN3QQ.png" /><figcaption>Testing in Postman</figcaption></figure><p>Scroll down, and make sure you have entered your region and service name (in my case, <em>us-east-2</em> and <em>execute-api</em>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*ty84z8bQZ_b3N8-lQbHiAg.png" /><figcaption>Testing in Postman</figcaption></figure><p>Next, go to the Body tab and select JSON. Paste the request below and click the Send button.</p><pre>{ &quot;filename&quot;: &quot;report.pdf&quot;, &quot;contentType&quot;: &quot;application/pdf&quot; }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-VODoH0rx0H0g7AlyRVcrw.png" /><figcaption>Sending request</figcaption></figure><p>As you can see, my first request came back successfully with a success message and a long URL; click the URL. Postman will automatically open in a new tab. Make sure you added a header: Content-Type: application/pdf. As it was returned in the message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*zKTBcGqyULi9jfPS3Q41IQ.png" /><figcaption>Setting up an API</figcaption></figure><p>Now, check if the method is PUT. Go to body, select Binary and some pdf file. Click the Send button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NfCOqQLm8V_HiVSTumnyYw.png" /><figcaption>Testing an API</figcaption></figure><p>If you open your S3 bucket, you can see your uploaded file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gORavMY_FzKIRpdm_m7_Q.png" /><figcaption>Final results.</figcaption></figure><p>That was all for this post. For learning purposes, I would recommend testing your code. The current URL will be set up for 300 seconds (5 minutes). Try to use the same URL after 5 minutes, or before, to see what will happen.</p><h3>Summary</h3><p>As you can see, there are ways to secure your API connection to the AWS services. Of course, this is not a universal solution for all API integrations, but like other solutions, this has a place to be. Before integrating any solutions, make sure you understand business needs and security levels.</p><p>Have fun =)</p><p>And make sure you cleaned up your environment after testing it.<br>Let me know what other secure API connection methods you know of or have used before.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91fc5f93d921" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/secure-api-gateway-connection-to-aws-91fc5f93d921">Secure API Gateway connection to AWS</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating Meshy AI with OutSystems: Generating 3D Models via REST API]]></title>
            <link>https://cabdukayumova.medium.com/integrating-meshy-ai-with-outsystems-generating-3d-models-via-rest-api-ee29480223a7?source=rss-a424dfc6fe0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee29480223a7</guid>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[3d-printing]]></category>
            <category><![CDATA[rest-api]]></category>
            <dc:creator><![CDATA[Cabdukayumova]]></dc:creator>
            <pubDate>Fri, 31 Jul 2026 15:23:04 GMT</pubDate>
            <atom:updated>2026-07-31T15:23:04.663Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I started to play around with 3D object modeling tools. After some research, I stopped in at <a href="https://www.tripo3d.ai/compare/tripo-vs-meshy">Meshy.ai</a>. Don’t know how I ended up on this side of AI and 3D printing. But here we are =)</p><p><strong>What is Meshy AI?</strong></p><p><strong>Meshy AI</strong> is a generative AI platform built for 3D content creation. You can create different formatted 3D assets in .glb, .fbx, .obj, and .usdz formats. Using the REST API, you can create 3D objects in several ways — it can be text-to-3D, image-to-3D, or AI texturing and remesh (you can customize roughness, custom PBR materials, etc.)</p><p><strong>Before starting</strong></p><p>If you are new and don’t want to spend a lot of time or money on testing new tools, you can use the free tier option for 14 days in Meshy; you will get about 600 credits, which will be enough for 20–30 requests (for testing, it seems more than enough). For initial setup with Postman and OutSystems, I used about 100 credits, and now I can play around with other requests. It seems 100 credits is $1. If you are new, you can check the billing details <a href="https://platform.tripo3d.ai/billing">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*uOONzS4LC417XmWy_fwjEg.png" /><figcaption>My billing settings</figcaption></figure><p><strong>What will be covered?</strong></p><ul><li>Architectural solution</li><li>Set up a Meshy.ai API key</li><li>Create a connection with the REST API between OutSystems and Meshy.ai</li><li>Summary</li></ul><p><strong>What will not be covered?</strong></p><p>I will not cover step-by-step API requests in OutSystems and UI. I will show my final results. But if you want more details, let me know in the comments; I will create a step-by-step guideline.</p><p>Let’s get started =)</p><h3>Architectural solution</h3><h4>We Need 2 API Calls!!!</h4><p>Standard HTTP requests (like fetching user profile data) are <strong>synchronous</strong>: you make a request, the server returns the answer in milliseconds, and the connection closes. But generating a 3D model takes at least <strong>10 to 30 seconds</strong> because GPUs must construct complex vertex geometry, calculate light materials, and render textures (depending on request and prompt type). Standard web servers and API gateways drop or time out long-running HTTP connections after a few seconds. To avoid connection timeouts, Meshy AI uses an <strong>asynchronous job-queue pattern</strong>:</p><ol><li><strong>Call 1 (</strong><strong>POST /text-to-3d):</strong> Acts as a <strong>job submission</strong>. You hand the server your prompt. It puts the job into a queue and immediately hands back a task_id (a receipt) so the HTTP connection can close right away.</li><li><strong>Call 2 (</strong><strong>GET /text-to-3d/{id}):</strong> Acts as a <strong>status check</strong>. Your application presents the task_id receipt to ask, <em>&quot;Is my 3D file ready yet?&quot;</em> Once the server responds with&quot;SUCCEEDED&quot;, it gives you the direct download link for the .glb model.</li></ol><p>Below you can see the architectural implementation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dqsBvJiajJmf5UZnScSgpw.jpeg" /><figcaption>Architectural Implementation</figcaption></figure><h3>Set up Meshy.ai API key</h3><p>First, log in to your <a href="https://developers.tripo3d.ai/en">developer account</a>. Go <a href="https://developers.tripo3d.ai/en/keys">here</a> where you can create a secret key. In the open window, click the Create new secret key button. For more information, check out the official documentation <a href="https://developers.tripo3d.ai/en/docs/introduction">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*usquy-UFWpjV2tW7A6QR0Q.png" /><figcaption>Creating a secret key</figcaption></figure><p>In the pop-up menu, give a name for your API key and click the Create key button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*C9zvM6cHvwr79FbB95lghw.png" /><figcaption>Giving a name for the secret key</figcaption></figure><p>Before moving to the next step, make sure you copied your secret key. We will use it in our API requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*5U1A645wbnwSPvRfhDTnBA.png" /><figcaption>Generated API key</figcaption></figure><p>We finished with the Meshy part; now time to move to OutSystems.</p><h3>Create a connection with the REST API between OutSystems and Meshy.ai</h3><p>Open your OutSystems application. Go to the Logic tab, right-click the REST icon, and select Consume REST API. Select a single method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*U9DrVxLUYCvkOW1wrmWZXA.png" /><figcaption>Creating REST API</figcaption></figure><p>Select the POST method. Write the URL given below:</p><pre>https://openapi.tripo3d.ai/v3/generation/text-to-model</pre><p>Make sure you set up your request properly. Go to the Headers tab, and from the drop-down menu select Authorization and Content-Type. Make sure you write the values given below:</p><pre>Authorization: Bearer {your_secret_key}<br>Content-Type: application/json</pre><p>Your prompt body can be anything, you can take it easy for testing and later play around with more complex requests:</p><pre>{<br>    &quot;prompt&quot;: &quot;cute cat with sunglasses&quot;,<br>    &quot;model&quot;: &quot;v3.1-20260211&quot;<br>  }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*QvSJtQCdDY314UqbE__biA.png" /><figcaption>Setting upi POST API</figcaption></figure><p>Before moving to the next step, make sure you tested your API request and click the Copy to response body button. OutSystems will automatically create the right output data structure, which we will use later. As you can see in the picture below, I highlighted <em>Task_id</em>; we will use it for our second GET request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*rz6ABRnYAUYxhlVLRH8aBg.png" /><figcaption>POST API result.</figcaption></figure><p>Time to create the second API request for getting our results. Repeat the same steps as above to create the API. <br>Now, make sure you selected the GET method and the same Authorization method. Copy and paste the task ID that we got in the call before.</p><pre>https://openapi.tripo3d.ai/v3/tasks/{task_id}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*-A1akf3oeWDDYkqGzJ7JPw.png" /><figcaption>GET REST API request</figcaption></figure><p>Before moving to the next steps, make sure you tested the request and click the Copy to response body button. OutSystems will automatically create all needed output data structures.</p><p>That was all for setting up both API requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*raP5QinB0wQwc6DwkmjojA.png" /><figcaption>REST APIs</figcaption></figure><p>Below you can see my results. I added a few service actions and a screen action for this working call. Still working on printing my 3D sunglassed cat =)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0uMNRKwNOTt2hx-ngV_a4g.gif" /><figcaption>UI for 3D model prompt</figcaption></figure><p>Me requested cat result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*VnqzrrE_eQfwf-O9v5JE5A.png" /></figure><h3>Summary</h3><p>I am still working on using an actual 3D model, and will update my printing results later. A few tips on making sure your API will work:</p><ol><li>Make sure your GET request will be in a loop till getting a “success” message. It may tike anytime between <a href="https://developers.tripo3d.ai/en/docs/quick-start">10–120 seconds</a>.</li><li>If you don’t wait it enoug with success message, your downloaded 3D file will not be generated.</li><li>Start with easier prompt requests, and after level up your game.</li></ol><p>If you have more questions, solutions, or ways of creating 3D models, let me know =)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee29480223a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set up OutSystems (ODC) MCP integration to Amazon Kendra]]></title>
            <link>https://itnext.io/how-to-set-up-outsystems-odc-mcp-integration-to-amazon-kendra-4baab3c37ed4?source=rss-a424dfc6fe0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4baab3c37ed4</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[amazon-kendra]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Cabdukayumova]]></dc:creator>
            <pubDate>Thu, 28 May 2026 19:47:50 GMT</pubDate>
            <atom:updated>2026-06-04T01:20:15.364Z</atom:updated>
            <content:encoded><![CDATA[<p>OutSystems Developer Cloud (ODC) provides an opportunity to build an easy way of connecting MCP (Model Context Protocol) models to your applications. One of the MCPs that you can set up is Amazon Kendra. I personally love using AWS, so let’s see what we can do in AWS and OutSystems ODC to achieve a successful connection.</p><h4>Use case</h4><p>We have a few internal unstructured files (in .txt or .pdf format). We want to build an AI agent where users can ask questions, and the AI agent will return results within the scope of those files.</p><h4>What will be covered?</h4><p>Setting up this connection is one of the easiest tasks, especially if you are a beginner in AWS and OutSystems ODC integration. We will walk through Amazon Kendra, uploading files to S3 buckets, and the ODC integration part.</p><h4>What will not be covered?</h4><p>The UI part of the AI agent integration. I am planning to write a second part to this post, where I will walk through it. But for now, it is just the backend.</p><h4>Agenda:</h4><ul><li>Architectural solution for the integration</li><li>Setting up S3 with files</li><li>Setting up Amazon Kendra</li><li>Setting up the OutSystems ODC connection</li><li>Summary</li></ul><p>Let’s get started!</p><blockquote><strong>Note:</strong> I won’t cover data fabrics on the AWS side or the UI on the OutSystems side. Amazon Kendra is used for indexing S3 buckets.</blockquote><h3>Architectural solution for the integration</h3><p><a href="https://aws.amazon.com/search/?searchQuery=kendra">Amazon Kendra</a> is an intelligent enterprise search service powered by machine learning. It basically acts as the brain of our AI agent, doing all the heavy lifting of reading and understanding our files without us needing to build a complex search infrastructure from scratch for unstructured data files (like .txt or .pdf).</p><p>The flow works in three simple steps:</p><ul><li><strong>The Storage:</strong> First, we upload our unstructured internal files (.txt and .pdf) into an <strong>Amazon S3 bucket</strong>. S3 acts as our centralized document repository.</li><li><strong>The Ingestion (Sync):</strong> Next, we connect <strong>Amazon Kendra</strong> to our S3 bucket. Kendra will crawl the bucket, read the files, and build a highly accurate internal search index. We can even set this to sync automatically whenever new files are added!</li><li><strong>The Application Layer (ODC):</strong> Finally, <strong>OutSystems Developer Cloud (ODC)</strong> connects to Amazon Kendra. When a user asks a question in your ODC application, ODC sends that query over to Kendra. Kendra searches its custom index and instantly returns the exact results and answers to ODC for display to the user.</li></ul><p>Of course, we could use Amazon Comprehend or Textract for the same purposes, but Amazon Kendra was developed specifically for working with unstructured data formats. Using it will help reduce the number of services you use in this integration. If you want to see and test other connections, check out <a href="https://cabdukayumova.medium.com/how-to-ask-questions-to-your-own-pdfs-outsystems-aws-integration-guide-872dfad24c44">this </a>or <a href="https://itnext.io/integrate-serverless-ai-with-outsystems-real-world-document-insights-from-s3-38238b89045a">this</a> posts of mine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*kvECbeL4KTv3TPLecMve_Q.gif" /></figure><h3>Setting up S3 with files</h3><p>Go to your AWS <a href="https://signin.aws.amazon.com/signup?request_type=register">console</a>. Search S3 from the left top menu.</p><blockquote><strong>Note</strong>: Before testing the connection, make sure you have some dummy files for uploading.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*VdnWxKlNBpsyXL8_IriaRg.png" /><figcaption>S3 searching results</figcaption></figure><p>Click the Create bucket button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F75TIw_i0LOp2T7Mub8v9Q.png" /><figcaption>Creating bucket</figcaption></figure><p>Now, we should set up the bucket type. Select General purpose and global namespace. Give a name to your bucket. And click the Create button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*1Wn1ClwgQh1-Yw625UenLw.png" /><figcaption>Setting up a bucket</figcaption></figure><p>When your bucket is created, open your bucket and select the Upload button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5wUGb9KwoonxQ3XOyGNPLg.png" /><figcaption>Uploading files</figcaption></figure><p>From opened screen, click Add files. AWS will open your local folders pop-up, select files, and click the Upload button. You can use any kind of files. Make sure you have some information inside, so that later you can test your requests with scoped files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qk3to09MqyPVqfSQUmmqpA.png" /><figcaption>Uploading files</figcaption></figure><p>Make sure your files are uploaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JXDyXC7vP77UuFGTz7FG4A.png" /><figcaption>Uploaded files</figcaption></figure><p>We finished working with the S3 bucket. Now time for Amazon Kendra.</p><h3>Setting up Amazon Kendra</h3><p>From your console top left, search Kendra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*Q-rJZGVfqzum0YUcEuzvIw.png" /><figcaption>Searching Amazon Kendra</figcaption></figure><p>Click the Create an Index button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fOZj-K3ONKe4cqPvjnNQww.png" /><figcaption>Creating an index</figcaption></figure><p>AWS will open a screen where you should fill in some data about your indexing. Give a name and description. From IAM roles, select Create a new role from the drop-down menu. Click the Next button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*eyTChb52vIElk2R_ywjvXw.png" /><figcaption>Creating an index</figcaption></figure><p>In the next window, you should choose the edition type for your indexing. I chose Developer edition, because it is cheaper for PoC, but make sure you check out the official <a href="https://docs.aws.amazon.com/kendra/latest/dg/hiw-index-types.html">documentation </a>for the right edition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*kRkl58n1MIJntjVgACci-g.png" /><figcaption>Creating an index</figcaption></figure><p>Click the Next button; we don’t need to change any other settings. And your Kendra indexing is created successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1j0Wdux-P_3x8MnHJg7ag.png" /><figcaption>Creating an index</figcaption></figure><p>Your index is created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQvZjuAisSKOTcB2W5WrKg.png" /><figcaption>Adding data source</figcaption></figure><p>Now, select Sample AWS documentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*ZfplFhZFz2KMMy_4oc9kJA.png" /><figcaption>Adding a dataset</figcaption></figure><p>Give a name for your dataset, and click the Add data source button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*CoCg2VPtvlaFyviTMvzApg.png" /><figcaption>Adding data source</figcaption></figure><p>Before the next steps, we need to wait. Kendra needs 10–15 minutes to sync up data in the S3 bucket. In some cases, it may take up to 30 minutes (for me, it was 10 minutes). When your index is synced, make sure you copied the Data source ID (we will use it in OutSystems)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FkmB2TJKbjNa8NSA5rDxfQ.png" /><figcaption>Data source ID</figcaption></figure><p>Now we should add users to be able to add users and permissions for being able to call Kendra from OutSystems. Open your index, and go to User Access Control tab. Select the Edit settings button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o-DVmZOReKfRg9F-1jabaw.png" /><figcaption>Adding policy</figcaption></figure><p>In the newly opened screen, select Create a new role, and AWS will show a message saying you should set up a user from IAM. If you click the link, it will open the IAM page. From here, click the Create user button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kVjckM41jWv7AS54HJI2RA.png" /><figcaption>Creating a user</figcaption></figure><p>Give a name for the user and click the Next button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aKJI1jp9AgZr8LVOqurjqw.png" /><figcaption>Creating a user</figcaption></figure><p>On the next screen, select Attach policies directly, and search for <em>AmazonKendraReadOnly</em>. We should make sure it will be read only, in the other case AI Agents can delete or change core data files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cik_-B4Vi-oTd2wfLfrFtQ.png" /><figcaption>Attaching a policy</figcaption></figure><p>When your user is created, go to the Security and credentials tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*wOSyVvLtiQtsG2qpbui7EA.png" /><figcaption>Creating a security key</figcaption></figure><p>Now, click the Create access key button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mWZXMh5iTD9ExxyOqETNTw.png" /><figcaption>Creating a secret key</figcaption></figure><p>Select the third-party service, and click the Next button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*YZ9axpDLxYFQyQHTGaUM6w.png" /><figcaption>Creating a secret key</figcaption></figure><p>Finally, tag your security key, and click the Create access key button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Tijr5TluN5EFuYqgJYDjA.png" /><figcaption>Creating a secret key</figcaption></figure><p>On the pop-up menu, make sure you copied the Access key and secret access key. If you do not copy it, AWS will not show it; you need to create it from the beginning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bidXyH3R-P8pK27C_Kt57g.png" /><figcaption>Getting a secret key</figcaption></figure><p>That was all for AWS, time to move to OutSystems ODC.</p><h3>Setting up the OutSystems ODC connection</h3><p>From your OutSystems ODC platform, click the Connections tab from the left menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*Mtc9QcTw9afe1iqS6gDyvw.png" /><figcaption>Creating a connection</figcaption></figure><p>Next, click the Create connection button. OutSystems will open a pop-up, where you should select Amazon Kendra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*4yQG1lOA6ttf9oNJNhlJEA.png" /><figcaption>Creating a connection</figcaption></figure><p>Fill the form: give a name and description, URL of region (in my case, us-east), index ID (from creating an index in Kendra), access key, and secret.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*Olkio0u-dUmppJELycPrIw.png" /><figcaption>Creating a connection</figcaption></figure><p>Make sure you clicked the Test connection button. Make sure you get a success message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-pj8A9Eq3IvBfaSsnENDDA.png" /><figcaption>Results</figcaption></figure><p>That was all. We created a connection between Amazon Kendra and OutSystems ODC.</p><h3>Summary</h3><p>This set up Kendra and OutSystems was easy. But I think the solution could be smoother. For example, IAM roles and users can be managed in a cleaner way. But the solution works, and we should always have room for improvement =)<br>Next steps could be integrating some data fabric from AWS to get a full taste of the integration.</p><p>Have you tried to connect OutSystems ODC to Amazon Kendra?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4baab3c37ed4" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/how-to-set-up-outsystems-odc-mcp-integration-to-amazon-kendra-4baab3c37ed4">How to set up OutSystems (ODC) MCP integration to Amazon Kendra</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use dynamic data with Highcharts in OutSystems (ODC)]]></title>
            <link>https://itnext.io/how-to-use-dynamic-data-with-highcharts-in-outsystems-odc-3541db18624a?source=rss-a424dfc6fe0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3541db18624a</guid>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[highcharts]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[charts]]></category>
            <category><![CDATA[outsystems]]></category>
            <dc:creator><![CDATA[Cabdukayumova]]></dc:creator>
            <pubDate>Mon, 16 Mar 2026 17:34:23 GMT</pubDate>
            <atom:updated>2026-03-17T23:07:20.585Z</atom:updated>
            <content:encoded><![CDATA[<p>In my <a href="https://medium.com/@cabdukayumova/building-serverless-integrations-with-aws-and-outsystems-lambda-and-dynamodb-8b70ccba480d">last post</a>, I walked through integrating AWS and OutSystems with some historical data. In this post, I will focus on working with dynamic charts, particularly with Highcharts. I will use dynamic data which already set up in the API response. If you are just trying to understand Highcharts, you can create a dummy table to play around.</p><p>I found <a href="https://youtu.be/qwK0aWu7qY4?si=yWtctYZHynhw3_I4">this</a> video helpful, especially for OutSystems OS11, or check out <a href="https://itnext.io/how-to-pass-dynamic-data-into-highcharts-in-outsystems-e345972e892c">this </a>post, where you can play around with charts.</p><p>Let’s get started =)</p><p>Open OutSystems ODC from the browser, and scroll down to Forge and select All assets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*kLN8dv-zS-6bpSmGb-owDQ.png" /><figcaption>Setting up forge component</figcaption></figure><p>From the search bar, search for Highcharts, and click the Install button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*Qgm-CrnQsZB13-YHijbjMg.png" /><figcaption>Installing Highcharts</figcaption></figure><p>Now, we should download libraries. Go to Highcharts <a href="https://www.highcharts.com/blog/download/">documentation</a>. After scrolling the screen, you will see Download Libraries. Select Core 12.5.0 (or any one that is more suitable for your needs).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7v9FiOTozhOehIz9s10RCQ.png" /><figcaption>Downloading a library</figcaption></figure><p>Extract the zip file. Now time to select the needed chart. Open the examples folder. I will be using line-csv for this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*IXoBX-LnukohN9qk1V0NdA.png" /><figcaption>Unzipped folder</figcaption></figure><p>When you open the needed chart, right-click it and select View page source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKzUrt5B8Jk0wcjga6w4sQ.png" /><figcaption>Review of the chart</figcaption></figure><p>It will open the source code, which you can use. As you noticed, this source code has a few JS scripts that should be manually imported.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFUOpNtjmDNLEqE6QOkp6Q.png" /><figcaption>JS scripts</figcaption></figure><p>After, copy all the script from <em>&lt;script type=’text/javascript’&gt;. </em>We will use it in the OnRender action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ED9GtXIQonPZ1_b26OmwFQ.png" /><figcaption>JS script</figcaption></figure><p>Now, open your application and create a new flow. Inside the flow, create a new block. Our goal is to create reusable blocks. Inside the block, put one container and name it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*e_RIXNtKDypejfHaVIFbVw.png" /><figcaption>Reusable block</figcaption></figure><p>Next, time to import scripts. Make sure you imported all scripts from the list earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*V94tLPFqNTjrb6ne7OrZXg.png" /><figcaption>Importing scripts</figcaption></figure><p>Your Scripts folder should look like something like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/172/1*rmuHL5ESSqHRgFegcpOYqA.png" /><figcaption>List of scripts</figcaption></figure><p>Next, make sure you have added all scripts to the block and created the OnRender event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*4nQyFSh-1AuNT30wvEJzxg.png" /><figcaption>Setting up a chart block</figcaption></figure><p>Now, open the OnRender action and drop the JS widget to the flow. Make sure you copy pasted the JS script and created 5 input parameters: <em>ContainerId, TemperatureJson, CategoriesJson, HumidityJson, and StatusJson</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*ynLWUnkjOMmzhqhlN9YGhw.png" /><figcaption>Setting up JS</figcaption></figure><p>After that, make sure you have related input parameters for <em>TemperatureJson, CategoriesJson, HumidityJson, and StatusJson, </em>and for <em>ContainerId, </em>select the earlier created container ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*X3rLH7wUGf8FniQTLEF9gg.png" /><figcaption>Set up OnRender</figcaption></figure><pre>// ---------------------------------------------<br>// CLICK EVENT HANDLER FOR CHART POINTS<br>// ---------------------------------------------<br>// This listens for clicks on chart points.<br>// When a point is clicked, it shows a custom floating label<br>// with timestamp, value and status.<br><br>Highcharts.addEvent(Highcharts.Point, &#39;click&#39;, function () {<br><br>    // Only activate the popup if the series has the custom class<br>    if (<br>        this.series.options.className &amp;&amp;<br>        this.series.options.className.indexOf(&#39;popup-on-click&#39;) !== -1<br>    ) {<br><br>        const chart = this.series.chart;<br><br>        // X-axis category (timestamp)<br>        const category = this.category || this.x;<br><br>        // Status value stored in the point object<br>        const status = this.status || &#39;N/A&#39;;<br><br>        // Text displayed in the popup label<br>        const text =<br>            `&lt;b&gt;${category}&lt;/b&gt;&lt;br/&gt;` +<br>            `${this.series.name}: ${this.y}&lt;br/&gt;` +<br>            `Status: ${status}`;<br><br>        // Calculate popup position near the clicked point<br>        const anchorX = this.plotX + this.series.xAxis.pos;<br>        const anchorY = this.plotY + this.series.yAxis.pos;<br><br>        const align = anchorX &lt; chart.chartWidth - 200 ? &#39;left&#39; : &#39;right&#39;;<br>        const x = align === &#39;left&#39; ? anchorX + 10 : anchorX - 10;<br>        const y = anchorY - 30;<br><br>        // Create the popup label if it doesn&#39;t exist yet<br>        if (!chart.sticky) {<br><br>            chart.sticky = chart.renderer<br>                .label(text, x, y, &#39;callout&#39;, anchorX, anchorY)<br><br>                // Popup styling<br>                .attr({<br>                    align: align,<br>                    fill: &#39;rgba(0, 0, 0, 0.75)&#39;,<br>                    padding: 10,<br>                    zIndex: 7<br>                })<br><br>                .css({<br>                    color: &#39;white&#39;<br>                })<br><br>                // Clicking the popup closes it<br>                .on(&#39;click&#39;, function () {<br>                    chart.sticky = chart.sticky.destroy();<br>                })<br><br>                .add();<br><br>        } else {<br><br>            // If popup already exists, just move and update it<br>            chart.sticky<br>                .attr({<br>                    align: align,<br>                    text: text<br>                })<br>                .animate({<br>                    anchorX: anchorX,<br>                    anchorY: anchorY,<br>                    x: x,<br>                    y: y<br>                }, {<br>                    duration: 250<br>                });<br>        }<br>    }<br>});<br><br><br>// ---------------------------------------------<br>// VARIABLES THAT WILL HOLD DATA FROM OUTSYSTEMS<br>// ---------------------------------------------<br><br>var categories = [];       // timestamps<br>var temperatureData = [];  // temperature values<br>var humidityData = [];     // humidity values<br>var statusData = [];       // device status values<br><br>// Arrays that will be used to feed Highcharts<br>var tempSeries = [];<br>var humiditySeries = [];<br><br><br>// ---------------------------------------------<br>// PARSE JSON DATA COMING FROM OUTSYSTEMS<br>// ---------------------------------------------<br>// OutSystems passes JSON strings as block parameters.<br>// We convert them into JavaScript arrays.<br><br>try {<br><br>    categories = JSON.parse($parameters.CategoriesJson || &quot;[]&quot;);<br>    temperatureData = JSON.parse($parameters.TemperatureJson || &quot;[]&quot;);<br>    humidityData = JSON.parse($parameters.HumidityJson || &quot;[]&quot;);<br>    statusData = JSON.parse($parameters.StatusJson || &quot;[]&quot;);<br><br>} catch (e) {<br><br>    console.log(&quot;Invalid chart JSON input&quot;, e);<br><br>}<br><br><br>// ---------------------------------------------<br>// BUILD CHART DATA STRUCTURE<br>// ---------------------------------------------<br>// Here we combine temperature/humidity with status<br>// and optionally color points depending on status.<br><br>for (var i = 0; i &lt; categories.length; i++) {<br><br>    var pointStatus = statusData[i] || &quot;N/A&quot;;<br><br>    // Default color<br>    var pointColor = undefined;<br><br>    // Color rule based on status<br>    if (pointStatus === &quot;ALERT&quot;) {<br>        pointColor = &quot;red&quot;;<br>    } else if (pointStatus === &quot;OK&quot;) {<br>        pointColor = &quot;green&quot;;<br>    }<br><br>    // Temperature series object<br>    tempSeries.push({<br>        y: temperatureData[i], // value<br>        status: pointStatus,   // custom property<br>        color: pointColor      // color rule<br>    });<br><br>    // Humidity series object<br>    humiditySeries.push({<br>        y: humidityData[i],<br>        status: pointStatus,<br>        color: pointColor<br>    });<br>}<br><br><br>// ---------------------------------------------<br>// CREATE THE HIGHCHARTS LINE CHART<br>// ---------------------------------------------<br><br>Highcharts.chart($parameters.ContainerId, {<br><br>    // Chart type<br>    chart: {<br>        type: &#39;line&#39;,<br><br>        // Allows horizontal scrolling if chart is wide<br>        scrollablePlotArea: {<br>            minWidth: 700<br>        }<br>    },<br><br><br>    // Main title<br>    title: {<br>        text: &#39;Telemetry Trend&#39;,<br>        align: &#39;left&#39;<br>    },<br><br><br>    // Subtitle<br>    subtitle: {<br>        text: &#39;Temperature and humidity readings&#39;,<br>        align: &#39;left&#39;<br>    },<br><br><br>    // ---------------------------------------------<br>    // X AXIS (TIMESTAMP)<br>    // ---------------------------------------------<br>    xAxis: {<br><br>        // Time labels<br>        categories: categories,<br><br>        tickWidth: 0,<br>        gridLineWidth: 1,<br><br>        labels: {<br>            align: &#39;left&#39;,<br>            x: 3,<br>            y: -3<br>        },<br><br>        title: {<br>            text: &#39;Time&#39;<br>        }<br>    },<br><br><br>    // ---------------------------------------------<br>    // Y AXES<br>    // Left = Temperature<br>    // Right = Humidity<br>    // ---------------------------------------------<br>    yAxis: [{<br><br>        title: {<br>            text: &#39;Temperature (°C)&#39;<br>        },<br><br>        labels: {<br>            align: &#39;left&#39;,<br>            x: 3,<br>            y: 16,<br>            format: &#39;{value}&#39;<br>        },<br><br>        showFirstLabel: false<br><br>    }, {<br><br>        title: {<br>            text: &#39;Humidity (%)&#39;<br>        },<br><br>        labels: {<br>            align: &#39;right&#39;,<br>            x: -3,<br>            y: 16,<br>            format: &#39;{value}&#39;<br>        },<br><br>        showFirstLabel: false,<br>        opposite: true,<br>        gridLineWidth: 0<br>    }],<br><br><br>    // ---------------------------------------------<br>    // LEGEND POSITION<br>    // ---------------------------------------------<br>    legend: {<br>        align: &#39;left&#39;,<br>        verticalAlign: &#39;top&#39;,<br>        borderWidth: 0<br>    },<br><br><br>    // ---------------------------------------------<br>    // TOOLTIP CONFIGURATION<br>    // ---------------------------------------------<br>    // Tooltip shows temperature, humidity and status<br>    tooltip: {<br><br>        shared: true,<br>        crosshairs: true,<br><br>        formatter: function () {<br><br>            var text = &#39;&lt;b&gt;&#39; + this.x + &#39;&lt;/b&gt;&lt;br/&gt;&#39;;<br>            var status = &#39;N/A&#39;;<br><br>            if (this.points &amp;&amp; this.points.length &gt; 0) {<br>                status = this.points[0].point.status || &#39;N/A&#39;;<br>            }<br><br>            // Show series values<br>            for (var i = 0; i &lt; this.points.length; i++) {<br>                text += this.points[i].series.name + &#39;: &#39; + this.points[i].y + &#39;&lt;br/&gt;&#39;;<br>            }<br><br>            // Show status only once<br>            text += &#39;Status: &#39; + status;<br><br>            return text;<br>        }<br>    },<br><br><br>    // ---------------------------------------------<br>    // SERIES STYLE SETTINGS<br>    // ---------------------------------------------<br>    plotOptions: {<br>        series: {<br>            cursor: &#39;pointer&#39;,<br><br>            // Enables popup click handler above<br>            className: &#39;popup-on-click&#39;,<br><br>            marker: {<br>                enabled: true,<br>                lineWidth: 1,<br>                radius: 4<br>            }<br>        }<br>    },<br><br><br>    // ---------------------------------------------<br>    // DATA SERIES<br>    // ---------------------------------------------<br>    series: [<br><br>        {<br>            name: &#39;Temperature&#39;,<br>            lineWidth: 4,<br>            data: tempSeries,<br>            yAxis: 0<br>        },<br><br>        {<br>            name: &#39;Humidity&#39;,<br>            lineWidth: 4,<br>            data: humiditySeries,<br>            yAxis: 1<br>        }<br>    ],<br><br><br>    // Hide Highcharts branding<br>    credits: {<br>        enabled: false<br>    }<br><br>});</pre><p>Our reusable block is set up. Time to use it with actual data. Note: these settings are valid just for this type of chart. If your chart is different, you should provide different kinds of input parameters.</p><p>Create 8 variables. 4 of them will have Text data type (CategoriesJson, TemperatureJson, HumidityJson, StatusJson), the other 4 will be Text list (TimestampList, TemperatureList, HumidityList, StatusList).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*PrFzTOrvyX9YHnDkkO7Plw.png" /><figcaption>Created variables</figcaption></figure><p>Before doing any charts, you should understand how you response looks like. In my case API response body looks like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*xIIYoWheP61jTbGpu3QvfQ.png" /><figcaption>API response body</figcaption></figure><p>Now, for the list data that is coming from the API, I am separately appending it to the list. And finally, you should serialize all list data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*Qvxiv4mG2XkZFT4J0lONsg.png" /></figure><p>As you can see, I appended timestamp data to TimestampList. Repeat the same logic for temperature, humidity, and status (each of them has the related lists).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bH9dIjFyVd9D35CE0SjqXA.png" /><figcaption>Appending timestamp</figcaption></figure><p>After you, should JSON serialize each of the lists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*GsRJn5-AOzCXlHu8MlTFYA.png" /><figcaption>Serilalizing timestamp list</figcaption></figure><p>Finally, we should assign to the local variable that was created earlier JSON values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*u0Q5ZFxIotMcIksN7Xjp-w.png" /><figcaption>Assigning values</figcaption></figure><p>Final step: drag and drop your chart block to the screen. Assign to the input values JSON local values, and Publish. Test the results. As you can see, I have two lines showing temperature and humidity. Alt data and dot data shows statud (OK or ALERT), and the color of each point is changed to green and red accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0QxV64s3CCCFSUV8k0VB2w.gif" /></figure><p>That was all for using Highcharts in OutSystems ODC. Let me know if you have a different solution for the same situation, or ways of improving the current setup.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3541db18624a" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/how-to-use-dynamic-data-with-highcharts-in-outsystems-odc-3541db18624a">How to use dynamic data with Highcharts in OutSystems (ODC)</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Serverless Integrations with AWS and OutSystems (Lambda and DynamoDB)]]></title>
            <link>https://itnext.io/building-serverless-integrations-with-aws-and-outsystems-lambda-and-dynamodb-8b70ccba480d?source=rss-a424dfc6fe0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b70ccba480d</guid>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Cabdukayumova]]></dc:creator>
            <pubDate>Sun, 08 Mar 2026 23:47:13 GMT</pubDate>
            <atom:updated>2026-03-09T20:32:52.821Z</atom:updated>
            <content:encoded><![CDATA[<p>We talk a lot about scaling applications and the speed of delivery at the same time. What if we need to have historical data and visualise it to be able to make better decisions in different scenarios? Imagine a company that manages <strong>temperature-controlled equipment</strong>, such as refrigeration units in supermarkets, warehouses, or healthcare facilities. Each device should send data such as:</p><ul><li>temperature</li><li>humidity</li><li>device status</li><li>timestamp</li></ul><p>The company needs a system that can:</p><ul><li>store large volumes of telemetry data</li><li>provide dashboards for monitoring devices</li><li>scale as more devices are deployed</li></ul><p>What we need is a tool where users can enter updates regarding temperature and humidity from the OutSystems interface(or, in the future, integration to a third-party hard tool). AWS receives it with API, stores it in DynamoDB, and returns data based on history or last input.</p><p><strong>What we want to achieve?</strong></p><p>The user manually inputs the humidity and temperature of devices. The system automatically add timestamp and checks if the temperature is within the normal or alert area. After it saves it to the DynamoDB. User can see lass inputed data and/or request historical data as well.</p><p><strong>What will be covered?</strong></p><ul><li>Architectural solution</li><li>Set up DynamoDB</li><li>Set up IAM</li><li>Set up Lambda</li><li>Set up API Gateway</li><li>Set up OutSystems</li></ul><p>Originally, I wanted to create a chart with the Highlights chart, but it would have increased the length of this post twice. I divided them into two different posts. If you need to use Highcharts with dynamic data, make sure you check out the next post.</p><p>Let’s get started =)</p><h3>Architectural solution</h3><p>As you can see, integration will be simple; we will use DynamoDB for saving historical data, Lambda for calculating everything, IAM role policies for being able to have the right access, and API Gateway for communication between applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*PJTo87mScAwa9hbyxCRkEA.gif" /><figcaption>Architectural soluion</figcaption></figure><p><a href="https://docs.aws.amazon.com/apigateway/"><strong>AWS API Gateway</strong></a></p><p>API Gateway acts as the entry point for telemetry data and provides REST endpoints for:</p><ul><li>retrieving historical data</li><li>retrieving the latest readings</li><li>sending current data</li></ul><p><a href="https://docs.aws.amazon.com/lambda/"><strong>AWS Lambda</strong></a></p><p>Lambda functions process incoming requests and perform operations such as:</p><ul><li>validating data</li><li>calculating device status (based on temperature)</li><li>saving records to DynamoDB</li><li>retrieving historical records</li></ul><p>Because Lambda is serverless, the system automatically scales with incoming traffic.</p><p><a href="https://docs.aws.amazon.com/dynamodb/"><strong>Amazon DynamoDB</strong></a></p><p>DynamoDB is used as a scalable NoSQL database to store telemetry records. Each record contains fields such as:</p><pre>deviceId<br>timestamp<br>temperature<br>humidity<br>status</pre><blockquote><strong>Note</strong>: Telemetry data is the automatic measurement, collection, and remote transmission of data from sensors, devices, or software applications to a central system for monitoring, analysis, and optimization</blockquote><p>DynamoDB provides:</p><ul><li>low-latency reads</li><li>automatic scaling</li><li>high availability</li></ul><p>This makes it ideal for high workloads.</p><p>That was all for the architectural solution. Now time to start building it.</p><h3>Set up DynamoDB</h3><p>Open your AWS main page and search for DynamoDB from the top left search bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MUKOIBxlG7kEuG9pSWtjTA.png" /><figcaption>Searching DynamoDB</figcaption></figure><p>If you don’t have any tables in the DB, you should click the Create table button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RMTFwBhLxsMRgyijylmk5g.png" /><figcaption>Creating a new table</figcaption></figure><p>Give a name for your table and give the partition key and sort key. A Partition key is something like a primary key that shows the physical location of the elements inside the DB. In other words is a hash key. In this case, I am using DeviceId as classifiator; I can use it with multiple devices, which helps to scale the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBOxEgj5_h7EhaS4B9HF2g.png" /><figcaption>Setting up table details</figcaption></figure><p>Make sure to click the Create button. We are done with DynamoDB, time to move to IAM.</p><h3>Set up IAM</h3><p>From the top left search bar, type IAM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*JTCumPdzrHeYPCZlG_b9nQ.png" /><figcaption>Searching IAM</figcaption></figure><p>Go to the Roles tab and click the Create role button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p2KSRTjcmzCUGG0vWtmX_w.png" /><figcaption>Creating a role</figcaption></figure><p>From the next screen, select AWS service for trusted entity type, Lambda for use case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jp7X9wUnqPdR5Hmmpip9Dw.png" /><figcaption>Setting up IAM</figcaption></figure><p>We need to add two policies. One for having access to DynamoDB, the second one is for using Lambda.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H7VJd7VOIKW2VMAWBmKT7Q.png" /><figcaption>Adding AWSLambdaBasicExecutionRole</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*itnzZs7VQpqVgHxYmjpyLQ.png" /><figcaption>Adding AmazonDynamoDBFullAccess</figcaption></figure><p>Finally, give a name for your role and click the Create button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aIkNh2uYagolY-bRnwyBNA.png" /><figcaption>Giving a name for the role</figcaption></figure><p>That was all for IAM. Time to move to Lambda.</p><h3>Set up Lambda</h3><p>From the top left search bar, type Lambda.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*AHAD6GjyCXFGGJKZnQtbwQ.png" /><figcaption>Searching Lmabda</figcaption></figure><p>Click the Create a function button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Czcg3VPCJe0zryyPt56UwA.png" /><figcaption>Creating a function</figcaption></figure><p>Now, we should select a few Lambda settings. Fill in the settings for the Lambda as below and scroll the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mxe35-iGFuV-ORQf8ZZllg.png" /><figcaption>Filling Lambda function</figcaption></figure><p>Expand the Change default execution role accordion and select Use another role, and select your earlier created role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jC-e3JJq1-sAFrTfdVt97A.png" /><figcaption>Selection role for the Lambda</figcaption></figure><p>Now copy and paste the code below. After click the Deploy button.</p><pre>import json<br>import os<br>from decimal import Decimal<br><br>import boto3<br>from boto3.dynamodb.conditions import Key<br><br># DynamoDB setup<br>dynamodb = boto3.resource(&quot;dynamodb&quot;)<br>table = dynamodb.Table(os.environ[&quot;TABLE_NAME&quot;])<br><br><br>def decimal_default(obj):<br>    &quot;&quot;&quot;Convert DynamoDB Decimal to float/int for JSON responses.&quot;&quot;&quot;<br>    if isinstance(obj, Decimal):<br>        if obj % 1 == 0:<br>            return int(obj)<br>        return float(obj)<br>    raise TypeError<br><br><br>def build_response(status_code, body):<br>    return {<br>        &quot;statusCode&quot;: status_code,<br>        &quot;headers&quot;: {<br>            &quot;Content-Type&quot;: &quot;application/json&quot;,<br>            &quot;Access-Control-Allow-Origin&quot;: &quot;*&quot;<br>        },<br>        &quot;body&quot;: json.dumps(body, default=decimal_default)<br>    }<br><br><br>def lambda_handler(event, context):<br>    try:<br>        request_context = event.get(&quot;requestContext&quot;, {})<br>        http_info = request_context.get(&quot;http&quot;, {})<br><br>        method = http_info.get(&quot;method&quot;, &quot;&quot;)<br>        path = event.get(&quot;rawPath&quot;, &quot;&quot;)<br>        query_params = event.get(&quot;queryStringParameters&quot;) or {}<br><br>        # POST /telemetry<br>        if method == &quot;POST&quot; and path == &quot;/telemetry&quot;:<br>            body = json.loads(event.get(&quot;body&quot;) or &quot;{}&quot;)<br><br>            device_id = body.get(&quot;deviceId&quot;)<br>            timestamp = body.get(&quot;timestamp&quot;)<br><br>            if not device_id or not timestamp:<br>                return build_response(400, {<br>                    &quot;error&quot;: &quot;deviceId and timestamp are required&quot;<br>                })<br><br>            item = {<br>                &quot;deviceId&quot;: device_id,<br>                &quot;timestamp&quot;: timestamp,<br>                &quot;temperature&quot;: body.get(&quot;temperature&quot;),<br>                &quot;humidity&quot;: body.get(&quot;humidity&quot;),<br>                &quot;status&quot;: body.get(&quot;status&quot;, &quot;OK&quot;)<br>            }<br><br>            # Remove empty values so DynamoDB stays clean<br>            item = {k: v for k, v in item.items() if v is not None}<br><br>            table.put_item(Item=item)<br><br>            return build_response(200, {<br>                &quot;message&quot;: &quot;Telemetry saved successfully&quot;,<br>                &quot;item&quot;: item<br>            })<br><br>        # GET /latest?deviceId=fridge01<br>        elif method == &quot;GET&quot; and path == &quot;/latest&quot;:<br>            device_id = query_params.get(&quot;deviceId&quot;)<br><br>            if not device_id:<br>                return build_response(400, {<br>                    &quot;error&quot;: &quot;deviceId is required&quot;<br>                })<br><br>            result = table.query(<br>                KeyConditionExpression=Key(&quot;deviceId&quot;).eq(device_id),<br>                ScanIndexForward=False,  # newest first<br>                Limit=1<br>            )<br><br>            items = result.get(&quot;Items&quot;, [])<br><br>            if not items:<br>                return build_response(404, {<br>                    &quot;message&quot;: &quot;No telemetry found for this device&quot;<br>                })<br><br>            return build_response(200, items[0])<br><br>        # GET /history?deviceId=fridge01<br>        elif method == &quot;GET&quot; and path == &quot;/history&quot;:<br>            device_id = query_params.get(&quot;deviceId&quot;)<br><br>            if not device_id:<br>                return build_response(400, {<br>                    &quot;error&quot;: &quot;deviceId is required&quot;<br>                })<br><br>            result = table.query(<br>                KeyConditionExpression=Key(&quot;deviceId&quot;).eq(device_id),<br>                ScanIndexForward=False,  # newest first<br>                Limit=20<br>            )<br><br>            return build_response(200, {<br>                &quot;deviceId&quot;: device_id,<br>                &quot;count&quot;: len(result.get(&quot;Items&quot;, [])),<br>                &quot;items&quot;: result.get(&quot;Items&quot;, [])<br>            })<br><br>        else:<br>            return build_response(404, {<br>                &quot;error&quot;: f&quot;Route not found: {method} {path}&quot;<br>            })<br><br>    except Exception as e:<br>        return build_response(500, {<br>            &quot;error&quot;: &quot;Internal server error&quot;,<br>            &quot;details&quot;: str(e)<br>        })</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5x3wDFUF5azbjCTIkvuhhQ.png" /><figcaption>Deploying the code.</figcaption></figure><p>In the code, you can see we have <em>table = dynamodb.Table(os.environ[“TABLE_NAME”]). </em>You can write here directly your DynamoDB table name or set it up in a more dynamic way. For this, go to the Configuration tab and select Environment variables. Click the Edit button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Piip73qTamSumuWZ6oCBiA.png" /><figcaption>Creating a new variable.</figcaption></figure><p>Now, click Add environment variable button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*Z59rR2KGdJwKEzdeSeXSwg.png" /><figcaption>Adding new variable</figcaption></figure><p>Now use <em>TABLE_NAME </em>equal to your DynamoDB table name.</p><blockquote><strong>Note:</strong> this step is optional, but it level up your Lambda function setting. Now in the case of the changes all you should do is just change a table name from configuration without touching actual code. It reduces human error while developing or even supporting the application.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-28MRUlCmKx6iamYoD7Jg.png" /><figcaption>Giving a name for configuration</figcaption></figure><p>That was all for Lambda. Time to move the final AWS service — API Gateway.</p><h3>Set up API Gateway</h3><p>Search the API Gateway from the search bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kLWAIgKEMe5ZOsWFVUbD3g.png" /><figcaption>Searching API Gateway</figcaption></figure><p>Scroll down to REST API and click the Build button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rM1i0ibx1CySmkkpAfqu3A.png" /><figcaption>Selecting REST API</figcaption></figure><p>Give a name for your new API and click the Create button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*0coScJ-gnZk12zr36rcecg.png" /><figcaption>Setting up API</figcaption></figure><p>We should create three APIs. It means we will create 3 resources as well. First one will be for posting elementary data from OutSystems, the second one for getting the last posted data, and the last one for calling all data from the DynamoDB.</p><p>Click the Create resource button and name it as <em>telementary.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NrhGwerG7AifzMx-_l061g.png" /><figcaption>Creating a telementary resource</figcaption></figure><p>When your resource is created, click the Create method button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XxOmqpZsoDblxMQRK1t_Ag.png" /><figcaption>Creating a method</figcaption></figure><p>Make sure you selected the POST method for the Lambda function. Make sure you have enabled Lambda proxy integration (in the other case, you can’t get access to this API). Select your Lambda function from the drop-down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOGYGaCJWNTSrEBKqWgQgA.png" /><figcaption>Setting up POST API</figcaption></figure><p>Repeat the same actions for two GET methods. In the end, you will have three APIs as given below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*yTacCegDPn3qSwOFSoJdCw.png" /><figcaption>All APIs</figcaption></figure><p>Finally, deploy your APIs. Make sure you copied the URL for each of API before moving forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*Cy99ZJMr6uY9maiZMCVkIA.png" /><figcaption>Deploying APIs</figcaption></figure><p>That was all from the AWS side, time to start integration with OutSystems.</p><h3>Set up OutSystems</h3><p>Open your application and right click REST icon. Select Consume REST API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*u82zigRDREM2Sq9CG7p-EQ.png" /><figcaption>Creating a REST API</figcaption></figure><p>Select the POST method and paste the URL from the API Gateway that was created for the POST method. Make sure you test your connection with the following request body:</p><pre>{<br>  &quot;deviceId&quot;: &quot;fridge01&quot;,<br>  &quot;timestamp&quot;: &quot;2026-03-07T10:00:00Z&quot;,<br>  &quot;temperature&quot;: 4.5,<br>  &quot;humidity&quot;: 55,<br>  &quot;status&quot;: &quot;OK&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*R31cPOfsUBNLLVlAzE2JpQ.png" /><figcaption>Setting up POST API</figcaption></figure><p>For the history API, your method should be GET, and the related URL from the API Gateway, and the response body:</p><pre>{<br>  &quot;deviceId&quot;: &quot;fridge01&quot;,<br>  &quot;count&quot;: 3,<br>  &quot;items&quot;: [<br>    {<br>      &quot;deviceId&quot;: &quot;fridge01&quot;,<br>      &quot;timestamp&quot;: &quot;2026-03-07T10:10:00Z&quot;,<br>      &quot;temperature&quot;: 4.8,<br>      &quot;humidity&quot;: 54,<br>      &quot;status&quot;: &quot;OK&quot;<br>    },<br>    {<br>      &quot;deviceId&quot;: &quot;fridge01&quot;,<br>      &quot;timestamp&quot;: &quot;2026-03-07T10:05:00Z&quot;,<br>      &quot;temperature&quot;: 4.6,<br>      &quot;humidity&quot;: 55,<br>      &quot;status&quot;: &quot;OK&quot;<br>    },<br>    {<br>      &quot;deviceId&quot;: &quot;fridge01&quot;,<br>      &quot;timestamp&quot;: &quot;2026-03-07T10:00:00Z&quot;,<br>      &quot;temperature&quot;: 4.5,<br>      &quot;humidity&quot;: 55,<br>      &quot;status&quot;: &quot;OK&quot;<br>    }<br>  ]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*jADsvcCEofREPWQmZ4I_4Q.png" /><figcaption>Setting up history API</figcaption></figure><p>Finally, we should create an API connection for getting the last sent data. Use the GET method and the related URL. Make sure your response body looks like the one below:</p><pre>{<br>  &quot;deviceId&quot;: &quot;fridge01&quot;,<br>  &quot;timestamp&quot;: &quot;2026-03-07T10:20:00Z&quot;,<br>  &quot;temperature&quot;: 9.2,<br>  &quot;humidity&quot;: 60,<br>  &quot;status&quot;: &quot;ALERT&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*S7g3UxMmXNbNdvm9HTiy-g.png" /><figcaption>Setting up latest API</figcaption></figure><p>And the final steps will be calling each API in action. You will get the following results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eodvy_Cm8vJB9R0_nvVqRg.gif" /><figcaption>Final results</figcaption></figure><h3>Summary</h3><p>We could finish the integration of AWS and OutSystems. It was easy but not simple integration; we called the API Gateway 3 times, depending on the situation. Used DynamoDB for saving data and for calculating Lambda. In my next post, I will walk through creating dynamic dashboards. <br>Let me know how you could improve the current integration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b70ccba480d" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/building-serverless-integrations-with-aws-and-outsystems-lambda-and-dynamodb-8b70ccba480d">Building Serverless Integrations with AWS and OutSystems (Lambda and DynamoDB)</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create a personal invitation using OutSystems?]]></title>
            <link>https://itnext.io/how-to-create-a-personal-invitation-with-using-outsystems-517ff241de67?source=rss-a424dfc6fe0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/517ff241de67</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[low-code-development]]></category>
            <dc:creator><![CDATA[Cabdukayumova]]></dc:creator>
            <pubDate>Sun, 01 Feb 2026 20:30:33 GMT</pubDate>
            <atom:updated>2026-02-02T10:07:39.889Z</atom:updated>
            <content:encoded><![CDATA[<p>It is the first day of February, time to prepare for Valentine’s Day. As someone who cherishes female friendship, I consider Galentine’s Day equally important. Usually, I write about complex integrations and how extend OutSystems&#39; capabilities. This time, it is how you can make someone feel extra special. You don’t need complex DB or API integration; all you need is some time and curiosity. Who said learning and developing should not be fun?! All you need is a free tier Outsystems and 45 minutes of your life.</p><p><strong>The Idea</strong></p><ul><li>Get URL with a customized invitation and question with Yes and No buttons.</li><li>Whenever the user tries to hover or tap <strong>NO</strong>, the button jumps to another position.</li><li>Not outside the screen.</li><li>Not randomly everywhere.</li><li>Just inside its own little “safe zone”.</li></ul><p><strong>The result?</strong></p><ul><li>On desktop: you chase it with your mouse</li><li>On mobile: you tap… and it slips away</li><li>Emotionally: you slowly accept that <strong>YES is inevitable</strong></li></ul><p>That’s all. Below you can see what your final result will look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*53lWpOOcFaPnvKXcsLRw3Q.gif" /><figcaption>Result of your personal invitation</figcaption></figure><p><strong>What will be covered?</strong></p><ul><li>Screen set up</li><li>CSS and JS set up</li><li>Summary</li></ul><p>Let’s get started =)</p><h3>Screen set up</h3><p>Open your OutSystems and create a new screen. I changed screen accessibility for everyone, because I don’t want wasting time of my gals. Second, I changed the Source block to LayoutBlank, so they will not be distracted by any additional information. Even if the project is fun, we still should deliver quality =). Finally, I added a few containers inside the pop-up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uRnw1b3TlC4t9Kc4n4wc3w.png" /><figcaption>Screen set up</figcaption></figure><p>This is the general setup of UI, feel free to change and add your custom touches. As usual, you can use the UI cheat sheet <a href="https://outsystemsui.outsystems.com/OutSystemsUIWebsite/CheatSheet">here</a>. It will make your development way easier. I used free GIFs and icons from — GIF by <a href="https://pixabay.com/users/mxjfiles-41050463-41050463/">Marijana Jakelić</a> from <a href="https://pixabay.com/">Pixabay</a>, Icon by <a href="https://icons8.com/icon/40248/pink-cute-folder">Icons8</a>.</p><p>Next, make sure you applied the following style classes for your containers and a No button:</p><pre>ButtonsRow (container style: buttons-row)<br>│<br>├─ YesWrapper (container style: yes-btn)<br>│   └─ YES Button<br>│<br>└─ NoWrapper   ← (container style: no-wrapper)<br>    └─ NoZone  ← relative container movement area (container style: no-zone)<br>        └─ NO Button ←  absolute, moving (button style: no-btn)</pre><p>Now, time to work with buttons. The yes button is simple and will have just an OnClick event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*r_odjbq-FOFa8PhWDU8K6g.png" /><figcaption>Yes button settings</figcaption></figure><p>No button will have OnClick and OnTouchStart events. Both of them will point to the same action. The <strong>touchstart event</strong> in OutSystems is a mobile and reactive web application event that is triggered when a user places one or more touch points (e.g., fingers) on a touch-sensitive surface, such as a mobile device screen (from <a href="https://success.outsystems.com/documentation/11/building_apps/user_interface/patterns/using_mobile_and_reactive_patterns/utilities/touch_events/#:~:text=Applies%20to%20Mobile%20Apps%20and,OutSystems">this </a>documentation).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*djfdb6hHqu_R0sghLZ60ig.png" /><figcaption>No button settings</figcaption></figure><p>Finally, we need an OnReady screen event for the screen. You need the <strong>OnReady</strong> event so your code runs <strong>only after the screen is fully rendered and the DOM exists</strong>, otherwise your code may run too early and find nothing to work with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*VEc9t6lKNWyS81BjDidHbw.png" /><figcaption>OnReady event of the screen.</figcaption></figure><p>That was all, from basic setting up the screen. <br>Time to move to CSS and JS.</p><h3>CSS and JS set up</h3><p>Open CSS and copy paste below given CSS styles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pOp_9bPhsedfScLdiXYCOw.png" /><figcaption>New CSS styles</figcaption></figure><p>It is the perfect time to check and make sure you have all the needed styles added to your screen widgets.</p><pre>.buttons-row {<br>  display: flex;<br>  align-items: center;<br>  justify-content: center;<br>  gap: 24px;<br>  height: 15rem;<br>}<br><br>.yes-btn {<br>  padding: 14px 32px;<br>  font-size: 18px;<br>}<br><br>.no-wrapper {<br>  width: 350px;   /* fixed slot so layout doesn’t jump */<br>  height: 70px;<br>}<br><br>.no-zone {<br>  position: relative;<br>  width: 100%;<br>  height: 100%;<br>  overflow: hidden;<br>}<br><br>.no-btn {<br>  position: absolute;<br>  left: 20px;<br>  top: 18px;<br>  padding: 10px 22px;<br>  transition: left 120ms ease, top 120ms ease;<br>}</pre><p>Now time to add some JS. Open your OnReady action and copy and paste the given JS.</p><pre>(function () {<br>  // delay one tick so DOM is definitely there<br>  setTimeout(function () {<br>    const zone = document.getElementById(&quot;NoZone&quot;);<br>    const btn  = document.getElementById(&quot;NoBtn&quot;);<br>    if (!zone || !btn) return;<br><br>    // prevent double-binding when navigating back/forward<br>    if (btn.dataset.bound === &quot;1&quot;) return;<br>    btn.dataset.bound = &quot;1&quot;;<br><br>    function move() {<br>      const zoneRect = zone.getBoundingClientRect();<br>      const btnRect  = btn.getBoundingClientRect();<br>      const maxX = Math.max(0, zoneRect.width  - btnRect.width);<br>      const maxY = Math.max(0, zoneRect.height - btnRect.height);<br>      btn.style.left = Math.floor(Math.random() * (maxX + 1)) + &quot;px&quot;;<br>      btn.style.top  = Math.floor(Math.random() * (maxY + 1)) + &quot;px&quot;;<br>    }<br><br>    btn.addEventListener(&quot;mouseenter&quot;, move);<br>    btn.addEventListener(&quot;touchstart&quot;, move);<br>    btn.addEventListener(&quot;focus&quot;, move); // optional<br>  }, 0);<br>})();</pre><p>Now, open No button actions, and copy and paste the given JS.</p><pre>const zone = document.getElementById(&quot;NoZone&quot;);<br>const btn  = document.getElementById(&quot;NoBtn&quot;);<br>if (!zone || !btn) return;<br><br>const zoneRect = zone.getBoundingClientRect();<br>const btnRect  = btn.getBoundingClientRect();<br><br>const maxX = Math.max(0, zoneRect.width  - btnRect.width);<br>const maxY = Math.max(0, zoneRect.height - btnRect.height);<br><br>const x = Math.floor(Math.random() * (maxX + 1));<br>const y = Math.floor(Math.random() * (maxY + 1));<br><br>btn.style.left = x + &quot;px&quot;;<br>btn.style.top  = y + &quot;px&quot;;</pre><p>And finally, open the Yes button actions, and add changes however you want. In my case, I just change boolean variable.</p><p>And make sure to Publish and test your results =)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*53lWpOOcFaPnvKXcsLRw3Q.gif" /><figcaption>Final result</figcaption></figure><h3>Summary</h3><p>I hope you could test your solutions, and send them to your important ones =). It was short and sweet playing around, and needless to say, my friends were super happy.</p><p>One issue with this implementation was testing on a mobile phone. I used Reactive Web, but the &quot; No button is not swirling too much because of the small screen. Let me know how you would solve this or similar situations.</p><p>The real lesson?</p><ul><li>Sometimes UI doesn’t have to be serious.</li><li>It can tease.</li><li>It can joke.</li><li>It can have a personality.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=517ff241de67" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/how-to-create-a-personal-invitation-with-using-outsystems-517ff241de67">How to create a personal invitation using OutSystems?</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to integrate OutSystems with Databricks?]]></title>
            <link>https://itnext.io/how-to-integrate-outsystems-with-databricks-f615662aea60?source=rss-a424dfc6fe0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f615662aea60</guid>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <dc:creator><![CDATA[Cabdukayumova]]></dc:creator>
            <pubDate>Tue, 27 Jan 2026 20:49:36 GMT</pubDate>
            <atom:updated>2026-01-27T23:11:36.631Z</atom:updated>
            <content:encoded><![CDATA[<p>I talk a lot about OutSystems and AWS integrations. Sometimes, among these integrations, you can see a strong preference for the AI tools like Claude Anthropic AI or other AWS tools, which can help you to make your life more interesting. What about database connections? Have we ever discussed enough about databases and ways of integrating or setting them up to be able to use them from OutSystems?</p><p>Let’s review <a href="https://www.databricks.com/resources/ebook/maximize-your-organizations-potential-data-and-ai?scid=7018Y000001Fi0MQAS&amp;utm_medium=paid+search&amp;utm_source=google&amp;utm_campaign=22199013245&amp;utm_adgroup=190538927884&amp;utm_content=ebook&amp;utm_offer=maximize-your-organizations-potential-data-and-ai&amp;utm_ad=784960046342&amp;utm_term=databricks%20intelligent%20data%20platform&amp;gad_source=1&amp;gad_campaignid=22199013245&amp;gbraid=0AAAAABYBeAjr42-foyHMUmxdkSfxlP26D&amp;gclid=Cj0KCQiA4eHLBhCzARIsAJ2NZoLwo2SiIDCfCHfSoc9CFUoYG_90j09bGpdoisTxhvGd156sPAUzLmMaAoRhEALw_wcB">Databricks</a>.</p><p>Before starting any step-by-step guideline, I will go through why this solution was chosen, its benefits and drawbacks, and provide links to official documentation. Feel free to share your review and feedback on this way of integration.</p><p>What will be covered?</p><ol><li>Architectural solution (long explanation)</li><li>How to set up Databricks</li><li>How to set up OutSystems</li><li>Summary</li></ol><p>Let’s get started =)</p><h3>Architectural solution</h3><p>I want to keep the scope minimal:</p><ul><li>Databricks SQL Warehouse (trial)</li><li>One small table (id, message)</li><li>OutSystems calls Databricks via REST</li></ul><p>No AWS services or other cloud services. Just <strong>OutSystems ↔ Databricks SQL API</strong>. This kind of setup is good for:</p><ul><li>learning the integration model</li><li>validating connectivity</li><li>understanding execution behavior</li></ul><h4>The first surprise: “Why is everything pending?”</h4><p>The very first thing I noticed:</p><ul><li>The <strong>POST</strong> request always returned PENDING</li><li>The <strong>GET</strong> request returned results a moment later</li></ul><p>At first, this feels wrong. Coming from many REST-based integrations, it’s natural to expect:</p><blockquote>“I call an API → I get a response → done.”</blockquote><p>But Databricks doesn’t work like that. And that’s not a bug — it’s a design choice.</p><h4>Why Databricks uses two API calls?</h4><p>Databricks SQL execution is <a href="https://community.databricks.com/t5/data-engineering/asynchronous-api-calls-from-databricks/td-p/4691"><strong>asynchronous by design</strong></a>. Here’s why:</p><p>1.<strong> Warehouses are real compute</strong></p><p>A SQL Warehouse:</p><ul><li>can be stopped</li><li>can be starting</li><li>can be busy</li><li>can be scaling</li></ul><p>Blocking an HTTP request while the compute warms up would be fragile and expensive. So instead, Databricks separates concerns:</p><ul><li><strong>POST</strong> → <em>“I want this work to happen”</em></li><li><strong>GET</strong> → <em>“What’s the status/result?”</em></li></ul><p>This gives Databricks flexibility without forcing the client to wait blindly.</p><p><strong>2. </strong><strong>wait_timeout is not a guarantee</strong></p><p>You <em>can</em> pass:</p><pre>&quot;wait_timeout&quot;: &quot;10s&quot;</pre><p>If everything is perfect:</p><ul><li>warehouse already running</li><li>query very small</li><li>no queue</li></ul><p>Then yes — sometimes the POST returns results immediately. But this is the <strong>best effort</strong>, not a promise. Relying on a single call would make your app:</p><ul><li>unpredictable</li><li>flaky</li><li>environment-dependent</li></ul><p>So the safe rule is:</p><blockquote>POST once. GET until final state.</blockquote><h4>Why we don’t “merge” the two calls in OutSystems</h4><p>A question I had early on:</p><blockquote>“Can I just wait longer and avoid the second call?”</blockquote><p>Short answer: <strong>no, not reliably</strong>. Long answer:</p><ul><li>Databricks explicitly models execution as async</li><li>You cannot force synchronous execution</li><li>You cannot disable PENDING</li><li>You cannot assume execution time</li></ul><p>OutSystems isn’t the limitation here — <a href="https://docs.databricks.com/api/workspace/statementexecution">Databricks is simply</a> being honest about compute.</p><p>From the system’s perspective:</p><ul><li>POST is called <strong>once</strong></li><li>GET is safe and can be called a few times</li><li>compute is respected</li></ul><p>Let’s get started with Databricks set up.</p><h3>How to set up Databricks?</h3><p>First, go to the Databricks login <a href="https://login.databricks.com/">page</a>. If you have an account, you can use it, if not, select Google sign up (this is the easiest way to set up an account).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9kYlB3HZvz035dNX3kisQw.png" /><figcaption>Login screen to Databricks</figcaption></figure><p>I am using a free account, which comes with 14 days free trial option. For more information, look up official documentation <a href="https://docs.databricks.com/aws/en/getting-started/free-edition-limitations">here</a>. You still will have some limitations, but the trial version is more than enough for this demo.</p><p>Before starting to work on your warehouse, make sure you can run a few tests. Go to the SQL Editor tab from the left menu, and select SQL Query from the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*IPaWYP0PDfUJ7p0U4IyUTg.png" /><figcaption>Running SQL Query</figcaption></figure><p>Now write down the query and click the run all button. Make sure you have some results on your window below before moving to the next steps.</p><pre>SELECT 1 AS test_value;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*r8xQ9ND3bOj5CR8OF6E9Uw.png" /><figcaption>Test query</figcaption></figure><p>As you can see, my query is successful and returned some results. Now time to run actual queries and set up minimal warehouse settings.</p><p>Copy-paste and run <strong>each block separately</strong>:</p><pre>CREATE SCHEMA IF NOT EXISTS os_demo;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*oEsnaH70gL9vN4yHa09jbA.png" /><figcaption>Running first query</figcaption></figure><p>Next, run the query below and make sure you get successful results.</p><pre>CREATE TABLE IF NOT EXISTS os_demo.hello (<br>  id INT,<br>  message STRING<br>);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*0ao5CYfyT5xN6pjo_3c-0g.png" /><figcaption>Running second query</figcaption></figure><p>Finally, run the query below to put a few things into the table.</p><pre>INSERT INTO os_demo.hello VALUES<br>  (1, &#39;hello from databricks&#39;),<br>  (2, &#39;outsystems integration test&#39;);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*24MhejCswt84R6EIg8jYVA.png" /><figcaption>Running third query</figcaption></figure><p>We finished setting up Databricks warehouse data, time to test our request. Run below given query for testing out.</p><pre>SELECT * FROM os_demo.hello;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*QoDfh0MVVwIt1C3Lq9kb-g.png" /><figcaption>Testing query</figcaption></figure><p>Now time to generate a token which will be used in an API call. On the top of the screen, click your profile and select Settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*G18N656s9ZIB1snFKWFl-Q.png" /><figcaption>Profile settings</figcaption></figure><p>From the left menu, select the Developer tab and click the Generate new token button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*0gnaloyBWiPaTTWifKTxpQ.png" /><figcaption>Generating a new token</figcaption></figure><p>Give a name and description to your token and click the Generate button. Make sure you copied a token before closing the pop-up menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*Ahmn3MUklLHuix1zLMiL2Q.png" /><figcaption>Generated token</figcaption></figure><p>As you can see, a new token is generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XFAZHjOHDxtHZx5jvX8iew.png" /><figcaption>Generated token</figcaption></figure><p>Now time to take an ID of the warehouse, which will be called from an API. From the main menu, go to the SQL Warehouses tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jt2q2G0HXa9_iDEwinalSA.png" /><figcaption>Selecting warehouses</figcaption></figure><p>From the Compute screen, select your warehouse (if you are using a free option of Databricks, you will have just one warehouse by default, like me).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Cp3AJrqQ9YelBnKk9CPjg.png" /><figcaption>Warehouses on Databricks</figcaption></figure><p>Select the warehouse and from Name, copy the warehouse ID (important to save).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*yH-YhRpl7sEOMPUU-Z79-A.png" /><figcaption>Warehouse ID</figcaption></figure><p>That was all from the Databricks side. Time to move to OutSystems.</p><h3>How to set up OutSystems?</h3><p>As mentioned earlier, I will be creating two REST API calls. Open your application in OutSystems, and create a consume API from the Logic tab. Method should be POST, add Authorization and content-type as given in the screenshot.</p><p>URL:</p><pre>{your_cloud_env}cloud.databricks.com/api/2.0/sql/statements</pre><p>Body:</p><pre>{<br>  &quot;warehouse_id&quot;: &quot;your_warehouse_id&quot;,<br>  &quot;statement&quot;: &quot;SELECT * FROM os_demo.hello ORDER BY id;&quot;,<br>  &quot;wait_timeout&quot;: &quot;10s&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*eqDj4Va2huxcIa8Vsu8J2g.png" /><figcaption>Setting up POST request</figcaption></figure><p>Note: I am using a query based on the Databricks setup. If your setup is different, your query will look different and will return a different response. Make sure you test this request from OutSystems, and copy the body. OutSystems will automatically create all output variables based on that. We finished with the first REST API, time to move to the second request.</p><p>Now, create a second API, make sure the method is GET. Add Authorization and {statementId}. StatementId will be coming from the first POST request, and we will be passing it to the second request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*a35ZVigSZQZP-jzzTyX0gQ.png" /><figcaption>Setting up GET request</figcaption></figure><p>As you can see, we now have two API requests. Time to move to the actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*Lu-hWDK-S4yB4CCtjA_8bw.png" /><figcaption>APIs</figcaption></figure><p>Before calling any actions, we need to set up a token securely in OutSystems (this step is optional for the test project, but highly recommended for the security of your application). Go to the Data tab, and create a new Settings, name it as Auth. I marked is secret (will give values from the Service Center).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*BuiDo5Wzuyn6JooJDVfYJw.png" /><figcaption>Set up secure token settings</figcaption></figure><p>Now, create a new action and call each API. As you can see, after calling the GET API, I am checking if we got SUCCESSED results or not.</p><blockquote>Note: this setup is pretty basic, and you may need additional steps to make it more complex or suitable for your application.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*krFKDuQIw5gimz7AC7MxZw.png" /><figcaption>Calling APIs</figcaption></figure><p>That was all from the OutSystems side. Feel free to change it and play around with UI and backend together.</p><h3>Summary</h3><p>As you can see, this integration is pretty easy and straightforward. This didn’t require:</p><ul><li>advanced Databricks knowledge</li><li>heavy data engineering skills</li><li>complex cloud setup</li></ul><p>I don’t consider this a perfect setup for complex applications. I believe using some cloud tools like AWS or Azure will give you more space to play around (like calling one AWS API and Lambda doing calls and returning results), or additionally adding error handling in your API request from the OutSystems side.<br>Feel free to share your integration solutions with Databricks or other data warehouse tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f615662aea60" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/how-to-integrate-outsystems-with-databricks-f615662aea60">How to integrate OutSystems with Databricks?</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build an AI API price calculation using OutSystems, AWS, and OpenAI]]></title>
            <link>https://itnext.io/how-to-build-an-ai-api-price-calculation-using-outsystems-aws-and-openai-42e2377eaccc?source=rss-a424dfc6fe0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/42e2377eaccc</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[cost-optimization]]></category>
            <dc:creator><![CDATA[Cabdukayumova]]></dc:creator>
            <pubDate>Sun, 11 Jan 2026 21:24:30 GMT</pubDate>
            <atom:updated>2026-01-12T00:22:11.787Z</atom:updated>
            <content:encoded><![CDATA[<p>At this moment, we have so many ways of using AI. Different tools may give you different solutions for your business needs. And now it is time to start looking into the price breakdown and start understanding how much you are spending for each AI API call or request.</p><h4>Which tools are used?</h4><ul><li>OutSystems (Client-side requests)</li><li>AWS (bridge between OpenAI and OutSystems)</li><li>OpenAI (AI tool)</li></ul><h4>The goal</h4><p>The goal of this project is simple:</p><ul><li>Send a prompt from an OutSystems app</li><li>Call OpenAI through AWS</li></ul><p>Get back:</p><ul><li>The AI response</li><li>token usage</li><li>exact cost in USD for that request (input and output request price)</li></ul><p>I also wanted:</p><ul><li>No OpenAI key exposed to the frontend</li><li>Minimal AWS setup</li><li>Full control over pricing logic</li></ul><h4>What will be covered?</h4><ul><li>Architectural solution</li><li>Set up a secret key for OpenAI</li><li>Set up AWS Secret Manager</li><li>Set up AWS IAM</li><li>Set up Lambda</li><li>Set up API Gateway</li><li>Set up integration from OutSystems</li><li>Summary</li></ul><blockquote><strong>Note: </strong>If you are using free tier or on budget for testing integration idea, make sure to clean up you OpenAI and AWS project after.</blockquote><p>It will be a long reading, be prepared…</p><p>Let’s get started =)</p><h3>Architectural solution</h3><p>Below you can see the high-level architectural flow of the solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*SMBQ_J75INbQY1i4LqIMoA.gif" /><figcaption>OutSystems, AWS and OpenAI integration flow</figcaption></figure><ol><li><strong>OutSystems ODC UI (Reactive Web / Mobile)</strong></li></ol><ul><li>User enters prompt and clicks “Send”</li><li>OutSystems calls your backend via API</li></ul><p><strong>2. </strong><a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html"><strong>API Gateway</strong></a><strong> (REST API)</strong></p><ul><li>Exposes a public endpoint: POST</li><li>Handles: routing to Lambda</li></ul><p><strong>3. </strong><a href="https://docs.aws.amazon.com/lambda/"><strong>Lambda </strong></a><strong>(Cost-aware AI Proxy)</strong></p><ul><li>Receives request body { prompt, max_tokens, model }</li><li>Validates input (prompt not empty, max tokens capped)</li><li>Reads OpenAI key securely</li></ul><p><strong>4. </strong><a href="https://docs.aws.amazon.com/secretsmanager/"><strong>Secrets Manager</strong></a></p><ul><li>Stores OPENAI_API_KEY</li><li>Lambda reads it at runtime using the AWS</li></ul><p><strong>5. </strong><a href="https://docs.aws.amazon.com/iam/"><strong>IAM Role</strong></a></p><ul><li>Lambda assumes an IAM role that allows:</li><li>secretsmanager:GetSecretValue (only for that one secret)</li><li>CloudWatch Logs permissions</li><li>This is the “permission bridge” that makes secret access secure + auditable</li></ul><p><strong>6. </strong><a href="https://platform.openai.com/docs/api-reference/introduction"><strong>OpenAI API</strong></a></p><ul><li>Lambda calls OpenAI with the model</li><li>OpenAI returns:</li><li>response text</li><li>token usage</li></ul><p><strong>7. Back through Lambda → API Gateway → OutSystems</strong></p><ul><li>Lambda calculates cost based on token usage and configured pricing constants</li><li>Returns JSON including:</li><li>answer</li><li>tokens</li><li>openai_cost_usd_display (pretty format)</li><li>openai_cost_usd (numeric for totals)</li></ul><p><strong>8. OutSystems displays</strong></p><ul><li>Shows answer</li><li>Shows tokens and cost per request</li></ul><h4>Why I didn’t call OpenAI directly from OutSystems?</h4><p>Yes, it’s technically possible. But I intentionally avoided it for a few reasons:</p><ol><li><strong>API key safety</strong><br> I didn’t want my OpenAI key anywhere near the frontend or client-side logic.</li><li><strong>Cost visibility</strong><br> OpenAI returns token usage, but <em>you</em> have to calculate the price.<br> I wanted that logic centralized and explicit.</li><li><strong>Real-world architecture</strong><br> This is how AI integrations usually look in production.</li><li><strong>Control &amp; guardrails</strong><br> With AWS in the middle, I can:</li></ol><ul><li>cap max_tokens</li><li>reject empty prompts</li><li>add authentication</li><li>log usage</li><li>evolve pricing logic later</li></ul><h3>Set up a secret key for OpenAI</h3><p>Open your OpenAI console, go to API keys, and click the Create your secret key button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6oApz23Kisx5IIKG4ocow.png" /><figcaption>Creating a secret key</figcaption></figure><p>Give a name for your secret key, select a project, and click the Create secret key button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*-m8_2VAR0n3OIzHdpIVHaw.png" /><figcaption>Filling data for a secret key</figcaption></figure><p>Make sure you copied your created key and securely saved it. We will use it in an AWS request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*aTSaKKZ9r8tv86ZavxuQhA.png" /><figcaption>Newly create secret key</figcaption></figure><p>That was all for the OpenAI part (the easiest part). Let’s move to AWS.</p><h3>Set up AWS Secret Manager</h3><p>Open your AWS console, and search for Secrets Manager in the search bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*_7yxi9KCj5H9lCc5XnKdEQ.png" /><figcaption>Searching Secret Manager</figcaption></figure><p>Now, click the Store a new secret button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qraPG-E935_fYklD9kP6Iw.png" /><figcaption>Creating a new secret</figcaption></figure><p>Make sure you selected the Other type of secret, key name, and value that you created earlier in OpenAI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYIxF9ZwZx1stdmMRNW9WQ.png" /><figcaption>Setting up a secret</figcaption></figure><p>Give a name and description for your secret and click the Create button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*GFo3XfKAkGRMq7FoXyzWCw.png" /><figcaption>Setting up a secret</figcaption></figure><p>AWS may take some time to generate a secret. Before moving to the next steps, make sure you have refreshed the screen and a secret is on your dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*Hv4QtvKKkbqxbkygE6A65Q.png" /><figcaption>New secret</figcaption></figure><p>That was all for Secrets Manager, now time for IAM.</p><h3>Set up AWS IAM</h3><p>In most cases, you can reuse predefined policies in AWS. In this project, we are customizing it with our own policy. From your console, search IAM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*75zSLI6t5lE_oyx3f53-Hg.png" /><figcaption>Searching IAM</figcaption></figure><p>Now, go to Policies and click the Create policy button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKAYov9LIscUY-tEYF9N4Q.png" /><figcaption>Creating a policy</figcaption></figure><p>From the open window, select the JSON tab and copy and paste below given custom JSON. Make sure you changed <em>REGION </em>and <em>ACCOUNT_ID </em>for your AWS region and account ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gqr-1Zu59-nTM2UYfpHeUw.png" /><figcaption>Custom policy set up</figcaption></figure><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;AllowCloudWatchLogs&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: [<br>        &quot;logs:CreateLogGroup&quot;,<br>        &quot;logs:CreateLogStream&quot;,<br>        &quot;logs:PutLogEvents&quot;<br>      ],<br>      &quot;Resource&quot;: &quot;*&quot;<br>    },<br>    {<br>      &quot;Sid&quot;: &quot;ReadOpenAISecret&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: &quot;secretsmanager:GetSecretValue&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:secretsmanager:REGION:ACCOUNT_ID:secret:openai/api-key*&quot;<br>    }<br>  ]<br>}</pre><p>Finally, give a name and description for your Policy and save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*c3WW0LL0wRXD5hznUy-DRg.png" /><figcaption>Custom policy set up</figcaption></figure><p>Our policy is created, now time to create a role. Go to Roles, and click the Create role button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMvka1DdZbsMfaMiKMW6LQ.png" /><figcaption>Creating a role</figcaption></figure><p>Select AWS Service and Lambda from drop-down menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*FrSXPnW0-n0rojPOfffomQ.png" /><figcaption>Selecting a service in Roles</figcaption></figure><p>Select two roles <em>AWSLambdaBasicExecutionRole</em> and <em>Your_Custom_Policy.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*luEpuHo-PWxAUFwt1AHCZg.png" /><figcaption>Selecting a <em>AWSLambdaBasicExecutionRole policy</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0_OOokEaNc-uTQUV8PAkSw.png" /><figcaption>Selecting a <em>Your_Custom_Policy</em></figcaption></figure><p>Finally, give a name for your role and click the Create button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*REW8exEGipotBOZ4pqCcxA.png" /><figcaption>Naming of the role</figcaption></figure><p>That was all for IAM. Now we will move to Lambda.</p><h3>Set up Lambda</h3><p>From the AWS console, search Lambda</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*RGOCKAOFEpInG95uInmjog.png" /><figcaption>Searching a Lambda</figcaption></figure><p>Click the Create a function button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EuzbRFNc6pQrM7aiVqEZzA.png" /><figcaption>Creating a function</figcaption></figure><p>Next, give a name for your function, select your function language (in my case, Python 3.12), and architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xpLn1wTIiwsdKnsGy6NuuA.png" /><figcaption>Creating a function</figcaption></figure><p>Scroll the screen and select Use an existing role, after from the drop-down menu select your role. Click the Create function button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FinlNkvSzbblO4DiW1pZ4g.png" /><figcaption>Selecting a function role</figcaption></figure><p>Now your function is created, time to set up configurations. Go to the Configuration tabs and select Environment variables, click the Edit button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WNbV31qmHTkFAABXThggg.png" /><figcaption>Creating variables</figcaption></figure><p>Next, add below variables to your function:</p><p>SECRET_NAME = openai/api-key</p><p>MODEL = gpt-4o-mini (this can be changed, based on which model you are using)</p><p>APP_KEY = your_shared_secret_here (this secret key will be called from OutSystems. It is not the same as OpenAI&#39;s secret. )</p><p>PRICE_INPUT_PER_1M = 0.15</p><p>PRICE_OUTPUT_PER_1M = 0.60</p><p>Click the Save button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gIRl8zC1C5uwOyuwo6XFWQ.png" /><figcaption>Setting up variables</figcaption></figure><p>Now, go to the Code tab, and copy and paste the given code. Make sure you clicked the Deploy button and waited success message before moving to the next steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y1OeGlXLeO4QoC3OWMvlUg.png" /></figure><pre>import json<br>import os<br>import urllib.request<br>import urllib.error<br>import boto3<br><br>secrets = boto3.client(&quot;secretsmanager&quot;)<br><br>OPENAI_URL = &quot;https://api.openai.com/v1/chat/completions&quot;<br><br>def get_openai_key() -&gt; str:<br>    secret_name = os.environ[&quot;SECRET_NAME&quot;]<br>    resp = secrets.get_secret_value(SecretId=secret_name)<br>    secret_str = resp[&quot;SecretString&quot;]<br>    secret_obj = json.loads(secret_str)<br>    return secret_obj[&quot;OPENAI_API_KEY&quot;]<br><br>def _response(status_code: int, body: dict):<br>    return {<br>        &quot;statusCode&quot;: status_code,<br>        &quot;headers&quot;: {<br>            &quot;Content-Type&quot;: &quot;application/json&quot;,<br>            # CORS for browser-based clients (OutSystems Web)<br>            &quot;Access-Control-Allow-Origin&quot;: &quot;*&quot;,<br>            &quot;Access-Control-Allow-Headers&quot;: &quot;content-type,x-app-key&quot;,<br>            &quot;Access-Control-Allow-Methods&quot;: &quot;OPTIONS,POST&quot;<br>        },<br>        &quot;body&quot;: json.dumps(body)<br>    }<br><br>def lambda_handler(event, context):<br>    # Handle CORS preflight<br>    method = (event.get(&quot;requestContext&quot;, {}).get(&quot;http&quot;, {}) or {}).get(&quot;method&quot;)<br>    if method == &quot;OPTIONS&quot;:<br>        return _response(200, {&quot;ok&quot;: True})<br><br>    # Simple shared-secret auth (pet project)<br>    app_key = os.environ.get(&quot;APP_KEY&quot;, &quot;&quot;)<br>    headers = event.get(&quot;headers&quot;) or {}<br>    incoming_key = headers.get(&quot;x-app-key&quot;) or headers.get(&quot;X-App-Key&quot;) or headers.get(&quot;X-APP-KEY&quot;)<br>    if app_key and incoming_key != app_key:<br>        return _response(401, {&quot;error&quot;: &quot;Unauthorized&quot;})<br><br>    try:<br>        body = json.loads(event.get(&quot;body&quot;) or &quot;{}&quot;)<br>        prompt = (body.get(&quot;prompt&quot;) or &quot;&quot;).strip()<br>        if not prompt:<br>            return _response(400, {&quot;error&quot;: &quot;Missing &#39;prompt&#39;.&quot;})<br><br>        model = body.get(&quot;model&quot;) or os.environ.get(&quot;MODEL&quot;, &quot;gpt-4o-mini&quot;)<br>        max_tokens = int(body.get(&quot;max_tokens&quot;) or 250)  # control cost<br><br>        price_in = float(os.environ.get(&quot;PRICE_INPUT_PER_1M&quot;, &quot;0.15&quot;))<br>        price_out = float(os.environ.get(&quot;PRICE_OUTPUT_PER_1M&quot;, &quot;0.60&quot;))<br><br>        api_key = get_openai_key()<br><br>        payload = {<br>            &quot;model&quot;: model,<br>            &quot;messages&quot;: [<br>                {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;Be helpful and concise.&quot;},<br>                {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}<br>            ],<br>            &quot;max_tokens&quot;: max_tokens,<br>            &quot;temperature&quot;: 0.7<br>        }<br><br>        req = urllib.request.Request(<br>            OPENAI_URL,<br>            data=json.dumps(payload).encode(&quot;utf-8&quot;),<br>            headers={<br>                &quot;Authorization&quot;: f&quot;Bearer {api_key}&quot;,<br>                &quot;Content-Type&quot;: &quot;application/json&quot;<br>            },<br>            method=&quot;POST&quot;<br>        )<br><br>        with urllib.request.urlopen(req, timeout=30) as resp:<br>            raw = resp.read().decode(&quot;utf-8&quot;)<br>            data = json.loads(raw)<br><br>        answer = data[&quot;choices&quot;][0][&quot;message&quot;][&quot;content&quot;]<br><br>        usage = data.get(&quot;usage&quot;, {})<br>        prompt_tokens = int(usage.get(&quot;prompt_tokens&quot;, 0))<br>        completion_tokens = int(usage.get(&quot;completion_tokens&quot;, 0))<br>        total_tokens = int(usage.get(&quot;total_tokens&quot;, prompt_tokens + completion_tokens))<br><br>        # USD cost using your pricing constants<br>        input_cost = (prompt_tokens / 1_000_000) * price_in<br>        output_cost = (completion_tokens / 1_000_000) * price_out<br>        total_cost = input_cost + output_cost<br><br>        return _response(200, {<br>            &quot;answer&quot;: answer,<br>            &quot;model&quot;: model,<br>            &quot;usage&quot;: {<br>                &quot;prompt_tokens&quot;: prompt_tokens,<br>                &quot;completion_tokens&quot;: completion_tokens,<br>                &quot;total_tokens&quot;: total_tokens<br>            },<br>            &quot;openai_cost_usd&quot;: round(total_cost, 10)<br>        })<br><br>    except urllib.error.HTTPError as e:<br>        details = e.read().decode(&quot;utf-8&quot;) if e.fp else &quot;&quot;<br>        return _response(502, {&quot;error&quot;: &quot;OpenAI HTTPError&quot;, &quot;status&quot;: e.code, &quot;details&quot;: details})<br>    except Exception as e:<br>        return _response(500, {&quot;error&quot;: &quot;Server error&quot;, &quot;details&quot;: str(e)})</pre><h4>Optional</h4><p>I like testing requests within the function to make debugging easier. If you want to check the OpenAI connection with AWS, go to the Test tab, copy and paste below JSON request below. Make sure you changed a few details based on your key. Click the Test button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DVk4oOD5Su49WQe_jp-iug.png" /><figcaption>Testing a function</figcaption></figure><pre>{<br>  &quot;headers&quot;: { &quot;x-app-key&quot;: &quot;YOUR_APP_KEY_VALUE&quot; },<br>  &quot;body&quot;: &quot;{\&quot;prompt\&quot;:\&quot;Say hi and tell me one quick AWS tip.\&quot;, \&quot;max_tokens\&quot;: 80}&quot;<br>}</pre><p>That was all for the Lambda function. Time to set up API Gateway.</p><h3>Set up API Gateway</h3><p>From the AWS console, search for API Gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*AaSyjWv-Aox_s_VdV4XpDA.png" /><figcaption>Searching API Gateway</figcaption></figure><p>Click the Create an API button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JaQKMPZPsM8GdoCoxGprLg.png" /><figcaption>Creating an API</figcaption></figure><p>Click the Build button for the Rest API. Make sure your method type is POST, for the Lambda function, and you selected your Lambda function. It is very important to enable Lambda Proxy integration, in the other case you can not call your API from OutSystems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*GaNuYH-oPqf-oQ0btO89cg.png" /><figcaption>Setting up an API</figcaption></figure><p>Next, deploy your API. And finally, make sure you copied the URL from the Invoke URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PvdhZG-z38j2o9sJy_3Fxg.png" /></figure><p>We finished most of the integration. Finally, moving to OutSystems.</p><h3>Set up integration from OutSystems</h3><p>Go to your OutSystems application. Go to the Logic tab and right-click the EST icon. Select Consume REST API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*wKoDq1tlaEVg_zICwIyMcA.png" /><figcaption>Creating an API connection</figcaption></figure><p>Make sure you selected the POST method and copied and pasted the URL from the API Gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MGHPl5yPES27w4Yo_ppOIw.png" /><figcaption>Setting up API request</figcaption></figure><p>Your request body should have below JSON:</p><pre>{<br>  &quot;prompt&quot;: &quot;Hello&quot;,<br>  &quot;max_tokens&quot;: 80<br>}</pre><p>Make sure to add <em>Content-Type</em> and <em>x-app-key</em> headers. Don’t forget to test your connection in the Test tab.</p><p>Response will look like something in JSON below:</p><pre>{<br>  &quot;answer&quot;: &quot;Hello! How can I help you today?&quot;,<br>  &quot;model&quot;: &quot;gpt-4o-mini&quot;,<br>  &quot;usage&quot;: {<br>    &quot;prompt_tokens&quot;: 17,<br>    &quot;completion_tokens&quot;: 9,<br>    &quot;total_tokens&quot;: 26<br>  },<br>  &quot;openai_cost_usd&quot;: 7.95E-06,<br>  &quot;openai_cost_usd_display&quot;: &quot;0.0000079500&quot;,<br>  &quot;openai_cost_breakdown&quot;: {<br>    &quot;input_cost_usd&quot;: 2.55E-06,<br>    &quot;output_cost_usd&quot;: 5.4E-06,<br>    &quot;input_cost_usd_display&quot;: &quot;0.0000025500&quot;,<br>    &quot;output_cost_usd_display&quot;: &quot;0.0000054000&quot;<br>  }<br>}</pre><p>Your final integration REST API will look like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/1*llEoLE2lY1z5ITseqEEeiQ.png" /><figcaption>API integration</figcaption></figure><p>Finally, call your API from your screen to see your integration results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vlgwLoWu3E0cSUkLmLUENg.gif" /><figcaption>Integration results</figcaption></figure><p>As you may notice, I used the Input and Output costs separately.</p><p><strong>Input cost = cost of the tokens you send <em>to</em> the model</strong></p><p>This includes:</p><ul><li>the user’s prompt</li><li>system instructions</li><li>any hidden context you add</li></ul><p><strong>Output cost = cost of the tokens the model generates <em>back</em></strong>.</p><p>This tells you:</p><ul><li>whether max_tokens is too high</li><li>whether temperature + system prompt encourages long answers</li></ul><h3>Summary</h3><p>In this project, we built a <strong>cost-aware AI integration</strong> using <strong>OutSystems ODC, AWS, and OpenAI</strong>, with the goal of making AI usage <strong>transparent, secure, and observable</strong>.</p><p>Instead of calling OpenAI directly from OutSystems, I introduced an AWS backend layer using <strong>API Gateway, Lambda, IAM, and Secrets Manager</strong>. This allowed us to:</p><ul><li>Keep the OpenAI API key fully server-side</li><li>Apply the principle of least privilege using IAM</li><li>Calculate the <strong>exact cost per request</strong> based on token usage</li><li>separate <strong>input cost</strong> (user prompt) from <strong>output cost</strong> (model response)</li></ul><p>This approach turns AI from a black box into an <strong>architecturally observable component</strong>, where cost, usage, and behavior are explicit and controllable.</p><p>Most importantly, this project reinforced that good AI integrations are not about “adding AI”, but about <strong>designing systems that are secure, explainable, and cost-aware from the start</strong>.</p><p>Let me know your solutions for the same scenarios.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42e2377eaccc" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/how-to-build-an-ai-api-price-calculation-using-outsystems-aws-and-openai-42e2377eaccc">How to build an AI API price calculation using OutSystems, AWS, and OpenAI</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Why AI Can’t Replace People — And Why AI Safety Matters More Than Ever]]></title>
            <link>https://medium.com/codetodeploy/why-ai-cant-replace-people-and-why-ai-safety-matters-more-than-ever-d63588af6f63?source=rss-a424dfc6fe0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d63588af6f63</guid>
            <category><![CDATA[it-governance]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-safety]]></category>
            <category><![CDATA[future-technology]]></category>
            <dc:creator><![CDATA[Cabdukayumova]]></dc:creator>
            <pubDate>Fri, 28 Nov 2025 00:57:44 GMT</pubDate>
            <atom:updated>2026-03-10T05:24:55.842Z</atom:updated>
            <content:encoded><![CDATA[<h3>🧠 Why AI Can’t Replace People — And Why AI Safety Matters More Than Ever</h3><p>This post is one of the longest that was in my drafts. Usually, I write highly optimistic posts regarding integrations of AI, use cases, and optimization. This is a little detour of thoughts. I was thinking a lot even before clicking the Publish button. I was not sure if it would be interesting in the AI world we are having now.</p><p>But as someone who is truly an AI Enthusiast with several AI projects and defended a Master&#39;s Thesis in “Using deep learning for brain tumor detection”, I may put a few thoughts about rapid AI development and how it disturbs my peace of mind sometimes. Especially with the number of layoffs which we see almost every day, with words: “AI is coming for your job”. That sounds intriguing, no?</p><p>I am happy to hear your feedback about my thoughts. I tried to put as many official documentation links, so you can spend some time reviewing. And most importantly, you can make your own critical thinking to see what steps are important to protect your own future with AI. My main thoughts are why AI can’t and shouldn’t replace humans.</p><p>So…. let’s get started =)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hzFJZvrGG0dEJ9u5lmMIPA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@growtika?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Growtika</a> on <a href="https://unsplash.com/photos/an-abstract-image-of-a-sphere-with-dots-and-lines-nGoCBxiaRO0?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><blockquote>🚀 Master AI, Cloud &amp; Code in 3 Months</blockquote><blockquote><a href="https://www.codetodeploy.tech/2026/02/master-ai-cloud-coding-in-3-monthsstart.html">Unlock Free Trial Today</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkQFf0NUnzoFbVEVQCF5WQ.png" /></figure><p>AI is advancing at an extraordinary speed. Large language models (LLMs) are improving so quickly that it’s tempting to imagine a world where AI simply replaces people in most roles. And even the media and business talk about this all the time. But researchers like <a href="https://www.youtube.com/c/robertmilesai"><strong>Robert Miles</strong></a>, who focuses on AI safety and alignment, consistently warn about a more complicated truth:</p><blockquote><strong><em>AI is powerful — but not human. And the dangers of misaligned or poorly governed AI systems are far deeper than most people realize.</em></strong></blockquote><p>This post summarizes <strong>5 critical risks of advanced AI and LLMs</strong>, and why these systems <strong>cannot safely replace humans. </strong>I include <strong>official research papers, governance documents, and primary references</strong>, not just opinions.</p><h3>1. 🧩 AI Hallucinations &amp; “Plausible Lies”</h3><p>LLMs don’t understand the world — they generate statistically likely text. That means:</p><ul><li>They can be <strong>confidently wrong</strong></li><li>Their mistakes aren’t random — they are systematic and hard to detect</li></ul><p>This is one of the biggest barriers to safe deployment in medicine, law, finance, and critical systems. And even if we deploy them in medicine and law, who will take responsibility for mistakes and losses? How can we measure success? Who is responsible: developers, doctors, management?</p><h4>Official Research</h4><ul><li><a href="https://arxiv.org/abs/2401.01313"><em>A Survey on Hallucination in Large Language Models</em></a></li><li><a href="https://www.sei.cmu.edu/blog/weaknesses-and-vulnerabilities-in-modern-ai-why-security-and-safety-are-so-challenging/"><em>Weaknesses and Vulnerabilities in Modern AI Systems</em> (CMU/SEI)</a></li></ul><h3>2. ⚖️ Deep Bias &amp; Embedded Social Stereotypes</h3><p>LLMs inherit (and sometimes amplify) harmful biases from their training data. And because the output sounds fluent and reasonable, <strong>bias becomes invisible</strong>. So it means you are getting results based on bias, which affects our bias (which we all have on some level). It creates more roadblocks for minorities or groups of people to whom this bias is directed.</p><h4>Official Research</h4><ul><li><a href="https://arxiv.org/abs/2308.14921"><em>Gender Bias and Stereotypes in LLMs</em> (2023)</a></li><li><a href="https://link.springer.com/article/10.1007/s43621-025-00815-8"><em>Ethical and Social Risks of Large Language Models</em> (Nature / Springer)</a></li></ul><h3>3. 🧍‍♀️ Loss of Human Agency &amp; Critical Thinking</h3><p>Let’s be honest to emphasize this subtle risk of relying on just AI models:</p><blockquote><strong><em>The more we rely on AI for cognitive work, the less we practice independent reasoning.</em></strong></blockquote><p>Research shows that over-reliance on LLMs leads to:</p><ul><li>Lower critical-thinking effort</li><li>Reduced learning</li><li>Shallow decision-making</li><li>Erosion of human judgment</li></ul><p>How can we make sure we are right in our judgment when we are losing and not taking accountability for decision-making, not analyzing from different angles, and questioning everything? Each model that we train, especially LLM models, is a collection of decades of critical thinking and decision-making. But if we collectively stop doing it, what will be the outcome of LLM-trained data producing LLM data, for training LLM data again…?</p><h4>Official Research</h4><ul><li><a href="https://www.researchgate.net/publication/385743952_The_Risks_Of_Human_Overreliance_On_Large_Language_Models_For_Critical_Thinking"><em>Risks of Human Overreliance on Large Language Models</em></a></li><li><a href="https://en.wikipedia.org/wiki/AI_trust_paradox"><em>AI Trust Paradox</em></a></li></ul><h3>4. 🔐 Privacy, Data Leakage &amp; Security Threats</h3><p>LLMs may at some point reveal:</p><ul><li>personal data,</li><li>proprietary information,</li><li>sensitive patterns from training sets.</li></ul><p>And open-source foundation models can be misused or fine-tuned into harmful systems. We already have a few big data leaks from the OpenAI side. How and who will protect our data and privacy? And we all know, if we put something in the LLM model, it stays there forever…right?</p><h4>Official Research</h4><ul><li><a href="https://www.edpb.europa.eu/system/files/2025-04/ai-privacy-risks-and-mitigations-in-llms.pdf"><em>AI Privacy Risks &amp; Mitigations in LLMs</em> (EDPB official document)</a></li><li><a href="https://openai.com/index/mixpanel-incident/"><em>OpenAI Data leakage 2025</em></a></li><li><a href="https://netchoice.org/wp-content/uploads/2023/04/Dempsey-AI-Paper_LLMs-Security-and-Privacy-Risks_April-2023.pdf"><em>LLM Security &amp; Privacy Risks</em> (NetChoice Institute)</a></li><li><a href="https://securityandtechnology.org/wp-content/uploads/2023/12/How-Does-Access-Impact-Risk-Assessing-AI-Foundation-Model-Risk-Along-A-Gradient-of-Access-Dec-2023.pdf"><em>Access Levels &amp; Foundation Model Risk Assessment</em></a></li></ul><h3>5. 🌐 Systemic Risks: Misinformation, Manipulation &amp; Global Instability</h3><p>AI can generate persuasive misinformation at scale:</p><ul><li>political propaganda</li><li>fraudulent content</li><li>fake reviews</li><li>realistic phishing</li><li>synthetic identities</li></ul><p>Misuse becomes <strong>cheap, fast, and global</strong>. How can you know what is fake, what was used for propaganda? We already have a lot of DeepFake situations. Who is responsible for spreading misleading information?</p><h4>Official Research</h4><ul><li><a href="https://arxiv.org/abs/2305.13661"><em>On the Risk of Misinformation Pollution with LLMs</em></a></li><li><a href="https://arxiv.org/abs/2408.12622"><em>AI Risk Repository</em> — taxonomies of technical &amp; systemic risks</a></li><li><a href="https://en.wikipedia.org/wiki/Existential_risk_from_artificial_intelligence"><em>Existential Risk from Artificial Intelligence</em></a></li></ul><h3>🧠 AI ≠ Human Understanding</h3><p>LLMs optimize to predict text — not to reason morally, understand social nuance, or respect human dignity. It understands just the rules that were predefined before, and you still need someone who can make critical decisions. Understands context and can make cultural appropriation if needed. Like how firefighters do it almost whenever they are on duty, and doctors in ER rooms.</p><p>Even specifying “do the right thing” is extremely difficult. A superhuman AI misinterpreting even a simple instruction can lead to dangerous outcomes. Like simple tasks like making a tea can easily become an act of destruction if it does not include all input and output results. But the world is way more complicated; you can’t write conditions for each life scenario, where AI can take some paths. Even these simple tasks need critical thinking. Replacing humans removes:</p><ul><li>accountability</li><li>emotional intelligence</li><li>moral responsibility</li><li>social meaning</li></ul><p>Machines cannot replicate these. Moreover, centralized AI systems can concentrate wealth, decision-making, and knowledge in a few companies or governments. How can we make sure equality and human rights will be supported in this scenario…?</p><p><strong>Reference:</strong></p><ul><li><a href="https://en.wikipedia.org/wiki/AI_alignment"><em>What is AI Alignment?</em></a></li><li><a href="https://www.youtube.com/watch?v=kMLKbhY0ji0"><em>There is a good chance this kills everyone</em></a>.</li></ul><h3>🎬 Final Thoughts</h3><p>AI is not just another tool.</p><p>It is a transformative technology that can help humanity — but also creates risks we’ve never faced before. Replacing people with AI is not only unrealistic — it’s dangerous. We should design AI that <strong>supports humans</strong>, not replaces them.</p><p>As Robert Miles often says (yes, I rely on his work a lot):</p><blockquote><em>“The future where AI is safe doesn’t happen by default. It happens because we build it intentionally.”</em></blockquote><p>That was all for this post. A bit sad, if you ask me. Let me know your ideas, thoughts. I am happy to brainstorm your side of the story.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3jAgk3yd_UQ6Lt7VBBdoQg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cashmacanaya?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Cash Macanaya</a> on <a href="https://unsplash.com/photos/two-hands-reaching-for-a-flying-object-in-the-sky-X9Cemmq4YjM?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d63588af6f63" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codetodeploy/why-ai-cant-replace-people-and-why-ai-safety-matters-more-than-ever-d63588af6f63">🧠 Why AI Can’t Replace People — And Why AI Safety Matters More Than Ever</a> was originally published in <a href="https://medium.com/codetodeploy">CodeToDeploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building AI-Powered Feedback Analysis in OutSystems and Claude (Anthropic AI)]]></title>
            <link>https://itnext.io/building-ai-powered-feedback-analysis-in-outsystems-and-claude-anthropic-ai-08e8d273d9ba?source=rss-a424dfc6fe0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/08e8d273d9ba</guid>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[outsystems]]></category>
            <dc:creator><![CDATA[Cabdukayumova]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 00:55:35 GMT</pubDate>
            <atom:updated>2025-11-26T09:08:15.910Z</atom:updated>
            <content:encoded><![CDATA[<p>It is almost the end of the year, and time for reflecting on our past time around the Sun. And this expression is true even for service providers or any company. So, how can we use AI in this case?<br>Why not use AI tools to see insight into feedback, which will give us some summary of positive or negative outcomes, and give some suggestions as well? So let’s build it by ourselves =)</p><p>For this goal, I used OutSystems and Claude (Anthropic AI). One of my first thoughts, as usual, was creating an AWS setup or jumping to OpenAI. But why not test different AI tools to see which one can be useful in different scenarios?</p><p><strong>What will be covered?</strong></p><ul><li>Integration logic</li><li>Set up the Claude API</li><li>Set up the OutSystems connection</li></ul><p>Let’s get started =)</p><h3>Integration logic</h3><p>We should follow the following steps:</p><ol><li><strong>A simple Feedback entity</strong></li></ol><p>Note, this can be bootstrapped from Excel, or you can connect to any other CRM tools that you have. This setup is minimal for showing what, at least, you can do and manage from your side.</p><p><strong>2. A screen that lists all feedback</strong></p><p><strong>3. A “Load Data” button</strong></p><p><strong>4. A Service Action calling the Claude Messages API. </strong>It returns a JSON response with:</p><ul><li>sentiment counts</li><li>top recurring themes</li><li>positive summary</li><li>negative summary</li><li>neutral summary</li><li>suggestions summary</li></ul><p><strong>5. A dashboard showing the results</strong></p><blockquote>Note: I will not cover UI side of this integration. You have freedom to play around and achieve your goal.</blockquote><h3>Set up the Claude API</h3><p>Go to your console <a href="https://console.anthropic.com/dashboard">dashboard</a>, click the Get API Key button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E55_8_ct2gf6EikKWvQACg.png" /><figcaption>Claude dashboard</figcaption></figure><p>From there, click the +Create Key button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WMgpPE4jtmr_Th32CJVWqg.png" /><figcaption>Create a key</figcaption></figure><p>Select the workspace where you want to create an API key, and give your key a name. Next, click the Add button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*Nl6f5vkPuLdcUbYwOjnIIA.png" /><figcaption>Setting up a key</figcaption></figure><p>Make sure you copied the API key from the pop-up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*90T7PL499OUXIaTRw86t1A.png" /><figcaption>Newly created API key</figcaption></figure><p>Finally, you can see a newly created API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ddZkqCGcSEwbC-L52vOU-w.png" /><figcaption>API dashboard</figcaption></figure><p>That was all set up from Claude&#39;s side—time to move to OutSystems.</p><h3>Set up the OutSystems connection</h3><h4>0. Set up API Key</h4><p>Before starting with API creation API, let’s set up a Site Property for our API Key. This step is totally optional. I did it to be able to manage from the Service Center. You can skip it and just copy and paste directly to the API request header.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*qtq32sOlkqCvMchmAufy1w.png" /></figure><h4>1. Create the feedback entity</h4><p>In your app, create an Entity<strong>: </strong><strong>Feedback</strong></p><ul><li>Id – AutoNumber (Identifier)</li><li>Source – Text (e.g., “LinkedIn”, “Form”)</li><li>Text – Text (the actual feedback)</li><li>CreatedOn – DateTime (default: CurrDateTime())</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/1*i7OSHRQ6058722uK-zMJpw.png" /></figure><p>This is where you store raw feedback.</p><h4>2. Create a structure.</h4><p>Next, we should create a structure for deserializing our response.</p><p>Create a ClaudeFeedbackAnalysis structure with the below JSON:</p><pre>{<br>  &quot;feedback_analysis&quot;: {<br>    &quot;total_items&quot;: 15,<br>    &quot;sentiment_counts&quot;: {<br>      &quot;positive&quot;: 6,<br>      &quot;negative&quot;: 6,<br>      &quot;neutral&quot;: 1,<br>      &quot;mixed&quot;: 2<br>    },<br>    &quot;top_themes&quot;: [&quot;UI/UX&quot;, &quot;Performance&quot;],<br>    &quot;positive_summary&quot;: &quot;Users appreciate...&quot;,<br>    &quot;negative_summary&quot;: &quot;Main complaints...&quot;,<br>    &quot;neutral_summary&quot;: &quot;Neutral feedback...&quot;,<br>    &quot;suggestions_summary&quot;: &quot;Overall suggestions...&quot;<br>  }<br>}</pre><h4>4. Create API connection</h4><p>Go to your logic tab, right-click the REST icon, and select Consume REST API</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*Z68UzWzAvU5EhPs0R4tICw.png" /><figcaption>Creating REST API</figcaption></figure><p>Select POST method and use <a href="https://api.anthropic.com/v1/messages"><em>https://api.anthropic.com/v1/messages</em></a><em> </em>URL. Make sure you added headers as given below.</p><p>Copy-paste JSON body below:</p><pre>{<br>  &quot;model&quot;: &quot;claude-3-7-sonnet-20250219&quot;,<br>  &quot;max_tokens&quot;: 800,<br>  &quot;system&quot;: &quot;string&quot;,<br>  &quot;messages&quot;: [<br>    {<br>      &quot;role&quot;: &quot;user&quot;,<br>      &quot;content&quot;: [<br>        {<br>          &quot;type&quot;: &quot;text&quot;,<br>          &quot;text&quot;: &quot;string&quot;<br>        }<br>      ]<br>    }<br>  ]<br>}</pre><p>Quick note here: as you can see, I am using 800 for <em>max_tokens</em>. You can try to increase or decrease this value. It will show how detailed your model should be. If you are sending a longer list, the waiting time will increase dramatically as well. Sometimes, if you have too high token numbers, OutSystems may return a timeout error. Make sure you increase the timeout waiting time for API response and your actions as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*mVkG49mYBHaQiogBazwkeQ.png" /></figure><p>Before closing the pop-up. Test the request. Copy the body of the request.</p><p>That was all for creating an API connection. Time to move to the action with serialization and deserialization.</p><h4>5. Set up actions</h4><p>This step took a lot of time. I was working a lot to make sure the request and response bodies would work perfectly. At some point, I was just considering my life choices…</p><p>Nevertheless, I could finish the action. I will drop a screenshot with descriptions. Make sure you test small parts of each step for not to be lost in the end. And feel free to ask me questions if you need some support.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/1*zuffb7NGFzUpD_XuWUI5Zw.png" /><figcaption>API calling action</figcaption></figure><p>As you can see, first I get the data and serialize it, and after that I add headers. Finally, before requesting from the API and merging the two serialized data into one assignment. And finally, I deserialized the response using the structure that was created in step 2.</p><h4>6. Final results of integration.</h4><p>I created a simple dashboard for showing response results from the API. Below you can see my results. Again, feel free to play around and test different dashboard designs and solutions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wL2zhGlTbYiUImsdNjAtXQ.gif" /></figure><p>That was all for this time. Let me know your solutions for Claude AI and/or other tools that you find interesting to use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08e8d273d9ba" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/building-ai-powered-feedback-analysis-in-outsystems-and-claude-anthropic-ai-08e8d273d9ba">Building AI-Powered Feedback Analysis in OutSystems and Claude (Anthropic AI)</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>