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

2 réponses
  1. 26 oct., 03:26

    Hi @SHUBHAM KUMAR SINGH

     

     

    +1 to Danish.  

    One more thing: those errors read like Agent Script validation messages, so it’s worth switching the new Builder to Script view and looking at the action definitions directly. If the inputs and outputs blocks are empty there, the action didn’t pull the flow schema. You can either recreate the action or add the inputs and outputs with their types in the script (string for email, memberNumber and experienceName, object for the record outputs). Then save and activate the new version before checking the challenge. 

0/9000