After an action calls a custom extension; how does a developer map an API response field to a session variable?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Todd Lammle: 'Imagine you're building a chatbot and this exact situation comes up — using the variable mapping in the action step's extension output section is your go-to move. The extension output mapping interface within the action step allows developers to map specific response JSON fields to session or action variables directly. This is a classic Domain 6: Build Back-End Integrations concept you'll want locked in before exam day.'
Full explanation below image
Full Explanation
The extension output mapping interface within the action step allows developers to map specific response JSON fields to session or action variables directly. Web chat scripts; dialog node conditions; and spell correction are not used for API response field mapping. The correct answer, "Using the variable mapping in the action step's extension output section", directly satisfies the scenario because it aligns with watsonx Assistant's design principles and the specific capability being tested. The incorrect options ("Using a script tag in the web chat widget", "Creating a dialog node condition that parses the response", "Using spell correction to extract values from the response") may appear relevant but each misses a key requirement or introduces a step that is either unnecessary or belongs to a different workflow. Mastering the distinction between these approaches is essential for effective watsonx Assistant implementations and is a core focus of the Domain 6: Build Back-End Integrations section of the certification exam.