Hi there! I'm encountering an issue with callin.io workflow inputs.
- In edit mode and during manual tests, everything functions as expected. Inputs are populated correctly, and I receive the desired output.
- However, during live execution, the workflow inputs are appearing empty, which leads to this error:
Cannot read properties of undefined (reading 'toString')
Here's how my setup is configured:
- An AI Tool Agent generates an output string, for example:
cotizacion: cambio de aceite, nombre: Yerko, telefono: +56 982750122...
- Subsequently, the gestor_cotizaciones workflow invokes a sub-workflow, but the inputs are not being mapped as anticipated during the live execution.
Has anyone else experienced a similar problem? If so, how did you resolve it?
Thanks in advance for any help!
Hey there,
Since I don't have your complete setup available, I'll make an informed guess based on the error and the screenshots you've provided.
From what I can observe, the problem occurs when your main workflow invokes the cotizador
sub-workflow. It functions correctly in manual test mode, but during live execution, the inputs appear empty, which is why you're encountering the Cannot read properties of undefined (reading 'toString')
error.
This typically happens when the sub-workflow anticipates a value (such as patente_lead
) but doesn't receive it correctly at runtime.
Potential causes include:
- The AI Agent is transmitting the data in a format that
cotizador
doesn't expect (perhaps as a raw string instead of an object). - The sub-workflow call isn't mapping the inputs correctly; it might be expecting direct values but receiving nested ones.
- Or, one of the fields is being passed as
null
orundefined
, and your flow attempts to perform a.toString()
operation on it without prior validation.
Here’s what I would suggest trying:
- Execute the flow in debug mode and examine the data being passed just before the sub-workflow is called.
- Verify that all inputs expected by
cotizador
are indeed present in the payload. - If necessary, utilize a Set or Function node to restructure the data before sending it to the sub-workflow.
If you could share the actual JSON originating from the AI Agent or demonstrate your sub-workflow node's configuration, I can assist further in refining it.
Hope this helps!
– Dandy
This thread was automatically closed 90 days following the last response. New replies are no longer permitted.