<?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 Ljubo Franulic on Medium]]></title>
        <description><![CDATA[Stories by Ljubo Franulic on Medium]]></description>
        <link>https://medium.com/@ljfranulic?source=rss-775f47831f32------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*C0KzOLyQRpxbcOyyWRgIKw.jpeg</url>
            <title>Stories by Ljubo Franulic on Medium</title>
            <link>https://medium.com/@ljfranulic?source=rss-775f47831f32------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:29:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ljfranulic/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[Deploying Secure AI Agents with Azure Entra ID and IBM watsonx Orchestrate]]></title>
            <link>https://medium.com/@ljfranulic/deploying-secure-ai-agents-with-azure-entra-id-and-ibm-watsonx-orchestrate-cceee76dd35e?source=rss-775f47831f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/cceee76dd35e</guid>
            <category><![CDATA[sso]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[entra-id]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[watsonx-orchestrate]]></category>
            <dc:creator><![CDATA[Ljubo Franulic]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 20:23:14 GMT</pubDate>
            <atom:updated>2026-10-02T20:23:14.719Z</atom:updated>
            <content:encoded><![CDATA[<p>A Quick How-To On How To Integrate Entra Id and Orchestrate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i1pmeV4u_7wUfVrzIks99w.jpeg" /></figure><h3>Enterprise-Grade Security for AI Agents</h3><p>As organizations transition from experimental AI to fully integrated agentic workflows, security is no longer an afterthought — it is a foundational requirement. Deploying AI agents that can access proprietary databases, trigger business workflows, and act on behalf of corporate employees requires bulletproof authentication and authorization.</p><p><strong>IBM watsonx Orchestrate</strong> is designed from the ground up for enterprise-grade security, protecting access at every tier of your AI agentic architecture. When embedding wxO’s powerful chat interface into corporate portals, security must remain unbroken. The embedded chat supports several authentication schemes, ranging from simple anonymous chats to<strong> robust token-based Single Sign-On</strong> (SSO).</p><blockquote>For secure enterprise operations, Secured (Token-Based) Authentication is the Gold Standard.</blockquote><p>It guarantees that every request sent from the chat interface is verified, authenticated, and explicitly mapped to a <strong>verified corporate user identity</strong>, eliminating identity-spoofing and unauthorized resource access.</p><h3>Protecting Back-Office AI Agents with Azure Entra ID</h3><p><strong>Microsoft Entra ID</strong> (formerly Azure Active Directory) is the most widely adopted identity provider (IdP) in the enterprise world. For organizations deploying back-office AI agents, integrating with an existing Entra ID instance is the most natural and secure path.</p><p>Imagine an AI agent designed to help corporate collaborators query HR benefits, generate financial reports, or trigger IT service tickets. By integrating watsonx Orchestrate with Azure Entra ID, this agent can leverage the organization’s existing access control lists (ACLs) and security groups. The user logs into their workspace using their standard corporate credentials, and the AI agent <strong>automatically and securely inherits their identity</strong>, ensuring that sensitive documents and restricted tools are only accessed by authorized personnel.</p><h3>The Complexity of Azure Entra ID: Handling Key Rollover</h3><p>While integrating with Azure Entra ID is powerful, it introduces a crucial engineering challenge: <strong>Signing Key Rollover</strong>.</p><p>To sign ID and access tokens, Microsoft Entra ID publishes a set of public keys via a public endpoint (JSON Web Key Sets, or JWKS). For security purposes, <strong>Microsoft rotates these keys periodically</strong> (typically every few weeks) or immediately in an emergency key-compromise event.</p><p>Applications that support only a hardcoded or single signing key are inherently brittle and insecure. If Microsoft rolls over its keys and your application does not handle it programmatically, your authentication system will fail. <strong>Manual updates to these keys are an operational nightmare</strong> and leave a dangerous window of vulnerability.</p><blockquote>Fortunately, IBM watsonx Orchestrate provides secure REST APIs that allow external portals to update security configurations programmatically.</blockquote><p>This means we can implement a highly reliable architecture that dynamically monitors Microsoft’s key rollover and automatically synchronizes the security configurations.</p><h3>A Secure Architecture Under the Hood</h3><p>As an example, let’s consider this secure 2-step trust flow:</p><ol><li><strong>Dynamic Identity Verification (The Entra ID Handshake)</strong>:<br> The user accesses your portal. If not logged in, they are redirected to Azure Entra ID. Upon successful login, the server receives an OIDC ID Token. Rather than trusting this token blindly, the server fetches Microsoft’s active keys dynamically from the JWKS endpoint and verifies the token’s cryptographic signature, expiration, and audience.</li><li><strong>Secure wxO Handshake (Token-Based SSO)</strong>:<br> Once verified, the server generates a short-lived JSON Web Token (JWT) signed with its own private RSA key. This token includes the user’s corporate identity. The frontend passes this JWT to the embedded watsonx Orchestrate chat. Because watsonx Orchestrate has been pre-configured with the corresponding public RSA key, it can instantly verify the JWT’s integrity and securely identify the user.</li></ol><p>Let’s look at the key essential parts of implementing this logic on both the server and the client side.</p><h3>Server-Side Implementation</h3><ol><li><strong>Dynamic Azure AD Token Verification</strong><br>Using standard OIDC libraries or a lightweight JWKS client (like jwks-rsa in Node.js), we can dynamically verify Azure’s tokens while handling key rotations transparently:</li></ol><pre>const jwksClient = require(‘jwks-rsa’);<br>const jwt = require(‘jsonwebtoken’);<br><br>const jwksClientInstance = jwksClient({<br> jwksUri: `https://login.microsoftonline.com/${AZURE_TENANT_ID}/discovery/v2.0/keys`,<br> cache: true,<br> cacheMaxAge: 86400000, // Cache keys for 24 hours<br> rateLimit: true<br>});<br><br>function getKey(header, callback) {<br> jwksClientInstance.getSigningKey(header.kid, (err, key) =&gt; {<br> if (err) return callback(err);<br> callback(null, key.getPublicKey());<br> });<br>}<br><br>function verifyAzureToken(token) {<br> return new Promise((resolve, reject) =&gt; {<br> jwt.verify(token, getKey, {<br> audience: AZURE_CLIENT_ID,<br> issuer: `https://login.microsoftonline.com/${AZURE_TENANT_ID}/v2.0`,<br> algorithms: [‘RS256’]<br> }, (err, decoded) =&gt; {<br> if (err) return reject(err);<br> resolve(decoded);<br> });<br> });<br>}</pre><p>2. <strong>Secure JWT Generation for watsonx Orchestrate</strong><br>Once the corporate user is verified, your backend generates a secure, short-lived JWT signed with your local RSA private key. This token is passed to the embedded chat loader in the frontend:</p><pre>function generateWxOToken(user) {<br> const payload = {<br> sub: user.id, // Unique user ID from Azure AD<br> name: user.name, // User display name<br> email: user.email, // Corporate email<br> iat: Math.floor(Date.now() / 1000),<br> exp: Math.floor(Date.now() / 1000) + (60 * 60) // Expire in 1 hour<br> };<br>return jwt.sign(payload, JWT_PRIVATE_KEY, { algorithm: ‘RS256’ });<br>}</pre><p>3. <strong>Automating Security Updates with watsonx Orchestrate</strong><br>To make the integration work, watsonx Orchestrate must know your public key. Instead of configuring this manually in the IBM Cloud Console, we can automate the key synchronization using watsonx Orchestrate’s APIs. A background routine <strong>refreshes the keys every 24 hours and programmatically registers the public key</strong>, ensuring zero service interruption:</p><pre>async function configureWxOSecurity(jwtPublicKey, wxoApiKey, wxoApiUrl) {<br> // 1. Exchange the watsonx Orchestrate API key for an IBM Cloud IAM token<br> const tokenResponse = await axios.post(<br> ‘https://iam.cloud.ibm.com/identity/token&#39;,<br> new URLSearchParams({<br> grant_type: ‘urn:ibm:params:oauth:grant-type:apikey’,<br> apikey: wxoApiKey<br> }),<br> { headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded’ } }<br> );<br> <br> const iamToken = tokenResponse.data.access_token;<br><br>// 2. Programmatically push your public key to watsonx Orchestrate<br> const response = await axios.post(<br> `${wxoApiUrl}/v1/embed/secure/config`,<br> {<br> public_key: jwtPublicKey,<br> client_public_key: jwtPublicKey,<br> is_security_enabled: true<br> },<br> {<br> headers: {<br> ‘Authorization’: `Bearer ${iamToken}`,<br> ‘Content-Type’: ‘application/json’<br> }<br> }<br> );<br> <br> return response.data;<br>}</pre><p>By scheduling configureWxOSecurity to run on server startup and every 24 hours (aligned with JWKS cache refreshing), you create a highly resilient, self-healing security boundary that handles key rollover events with zero manual intervention.</p><h3>Client-Side Configuration (The Frontend Integration)</h3><p>Once the server-side architecture is established, rendering the secure embedded chat on the client side is elegant and straightforward. The frontend portal retrieves the configuration parameters and the user-specific secure JWT token from your backend, and initializes watsonx Orchestrate using a globally accessible configuration object.</p><p>Here is how the essential configuration and dynamic loading are structured:</p><p>1. <strong>Setting the Configuration Object</strong><br>In your portal’s frontend HTML/JavaScript, define the global window.wxOConfiguration object. This object holds critical routing parameters and the custom secure token generated specifically for that authenticated session:</p><pre>// Fetch configuration and identity token from your secure backend<br>const config = await getWxOConfig(); // Retrieves orchestrationID, hostURL, crn, etc.<br>const token = await getIdentityToken(); // Retrieves the user’s secure signed JWT<br><br>window.wxOConfiguration = {<br> orchestrationID: config.orchestrationID,<br> hostURL: config.hostURL,<br> rootElementID: “root”, // DOM element where the chat will mount<br> deploymentPlatform: “ibmcloud”,<br> crn: config.crn,<br> token: token, // Secure JWT passed to verify user identity<br> chatOptions: {<br> agentId: config.agentId, <br> },<br> layout: {<br> form: ‘fullscreen-overlay’,<br> showOrchestrateHeader: true,<br> },<br> showLauncher: false // Hide default launcher to control custom initiation<br>};</pre><p>2. <strong>Dynamically Injecting the Loader Script</strong><br>To render the chat, load the official wxoLoader.js script dynamically from the authenticated host URL. Upon successful loading, initialize the interface:</p><pre>const script = document.createElement(“script”);<br>script.src = `${window.wxOConfiguration.hostURL}/wxochat/wxoLoader.js?embed=true`;<br>script.addEventListener(“load”, function () {<br> console.log(‘[wxO] Loader script loaded successfully. Initializing chat…’);<br> wxoLoader.init(); // Bootstraps and renders the chat inside the #root container<br>});<br>script.addEventListener(“error”, function (error) {<br> console.error(‘[wxO] Failed to load loader script:’, error);<br>});<br>document.head.appendChild(script);</pre><p>By isolating token fetching behind your secure backend, you prevent exposure of your private certificates and keep critical cloud environment secrets safe from malicious clients, maintaining a secure trust loop.</p><h3>Quick Integration Checklist (How-To Setup)</h3><p>Deploying this integration involves five straightforward steps:</p><ol><li><strong>Generate your RSA Key Pair:</strong><br> Create a standard 2048-bit RSA key pair. The private key will remain securely on your server to sign user tokens, while the public key will be shared with watsonx Orchestrate.</li></ol><pre> $ openssl genrsa -out private.key 2048<br> $ openssl rsa -in private.key -pubout -out public.key</pre><p>2.<strong> Configure Azure Active Directory (Entra ID):</strong><br>- Register a new Application in the Azure Portal.<br>- Under Authentication, add a Redirect URI pointing to your backend portal callback (e.g., <a href="https://your-portal.com/auth/callback%60">https://your-portal.com/auth/callback</a>) and enable ID tokens.<br>- Create a Client Secret under Certificates &amp; secrets.<br>- Assign appropriate API Permissions (such as standard OIDC openid, profile, and email).</p><p>3.<strong> Configure Watsonx Orchestrate:</strong><br> Retrieve your Orchestration ID, Agent ID, CRN, Host URL, and API key from your IBM watsonx Orchestrate instance.</p><p>4. <strong>Initialize the Environment and Services:</strong><br> Set up your server’s environment variables (including Azure client credentials, session secrets, wxO credentials, and key files).</p><p>5. <strong>Embed the Secured Chat UI:</strong><br> In your portal’s frontend, fetch the secure JWT token from your backend, define the window.wxOConfiguration payload containing the user’s dynamic token, and load the wxoLoader.js script to render the secure, personalized assistant.</p><h3>Accelerate Your Agentic Journey</h3><p><strong>watsonx Orchestrate</strong> is a comprehensive platform engineered to support the entire agentic lifecycle — from orchestration design and development to secure deployment and rigorous monitoring.</p><p>Whether you are looking to deploy your first secure AI Agent, connect custom proprietary systems, or design an enterprise-wide agentic strategy, you do not have to walk this path alone. <strong>IBM Expert Labs</strong> is a global team of elite AI engineers, architects, and product experts ready to partner with your organization. From architecture design to production deployment, <strong>Expert Labs</strong> can accelerate your time-to-value, ensure best practices, and help you unlock the full power of <strong>IBM watsonx Orchestrate</strong> safely and at scale.</p><p>Contact <strong>IBM Expert Labs</strong> today to kickstart your secure enterprise AI transformation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cceee76dd35e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Structuring a Scalable IBM watsonx Orchestrate ADK Workspace]]></title>
            <link>https://medium.com/@ljfranulic/structuring-a-scalable-ibm-watsonx-orchestrate-adk-workspace-078d6a4f0d37?source=rss-775f47831f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/078d6a4f0d37</guid>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[watsonx-orchestrate]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[adk]]></category>
            <dc:creator><![CDATA[Ljubo Franulic]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 16:58:27 GMT</pubDate>
            <atom:updated>2026-09-24T16:58:27.363Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Guide to Managing Agentic Artifacts Like a Pro</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUElZxs14qxr_8VAsKTreQ.jpeg" /></figure><p>Building your first agent in the <strong>IBM watsonx Orchestrate</strong> UI is genuinely fast. The visual builder is great for prototyping or for business users who want to explore capabilities without writing code. But when you are managing an ecosystem of multiple agents, tools, connections, and knowledge bases for a real enterprise environment, clicking around a UI does not scale. Artifacts become hard to track, deployments are impossible to reproduce, and onboarding a new team member turns into a tribal-knowledge session.</p><blockquote>There is a better way, and it comes from an approach that cloud-native engineers already know well.</blockquote><h3>The ADK Approach: YAML as the Source of Truth</h3><p>The <strong>watsonx Orchestrate Agent Development Kit</strong> (ADK) represents every platform artifact — agents, tools, connections, knowledge bases, toolkits, voice configurations, evaluations — as a YAML specification file. This is the same infrastructure-as-code philosophy behind Kubernetes and OpenShift, where you define desired state in version-controlled files and apply them to a running environment.</p><p>If you have ever written a Kubernetes Deployment manifest or a Helm chart, this mental model is immediately familiar:</p><ul><li>Your YAML files are the canonical definition of what exists in your environment.</li><li>The orchestrate CLI is your kubectl. It reads YAML and applies it.</li><li>A git repository becomes the single source of truth for your entire agentic ecosystem.</li><li>Pull requests, code reviews, and changelogs apply to agent behavior, tool definitions, and connection topology just as they would to application code.</li></ul><p>This approach brings repeatability, auditability, and collaboration to agentic development — <strong>things you cannot get from a UI alone</strong>.</p><h3>A Concrete Project Structure: Acme Bank</h3><p>Let us walk through a practical folder hierarchy for a fictional banking institution, Acme Bank. We will focus on the Customer Care initiative, but the structure is designed to support multiple parallel initiatives in the same repository.</p><pre>  acme-bank-wxo/<br>  |<br>  |-- customer_care/               &lt;-- one initiative / domain<br>  |   |-- agents/<br>  |   |   |-- customer_care_agent.yaml<br>  |   |   |-- vip_customer_care_agent.yaml<br>  |   |   |-- escalation_agent.yaml<br>  |   |-- connections/<br>  |   |   |-- acme_core_banking.yaml<br>  |   |   |-- acme_crm.yaml<br>  |   |-- knowledge-bases/<br>  |   |   |-- acme_faq.yaml<br>  |   |   |-- acme_products_kb.yaml<br>  |   |-- toolkits/<br>  |   |   |-- acme-mcp-server/     &lt;-- MCP server source code lives here<br>  |   |       |-- src/<br>  |   |       |-- package.json<br>  |   |-- tools/<br>  |   |   |-- get_account_balance.py<br>  |   |   |-- transfer_funds.py<br>  |   |   |-- requirements.txt<br>  |   |-- voice-configs/<br>  |   |   |-- acme_voice_config.yaml<br>  |   |-- evaluations/<br>  |   |   |-- customer_care_eval.yaml<br>  |   |-- import-all.sh            &lt;-- your deployment automation script<br>  |   |-- activate.sh              &lt;-- local environment bootstrap (gitignored)<br>  |   |-- .env                     &lt;-- secrets (gitignored)<br>  |   |-- langfuse.env             &lt;-- observability config (gitignored)<br>  |   |-- .gitignore<br>  |   |-- README.md<br>  |<br>  |-- back_office/                 &lt;-- separate initiative, same repo<br>  |   |-- agents/<br>  |   |-- tools/<br>  |   |-- connections/<br>  |   |-- import-all.sh<br>  |   ...<br>  |<br>  |-- human_resources/             &lt;-- another initiative<br>  |   |-- agents/<br>  |   |-- tools/<br>  |   |-- import-all.sh<br>  |   ...</pre><p>Each top-level folder represents an independent domain or business initiative. They share the same repository, which makes cross-team visibility easy, but each has its own import script, secrets file, and README. This separation means the HR team can deploy their agents without touching the Customer Care environment, and vice versa. In larger organizations, each folder could also live in its own repository — <strong>the pattern scales either way</strong>.</p><p>Here is what the main customer care agent for the Acme core banking system looks like:</p><pre># agents/customer_care_agent.yaml<br> spec_version: v1<br> kind: native<br> name: customer_care_agent<br> description: &gt;<br> Customer care specialist for Acme Bank. Handles account inquiries,<br> product questions, card operations, and escalates complex issues.<br> llm: groq/openai/gpt-oss-120b<br> style: react_core<br> instructions: |<br> You are a helpful and professional customer care agent for Acme Bank.<br> Use get_account_balance to answer balance inquiries.<br> Use transfer_funds for fund transfer requests — always confirm details before executing.<br> Use the acme_faq knowledge base for product and policy questions.<br> Escalate unresolved complaints to the escalation_agent collaborator.<br> tools:<br> — get_account_balance<br> — transfer_funds<br> knowledge_base:<br> — acme_faq<br> collaborators:<br> — escalation_agent<br> welcome_content:<br> welcome_message: Welcome to Acme Bank Customer Care<br> description: Ask me about your accounts, transfers, or any banking question.<br> is_default_message: false</pre><p>Notice that spec_version: v1 and kind: native are required fields. Tool and collaborator names must exactly match the names of already-imported artifacts — <strong>which is precisely why import order matters</strong>.</p><h3>The import-all.sh Script: Automation and Living Documentation</h3><p>A bash script named import-all.sh is the heartbeat of your deployment workflow. It does two things at once: it <strong>automates</strong> the entire import process with a single command, and it documents the <strong>dependency order</strong> your environment requires.</p><p>The dependency order is not arbitrary. Connections must exist before tools that reference them. Tools must be imported before agents that list them. Knowledge bases and toolkits follow the same rule. Getting this wrong means import errors that are confusing to diagnose if the order is not documented anywhere.</p><p>Here is the import-all.sh for Acme Bank’s Customer Care initiative:</p><pre>#!/bin/bash<br> set -e<br><br>SCRIPT_DIR=$( cd — “$( dirname — “${BASH_SOURCE[0]}” )” &amp;&gt; /dev/null &amp;&amp; pwd )<br><br># Load secrets from .env file<br> if [ -f “${SCRIPT_DIR}/.env” ]; then<br> set -a<br> source “${SCRIPT_DIR}/.env”<br> set +a<br> else<br> echo “ERROR: .env file not found. Copy .env.example and fill in your credentials.”<br> exit 1<br> fi<br><br>echo “==&gt; Step 1: Connections”<br> orchestrate connections remove -a acme_core_banking || true<br> orchestrate connections import -f “${SCRIPT_DIR}/connections/acme_core_banking.yaml”<br> orchestrate connections set-credentials — app-id acme_core_banking — env draft \<br> -e “ACME_USERNAME=${ACME_USERNAME}” \<br> -e “ACME_PASSWORD=${ACME_PASSWORD}”<br><br>echo “==&gt; Step 2: MCP Toolkit”<br> orchestrate toolkits remove -n acme-mcp-server || true<br> orchestrate toolkits add \<br> — kind mcp \<br> — name “acme-mcp-server” \<br> — description “MCP tools for Acme Bank, including card operations and fraud alerts.” \<br> — package-root “${SCRIPT_DIR}/toolkits/acme-mcp-server” \<br> — command “npm start” \<br> — tools “*” \<br> — app-id acme_core_banking<br><br>echo “==&gt; Step 3: Python Tools”<br> orchestrate tools import -k python -f “${SCRIPT_DIR}/tools/get_account_balance.py” \<br> -r “${SCRIPT_DIR}/tools/requirements.txt” — app-id acme_core_banking<br> orchestrate tools import -k python -f “${SCRIPT_DIR}/tools/transfer_funds.py” \<br> -r “${SCRIPT_DIR}/tools/requirements.txt” — app-id acme_core_banking<br><br>echo “==&gt; Step 4: Knowledge Bases”<br> orchestrate knowledge-bases remove -n acme_faq || true<br> orchestrate knowledge-bases import -f “${SCRIPT_DIR}/knowledge-bases/acme_faq.yaml”<br><br>echo “==&gt; Step 5: Voice Config”<br> orchestrate voice-configs remove -n acme_voice_config || true<br> orchestrate voice-configs import -f “${SCRIPT_DIR}/voice-configs/acme_voice_config.yaml”<br><br>echo “==&gt; Step 6: Agents (last, all dependencies must be ready)”<br> orchestrate agents import -f “${SCRIPT_DIR}/agents/escalation_agent.yaml”<br> orchestrate agents import -f “${SCRIPT_DIR}/agents/customer_care_agent.yaml”<br><br>echo “”<br> echo “All done. Customer Care environment deployed.”</pre><p>Key design decisions in this script:</p><ol><li><strong>Secrets are never hardcoded.</strong> The script loads them from a .env file via source. The variables ACME_USERNAME and ACME_PASSWORD are injected at runtime from that file, which is gitignored. The script itself — with its documented dependency order and import logic — is safe to commit to git.</li><li><strong>The </strong><strong>|| true pattern on remove commands makes the script idempotent.</strong> Running it again after a partial failure or to update a single artifact does not abort because a remove command failed on something that did not exist.</li><li><strong>set -e at the top ensures any real failure</strong> (a failed import, a bad YAML file)<strong> stops the script immediately</strong> rather than silently continuing to a broken state.</li><li><strong>SCRIPT_DIR makes the script portable.</strong> It works regardless of which directory you invoke it from.</li></ol><h3>The .env File: Keep Your Secrets Out of Git</h3><p>The actual credentials used in import-all.sh must live in a .env file that is never committed to version control. A good practice is to commit a .env.example file with placeholder values so developers know what variables are expected:</p><pre># .env.example — commit this to git<br> ACME_USERNAME=???<br> ACME_PASSWORD=???<br> IBM_CLOUD_API_KEY=???</pre><p>The import-all.sh script sources .env automatically. Any developer who clones the repository copies .env.example, fills in their credentials, and is ready to deploy.</p><h3>The activate.sh Script: Bootstrapping Your Local Environment</h3><p>Before running import-all.sh you need an active wxO environment — a named configuration that tells the orchestrate CLI which <strong>watsonx Orchestrate instance</strong> to target and how to authenticate.</p><p>The activate.sh script automates this:</p><pre>#!/bin/bash<br> # activate.sh — bootstraps the local wxO environment<br> # DO NOT commit this file to git (add to .gitignore)<br>source venv/bin/activate<br>orchestrate env add \<br> --name acme_bank_env \<br> --url &quot;https://api.us-south.watson-orchestrate.cloud.ibm.com/instances/YOUR_INSTANCE_ID&quot;<br>orchestrate env activate acme_bank_env --api-key “${IBM_CLOUD_API_KEY}”<br>echo “Environment activated. Run orchestrate agents list to verify.”</pre><p>This script should never go to git. It contains the instance URL and relies on credentials that belong in .env. Think of activate.sh as your personal workstation setup — you run it once when you start working on the project, and it is not part of what gets deployed or shared.</p><h3>The .gitignore: What Should Never Reach Version Control</h3><p>A well-crafted .gitignore protects credentials and local state while keeping all the important artifacts versioned. Here is a practical .gitignore for a wxO project:</p><pre># Secrets and environment credentials — never commit<br> .env<br> *.env<br> .env.*<br> !.env.example<br># Personal activation and bootstrap scripts<br> activate.sh<br> activate-*.sh<br># Python virtual environment<br> venv/<br> .venv/<br> __pycache__/<br> *.pyc<br> *.pyo<br> *.egg-info/<br> dist/<br> build/<br># Node/MCP server build artifacts<br> node_modules/<br> dist/<br> *.js.map<br># Generated flow specs (compiled at runtime, not source)<br> generated/<br># Observability configuration with tokens<br> langfuse.env<br> .langfuse<br># IDE and OS noise<br> .DS_Store<br> .idea/<br> .vscode/settings.json<br> *.swp</pre><p>Make sure to check; if a file contains secrets or compiled artifacts, it belongs in .gitignore. The YAML artifact definitions, import-all.sh, requirements.txt, and documentation always belong in git.</p><h3>Creating Artifacts from the CLI: The ADK Way</h3><p>Rather than building artifacts manually in the UI and then trying to export them, the recommended developer workflow is to define your YAML files locally and use the orchestrate CLI to push them to the platform.</p><p>For example, to create a new VIP customer care agent and save its definition directly into the right folder, you use the export command after importing a scaffolded definition, or you create the YAML locally and import it:</p><pre># Import a new agent definition from a local YAML file<br> orchestrate agents import -f customer_care/agents/vip_customer_care_agent.yaml</pre><p>If you already have a prototype agent that you built in the UI and want to bring it under version control, you can export it:</p><pre># Export an existing agent to a local YAML file<br> orchestrate agents export \<br> --name vip_customer_care_agent \<br> --kind native \<br> --output customer_care/agents/vip_customer_care_agent.yaml \<br> --agent-only</pre><p>The --agent-only flag exports just the agent definition without bundling its dependencies, which is what you want when those dependencies are already defined as separate YAML files in your repository.</p><p>For tools, the import command accepts Python files decorated with <a href="http://twitter.com/tool">@tool</a> directly:</p><pre># Import a Python tool<br> orchestrate tools import \<br> -k python \<br> -f customer_care/tools/get_account_balance.py \<br> -r customer_care/tools/requirements.txt \<br> --app-id acme_core_banking</pre><blockquote>The general pattern across all artifact types is consistent: orchestrate &lt;resource&gt; import -f &lt;path&gt;. Once you internalize that, the CLI becomes very predictable.</blockquote><h3>Putting It All Together: The Developer Loop</h3><p>A typical day working on the Acme Bank Customer Care agents looks like this:</p><ol><li>Pull the latest changes from git.</li><li>Run activate.sh once to authenticate against your wxO instance.</li><li>Edit YAML files, Python tools, or MCP server code.</li><li>Run ./import-all.sh to push all changes to the platform.</li><li>Test by chatting with the agent in the wxO UI or via:<br> orchestrate chat ask -n customer_care_agent “What is my account balance?”</li><li>Commit and push your YAML changes to git.</li></ol><p>Because import-all.sh handles the entire dependency chain, you never have to remember what to import first. Because secrets live in .env, you never accidentally commit credentials. Because YAML files are in git, every change is reviewable, reversible, and auditable.</p><h3>Going Further: IBM Bob and the watsonx Orchestrate ADK Extension</h3><p>The <strong>orchestrate CLI and YAML-based workflow</strong> described in this article give you full control over your agentic environment. But authoring YAML by hand, especially for complex agents with detailed instructions, can be slow.</p><p><strong>IBM Bob</strong>, available as a standalone AI coding assistant and as an extension for <strong>Visual Studio Code</strong>, has a dedicated watsonx Orchestrate ADK skill built in. Bob understands the full ADK schema — agents, tools, flows, connections, knowledge bases — and can generate, review, import, and test artifacts through natural language instructions. You can ask Bob to create an agent YAML for a specific use case, generate a Python tool with the correct <a href="http://twitter.com/tool">@tool</a> decorator and docstring format, write an import-all.sh for a new project, or even chat directly with a deployed agent to verify its behavior, all without leaving your editor.</p><blockquote>The combination of Bob’s ADK extension and the file-and-folder structure described in this article is a very productive setup for serious wxO development.</blockquote><p>To explore working examples of the patterns described here, the official IBM watsonx Orchestrate ADK examples repository is the best starting point:</p><p><a href="https://github.com/IBM/ibm-watsonx-orchestrate-adk/tree/main/examples">https://github.com/IBM/ibm-watsonx-orchestrate-adk/tree/main/examples</a></p><p>It includes complete projects for personal banking, customer care, healthcare, voice-enabled agents, and more — each with its own agents, tools, connections, and import-all.sh ready to study and adapt.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=078d6a4f0d37" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>