In trialhead badge-Build an Agent Using Agentforce DX and 2nd part of the badge- Author Your Agent Using Agent Script, there is an error coming on when i'm giving my default_agent_user.
Error in vs code says:
✘ Deploying Metadata 3.77s
▸ Components: 1/3 (33%)
◼ Running Tests
◼ Updating Source Tracking
◼ Done
Status: Failed
Elapsed Time: 4.95s
Component Failures [2]
│ Type │ Name │ Problem │ Line:Column │
│ AiAuthoringBundle │ Local_Info_Agent_1.agent │ We couldn't find │ │
│ │ │ the flow, │ │
│ │ │ prompt, or apex │ │
│ │ │ class: flow://Ge │ │
│ │ │ t_Resort_Hours. │ │
│ │ │ Verify the name │ │
│ │ │ and ensure it │ │
│ │ │ exists. │ │
│ AiAuthoringBundle │ Local_Info_Agent_1.agent │ We couldn't find │ │
│ │ │ the flow, │ │
│ │ │ prompt, or apex │ │
│ │ │ class: prompt:// │ │
│ │ │ Get_Event_Info. │ │
│ │ │ Verify the name │ │
│ │ │ and ensure it │ │
│ │ │ exists. │ │
I've tried this by requesting 2 orgs. Same result both times. I'm doing every step right then im not sure if its the issue with the org that we need to create these flow?
Also this error is coming, when I'm doing the live test on the agent on vs code:
Validation failed for action(s) 'check_events' due to invalid attribute value for 'target'. Invocable action 'Get_Event_Info' does not exist. To fix, please ensure the 'target' value points to a valid invocable action.
PS I didn't touch the code at all after git clone other than what was mentioned.
#Trailhead Challenges
You’ve got two options:
Option 1 (quickest for the badge):
- Go into the agent definition
- Temporarily remove or comment out:
- Get_Resort_Hours
- Get_Event_Info
- Deploy again
This lets you move forward without being blocked.
Option 2 (correct/full setup):
Create the missing pieces:
- A Flow named exactly: Get_Resort_Hours (must be invocable)
- A Prompt Template or action named: Get_Event_Info
Names have to match exactly (case-sensitive), or you’ll keep getting that same error.
That second error (live test)
Same root issue — the agent is trying to call something that isn’t there.
Once you either:
- create it, or
- remove the reference
that error goes away.