Agent Desktop Script Block Failing on Zendesk Article Link Injection

Struggling to understand why the Agent Desktop scripting module throws a silent failure when attempting to inject dynamic Zendesk help center article URLs into the Genesys Cloud agent script blocks. The migration strategy involves replacing static Zendesk ticket comments with dynamic script prompts that pull article slugs via the GET /v2/help-center/articles endpoint, but the Genesys Cloud Agent Scripting API (POST /v2/scripting/scripts) returns a 400 Bad Request with the message Invalid script content structure. The environment is a standard European Data Center instance running Genesys Cloud version 2024.1, and the Architect flow is correctly passing the article ID as a custom interaction attribute zd_article_id. The issue seems to stem from the script template engine not recognizing the variable syntax {{zd_article_id}} when combined with the Zendesk-specific URL construction logic. In Zendesk, this was handled via macro templates, but Genesys Cloud requires a different approach using the Scripting API’s block definitions. The error log shows Error code: SCRIPT_INVALID_BLOCK_TYPE at the step where the script block attempts to render the hyperlink. We are using the Genesys Cloud REST API v2 SDK for Python version 1.2.0 to push these script updates, and the payload structure matches the documentation exactly, except for the dynamic variable injection part. Is there a known limitation with injecting external URLs into script blocks via the API, or is this a formatting issue with the JSON payload? The Zendesk workflow allowed direct HTML injection, but Genesys Cloud appears to sanitize or reject certain HTML structures within script blocks. Any insights on how to properly map Zendesk article links to Genesys Cloud script variables without triggering this validation error would be greatly appreciated. The current workaround involves hardcoding URLs, which defeats the purpose of the dynamic migration.