Skip to main content

#Agentforce555 utenti parlano di questo argomento

Agentforce is an umbrella term of the set of tools to create and customize agents as well as the collection of agents Salesforce provides across the Customer 360. Agents can either be autonomous or assistive.

Hi community,

We are encountering a page-blocking "412 Precondition Failed" error when attempting to use or preview any Committed version of our DSL-enabled Agentforce Service Agent (agentDSLEnabled set to true).

Symptoms:

  1. Draft editor works fine: We can make changes to the agent Draft in the Agentforce Builder without issues.
  2. Committed versions fail: As soon as we select any Committed version (e.g., Version 1 Committed) in the Builder, the Preview chat panel fails to connect and displays: "Something went wrong. Refresh and try again."
  3. Console/API Error: Inspecting the browser console shows that the background session call returns:
    • Endpoint: /services/data/v61.0/einstein/ai-agent/v1/agents/{agentId}/sessions (also fails with the same error on the external sessions API via Postman).
    • Response Code: 412 Precondition Failed
    • Error Message: {"message":"Unable to load agent config: Invalid Config"}

Has anyone else run into this issue where the compiler or orchestrator fails to load/resolve the config only for Committed versions? Is this related to Data Cloud retriever target URIs or sandbox metadata sync issues?

Any advice or workarounds would be highly appreciated. Thanks! 

 

 

412 Precondition Failed (Invalid Config) only on Committed Agentforce versions

 

image.png

 

 

 

 

#Agentforce

2 risposte
  1. Oggi, alle 01:10

    I tried again yesterday, August 10. The error message was a lot more clear. 

    I had missing inputs and outputs in my Retrievers. 

    I supplied those missing fields, and the agent works now when Committed (and Activated) on both Agent API and Salesforce UI.

0/9000

Hi everyone, 

 

I'm looking for some guidance on preventing duplicate Account records. 

 

 I found two Account records with different names but the same VAT number. This should not be allowed for records with the same record type.  

Having the same VAT number across different record types is acceptable.  

 

In addition to the VAT number, duplicate values should also not be allowed for any of the fields listed below. 

 

Prevent Duplicate Account Records for the Same Record TypeI tried to solve this using a Duplicate Rule and Matching Rule, but it did not help. I was able to create the Duplicate Rule, but when configuring the Matching Rule, I could not find the Record Type

field in the matching criteria conditions. 

 

#Trailhead Challenges #Salesforce Developer #Salesforce Admin #Agentforce #Trailhead #Flow #TrailblazerCommunity

6 risposte
  1. 10 ago, 19:41

    In my knowledge this can be done with apex action. You can get apex written from get or any other AI tool. The logic will be simple the apex need to break the text part from the number and return to flow so you can compare number only. Otherwise you may check if there is any formula that can eliminate first 3 characters from the VAT and then it'll be possible without apex.  

0/9000

I am working on the Trailhead project:

 

Build Your First Sales Coach

Configure and Activate Your Sales Coaching Agent

 

The challenge validation fails with the following error:

 

[Sales Coach Agent] does not contain

[Agentforce Sales Coach: Opportunity Coaching].

 

Current configuration:

 

- Sales Coach Agent is Active

- Developer Name: Sales_Coach_Agent

- Locale: English (United States)

- Language: English

- Topic Selector subagent exists

- OpportunityCoaching subagent exists

- NegotiationRolePlay subagent exists

- ProposalRolePlay subagent exists

 

OpportunityCoaching contains all four standard feedback actions:

 

- Give Feedback on Qualification Stage

- Give Feedback on Needs Analysis Stage

- Give Feedback on Negotiation/Review Stage

- Give Feedback on Proposal Stage

 

The current Agentforce Builder uses Subagents instead of Topics.

 

The validator still reports:

 

"[Sales Coach Agent] does not contain [Agentforce Sales Coach: Opportunity Coaching] topic."

 

Has anyone encountered this recently? Is this a known validator issue or is there an additional configuration required in the current Agentforce Builder UI?

 

Thank you. 

 

#Trailhead Challenges  #Trailhead  #Agentforce  #Agentblazer

9 risposte
  1. 7 ago, 19:00

    Yes, several people have run into this with the updated Agentforce Builder UI. The Trailhead validator still expects the legacy "Agentforce Sales Coach: Opportunity Coaching" topic, while the current UI exposes it as a Subagent. As long as the OpportunityCoaching subagent is present, active, and contains the required standard actions, your configuration is likely correct. 

    If everything matches the project instructions, try: 

    •  Saving and reactivating the Sales Coach Agent. 
    •  Logging out and back in, then running the validation again. 
    •  Waiting a few minutes for metadata to propagate before retrying. 

     

    If it still fails, it's most likely a validator issue, and the best option is to report it through the Trailhead Help site with screenshots of your agent configuration. 

     

0/9000

As I'm developing an agent that performs record DML and queries of records the current(human) user has access, but will be returned when trying from the agent interface? Whose access is applied in this scenario? 

 

#Agentforce

3 risposte
  1. 7 ago, 04:42

    Hi @VETHAPRASATH M

     

    The short answer: it depends on whether the channel your agent is deployed on requires an authenticated Salesforce session — not on the agent type itself, though the type strongly correlates with it in practice. 

    1. Authenticated channels (Lightning Experience/Mobile, internal Slack, an internal portal where the user is logged in) — the agent runs in the context of the logged-in human user. Your normal Salesforce access controls apply exactly as they would if the user clicked around manually: profile/permission set object & field-level security, sharing rules, role hierarchy, OWD. Whatever that user can query or DML, the agent can — nothing more, nothing less. If you're testing from the Agentforce panel inside Lightning while logged in as yourself, your own access is what's being applied. 

    2. Unauthenticated channels (public Messaging, embedded chat widgets, email) — there's no human session to inherit from, so Salesforce falls back to a dedicated Agent User: a special integration-type Salesforce user (License: Einstein Agent, Profile: Einstein Agent User) that you configure explicitly in Agent Creator. Here, the agent user's

    permission sets, field-level security, and sharing access govern everything — completely independent of what the anonymous customer typing into the chat could see.  

     

    Hope this helps.

0/9000
2 risposte
  1. 7 ago, 04:38

    @Vishal Soni

     

    Thank you for responding!

    The issue is that our Agentforce agent is not invoking the flows correctly.

    We created autolaunched flows and exposed them as Agent Actions, but when we ask the agent a relevant question, it either:

    •  doesn't invoke the expected flow/action, 
    •  gives a generic AI response instead of using the flow, 
    •  or fails to retrieve the required data from our custom objects. 

    We have already configured custom objects (Customer, Transaction, Risk Assessment, Fraud Alert) and linked the flows to the agent, but the agent isn't behaving as expected.

    I'm attaching screenshots of:

    1.  The Agent Builder 
    2.  Agent Actions 
    3.  The Flow configuration 
    4.  The response we're getting 

    I'd really appreciate it if you could point out what we're missing.

0/9000

Hi all — I'm trying to start a session with the Agent API and consistently get an HTTP 404 with an empty body. Authentication works, the agent is active, and every documented 404 cause seems ruled out. Looking for help on whether the Agent API is provisioned on my org, or what I'm missing. 

 

What I'm calling 

POST

https://api.salesforce.com/einstein/ai-agent/v1/agents/0Xxg5000000wKO9CAM/sessions

 

Authorization: Bearer <token>   (via Named Credential) 

Content-Type: application/json 

 

  "externalSessionKey": "pf-test-<uuid>", 

  "instanceConfig": { "endpoint": "

https://<mydomain>.my.salesforce.com

" }, 

  "streamingCapabilities": { "chunkTypes": ["Text"] }, 

  "bypassUser": true 

 

Response 

HTTP 404 

Headers: date, content-length, connection 

Body: (empty) 

Note: it's a bare 404 from the

api.salesforce.com

gateway — n token gives 401, and a wrong agent id (with the API reachable) gives a JSON error such as EngineConfigLookupException. Here the body is completely empty, which suggests the path itself isn't served for my org. 

 

What I've verified (all OK) 

- Agent is Activated, type ExternalCopilot (custom agent, not "Agentforce (Default)"). Agent Id 0Xxg5000000wKO9CAM taken from the Agent Builder / BotDefinition. 

- OAuth: External Client App with Client Credentials flow, sc. Run-As user = System Administrator (full Agentforcepermissions). Token is issued successfully (auth is not the problem — no 401). 

- External Credential (OAuth 2.0, Client Credentials with Client Secret) + Named Credential → URL

https://api.salesforce.com

, Generate Authorization Header enabled. 

- My Domain passed in instanceConfig.endpoint is the correct *.

my.salesforce.com

host (confirmed via URL.getOrgDomainUrl()). 

- Agent reactivated and waited for propagation — no change. 

- Added Agentforce permission sets to the running user — no change. 

 

Things I could NOT find in Setup 

- No "Agent API" / "Einstein Agent API" enablement toggle any 

- In Agent Builder → Connections, the only options are Enhanced Chat v2 and Messaging (both "Needs Setup"); Messaging for In-App and Web is not available (no Digital Engagement license on this org). There is no "API" connection option, and Add Connections shows an empty asset list. 

 

Environment 

- Agentforce Developer Edition org (orgfarm dev-ed). 

- Calling the Agent API from Apex (server-side callout via Na 

 

Questions 

1. Is the Agent API (/einstein/ai-agent/v1) provisioned/enablition orgs? If not, how do I enable it? 

2. Does the Agent API require an explicit connection/channel on the agent (beyond Activation)? If so, which one — given "Messaging for In-App and Web" isn't licensed here? 

3. Is a bare empty-body 404 from

api.salesforce.com

a known sned for this org" vs. a config issue? 

 

Thanks in advance — happy to share more logs/config. 

 

#Agentforce

0/9000
1 risposta
0/9000
2 risposte
  1. 10 ago, 14:55

    My company does not use Agentforce (too expensive), but we do use Claude, Codex, CoPilot and Cursor, and we have to worry about HIPPA laws because it is Insurance. 

     

    Most all the developers (Salesforce and C#) use Claude Code primarily. Started with Cursor, but I now prefer Claude. Our only instruction is not to put private customer data into it, which is never a problem since I do not even have access to production data (just sandboxes). 

0/9000

 

hi all im facing this issue from last 3 days i raised salesforce case as well bt no help from them this error im getting i connected with salsforce and slak all setting is correct

 

 

 

hi all im facing this issue from last 3 days i raised salesforce case as well bt no help from them this error im getting i connected with salsforce and slak all setting is correct  

 

 

 

 

#Trailhead Challenges  #Agentforce  #Agentblazer_Legend

0/9000

I've tried many times to create a developper sanbox from this link : Developer Edition org with the product specialist agent

in the challenge : Prepare Your Agentforce and Slack Orgs.  

I did not receive any Verify email as it supposed to be. I have no error, no logs. Nothing to analyse.  

Only this picture :  

 

Prepare Your Agentforce and Slack Orgs - impossible to create a Developer Edition org with the product specialist agent.

 

 

Do you have any idea of the issue please ? I am not able to complete this challenge. Thanks for your help !  

 

#Trailhead Challenges  #Agentblazer_Legend  #Agentforce  #Slack Community

1 risposta
0/9000