CodeFusion

CodeFusion empowers teams to deliver hyper-personalized, data-driven experiences in Algonomy Active Content. It provides a robust scripting layer to orchestrate data from multiple sources—such as APIs and internal data models—enabling dynamic content creation for marketing, retail, and omnichannel personalization use cases.

CodeFusion scripts allow you to:

  • Filter data: Extract only what you need from APIs or data models, using input arguments for flexible targeting.

  • Transform data: Reformat and reshape incoming data for easier downstream processing. For example, add missing image URLs, or split pipe-separated values into arrays for looped rendering in content.

  • Orchestrate calls: Cascade or chain multiple APIs, passing results from one as input to another, or join API and DME (Data Model Extension) data for powerful business logic.

  • Backfill and substitute: Implement waterfall strategies where you attempt primary sources first (like a live API), and gracefully fall back to backup sources (like DME) to ensure robust, always-on experiences.

Common use cases include:

  • Personalizing offers based on customer history (Real-time CDP integration)

  • Filtering promotions based on inventory or user segment

  • Dynamic product recommendations with fallback logic

  • Customizing content blocks for specific placements or customer groups

Topics covered in this section: