Skip to main content

Hi everyone,

I'm completing the Trailhead module "Build with Agentforce Builder" and I'm stuck while creating the custom actions for the Experience Management subagent.

I created the flows provided in the playground:

  • Get Experience Details
  • Get Customer Details

Both flows are Active and have the expected variables configured.

Get Experience Details

  • experienceName – Text, Available for Input 
  • experienceRecord – Record (Experience__c), Available for Output 

Get Customer Details

  • email – Text, Available for Input 
  • memberNumber – Text, Available for Input 
  • contact – Record (Contact), Available for Output 

However, when I configure the custom actions in Agentforce Builder and enable Require Input to execute action or Show in conversation, I receive the following validation errors:

'email' is not a defined input of action 'Get_Customer_Details'

'memberNumber' is not a defined input of action 'Get_Customer_Details'

Action input 'experienceName' in 'Get_Experience_Details' has primitive type 'string' and does not require 'complex_data_type_name'. Only 'object' and 'list[object]' types require 'complex_data_type_name'.

Missing type for inputs 'email'. Expected a type after: (string, number, boolean, object, currency, ...)

Empty 'inputs' block — must contain at least one entry

Missing type for outputs 'contact'. Expected a type after: (string, number, boolean, object, currency, ...)

Empty 'outputs' block — must contain at least one entry

I've already tried:

  •  Verifying all Flow variables and their Input/Output settings. 
  •  Confirming both Flows are Active. 
  •  Removing and recreating the custom actions. 
  •  Refreshing Agentforce Builder. 

The Flow definitions appear to be correct, but Agentforce Builder continues to show these validation errors.

Has anyone experienced this in the Agentforce Builder Playground? Is this a known issue with the current Trailhead playground, or is there an additional configuration step I'm missing?

Any help would be greatly appreciated. Thanks! 

 

#Trailhead Challenges

1 answer
  1. Oct 25, 10:13 PM

    Hi Shubham, those errors mean the action's input/output schema is empty, so Agentforce Builder isn't seeing your flow variables. That usually happens when the action was created before the flow version with those variables was saved and activated, and the action keeps the old schema. Try this: 

    1) In Flow Builder, open each flow and confirm the active version has the variables marked Available for Input/Output, with API names exactly email, memberNumber, experienceName, contact, experienceRecord. 

    2) In Agentforce Builder, delete the two custom actions, refresh the page, and create them again from the flows. The inputs and outputs should now fill in automatically. 

    3) Only after they appear, set Require Input and Show in conversation. Don't add a complex data type to the text inputs; that's only for record/object types. 

    4) Save, then commit or activate the agent version before checking the challenge. 

    Hope this helps!

0/9000