With AI agents, my API parameter doesn't store information

Issue symptoms

With AI agents, my API parameter doesn't store information. The variable isn't stored, and it removes the variable. I use this procedure: Get Product Details [Dev]. The key 'product_detail' isn't saved, or it's overwritten with the product URL.

When running an API integration and setting a 'Key' or 'Parameter' via JSONata, is that stored automatically when using a procedure, or do I need to add it explicitly within the procedure to Collect parameter? Each time I try to collect the specific parameter to ensure it's stored, it creates an action to map to a new parameter. It doesn't set the parameter, even if the API runs successfully.

Resolution steps

No, a parameter isn't always stored automatically just because the API call succeeds. Request parameters send data to the API, but aren't stored for later steps.

To collect a parameter from an entity:

Use Entity Recognized with your Customer Message blocks

To use Entity Recognized as an input to an API call or within a conditional block further down the dialog, use Collect parameter and save that parameter under its name

For more information, see:

Managing generative procedures for AI agents

Creating dialogues to define scripted conversation flows for AI agents