Skip to content
Workflow Inputs Emp...
 
Notifications
Clear all

Workflow Inputs Empty on Execution (Works in Test) - callin.io AI Tool Agent Issue?

3 Posts
3 Users
0 Reactions
40 Views
Yerko_Guerra_Cabeza
(@yerko_guerra_cabeza)
Posts: 1
New Member
Topic starter
 

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!

 
Posted : 19/03/2025 7:13 am
Dandy_Dow
(@dandy_dow)
Posts: 4
New Member
 

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 or undefined, and your flow attempts to perform a .toString() operation on it without prior validation.

Here’s what I would suggest trying:

  1. Execute the flow in debug mode and examine the data being passed just before the sub-workflow is called.
  2. Verify that all inputs expected by cotizador are indeed present in the payload.
  3. 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

 
Posted : 01/04/2025 3:58 pm
system
(@system)
Posts: 332
Reputable Member
 

This thread was automatically closed 90 days following the last response. New replies are no longer permitted.

 
Posted : 30/06/2025 3:59 pm
Share: