Skip to main content

#Agentforce315 discussing

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 Trailblazers, 

 

Salesforce has introduced Headless Experience Layer (HXL), an interesting addition for building interactive Agentforce experiences.

Instead of showing only text responses, Agentforce can now display interactive cards, tables, and other UI components. 

 

Key Advantages:

  1. Build Once, Use Anywhere: Create one widget and reuse it across supported platforms like Agentforce, ChatGPT, Claude, and Slack.
  2. Interactive Responses: Display customer details, records, and other information in a user-friendly format.
  3. Less Development Work: No need to rebuild the same UI for every supported platform.
  4. Custom Lightning Types: Connect Agentforce action outputs to interactive widgets.
  5. Agent Script Integration: Configure action outputs to display widgets in Agentforce.
  6. Security: Use Salesforce permissions and sharing rules to control data access.

Example:

Instead of Agentforce displaying customer details as plain text, we can show the information in a structured card. 

 

My View:

HXL could be very useful for developers building Agentforce solutions across multiple platforms. It's currently in beta, so testing and platform compatibility are important. 

 

Question:

Do you think HXL will reduce the need for building separate custom UI components for AI-powered Salesforce applications? 

 

Useful Resources:

#Agentforce #Salesforce Developer #TrailblazerCommunity #Trailhead Challenges #Salesforce

0/9000

I have created a REST resource to expose it as an MCP tool, but when am clicking the 'SFDX: Create OpenAI Documentation' in VS Code, the externalServiceRegistrations folder is created, but under that YAML file is not created, and throwing the error below. 

 

OpenAPI document generation produced no content. Last failure: LLM call failed: TypeError: Vu.getChannelService(...).showCommandWithTimestamp is not a function 

 

I have done all the basic setup, but still am feeling like some settings I missed. Please let me know if you have any ideas to solve this issue. 

 

Just FYI, 

 

In the project.json file, I added the option below 

"sourceBehaviorOptions": ["decomposeExternalServiceRegistrationBeta"] 

 

in setting.json file, I added the option below 

"salesforcedx-vscode-apex-oas.enableRestOASGen": true, 

 

Also, I downgraded the Agentforce Vibe extension(I didn't explicitly install it, may be came in through the Salesforce Extension package) to 3.40 cause with the latest 4.x version, it was throwing an error during openAI document creation. 

 

#Salesforce Developer  #Agentforce  #Mcp

2 answers
  1. Today, 8:48 AM

    Hi @Souvik Dutta Looking at the error, it seems to be a VS Code extension compatibility issue rather than a Salesforce configuration issue.

    I would suggest trying these steps:

    1. Check Extensions: Verify that Agentforce Vibes and Salesforce extensions are compatible.
    2. Update CLI: Run sf update and restart VS Code.
    3. Check Apex REST: Make sure the REST class and HTTP methods are properly defined.
    4. Extension Logs: Check VS Code → Output for detailed errors.
    5. Test New Project: Try generating the OpenAPI document with a simple Apex REST class.
    6. Reinstall Extensions: If needed, reinstall compatible Salesforce extension versions.

    The error showCommandWithTimestamp is not a function looks like an internal extension issue, so I would focus on extension versions first.

    If it still fails, I suggest reporting it on GitHub with the error logs and extension versions.

0/9000

Hi Trailblazers, 

 

With Agentforce and AI becoming more powerful, I'm curious about the future of LWC development. 

 

AI can now help us generate code and build components faster. But do you think strong LWC skills will still be important for Salesforce developers over the next 5 years? 

 

From your project experience, where do you see LWC adding the most value that AI cannot easily replace? 

 

Would love to hear your thoughts. 

 

#Agentforce #Salesforce Developer

1 answer
  1. Today, 8:46 AM

    Hi @Galla Rajeswari Yes, I believe LWC will remain important even in the AI era.

    A few reasons:

    1. Custom UI: Companies still need custom components based on business requirements.
    2. User Experience: LWC helps build interactive and user-friendly screens.
    3. Agentforce: LWC can be used to build custom interfaces for AI-powered solutions.
    4. Complex Requirements: Not everything can be achieved using standard Salesforce features.
    5. AI-Generated Code: AI can write code, but developers still need to review, debug, and optimize it.
    6. Security & Performance: Developers must ensure components are secure and work efficiently.

    In my view, AI will reduce repetitive coding, but it won't replace strong development skills.

    LWC + Apex + Agentforce + AI skills will be a valuable combination for Salesforce developers in the coming years.

0/9000

Hi Trailblazers, 

 

Creating and testing an Agentforce agent in a sandbox is one thing, but moving it to production can be challenging. 

 

For those who have deployed agents to production, what issues have you faced with subagents, actions, permissions, or dependencies? 

 

What are the key things you always verify before deployment? 

 

Looking forward to learning from your real project experiences. 

 

#Agentforce #Salesforce Developer #Salesforce

1 answer
  1. Today, 8:45 AM

    Hi @Galla Rajeswari Deploying Agentforce to production can be tricky, especially when multiple subagents and actions are involved.

    I would check these key points:

    1. Dependencies: Make sure all Flows, Apex classes, and Prompt Templates are deployed.
    2. Subagents & Actions: Verify all subagents and actions are properly configured.
    3. Permissions: Check the agent running user's access, object permissions, and field access.
    4. Agent Version: Confirm the correct version is active.
    5. External Connections: Verify APIs, Named Credentials, and authentication.
    6. Data Differences: Production data may affect agent responses differently.
    7. Testing: Check subagent routing, action execution, and response accuracy.
    8. Deployment Errors: Watch for missing components and activation issues.

    I would recommend testing with a small group of users before making the agent available to everyone.

    Key Point: A successful deployment doesn't mean the agent is ready. Proper testing and monitoring are equally important.

0/9000

Hi Trailblazers, 

 

An Agentforce agent may work perfectly in a sandbox, but production has different users, permissions, and data. 

 

How do you validate agent responses, action execution, and data access after deployment? 

 

Do you follow any specific testing checklist or monitoring process to catch issues before users report them? 

 

Would love to know what works best in your projects. 

 

#Agentforce #Salesforce Developer

1 answer
  1. Today, 8:43 AM

    Hi @Galla Rajeswari An agent working fine in a sandbox doesn't mean it will work the same way in production.

    I would focus on these key points:

    1. Agent Activation: Make sure the correct agent version is active.
    2. Permissions: Check running user access, field permissions, and sharing rules.
    3. Subagent Routing: Verify the agent selects the right subagent.
    4. Actions: Test Apex, Flow, and API actions with real scenarios.
    5. Response Accuracy: Compare agent responses with actual Salesforce data.
    6. Negative Testing: Test invalid inputs, missing data, and unexpected questions.
    7. Security: Make sure the agent doesn't expose sensitive data.
    8. Monitoring: Review session traces, errors, timeouts, and failed actions.

    I would also recommend starting with a small group of users and collecting feedback before a full rollout.

    Key Point: Deployment is not the final step. Regular testing and monitoring are important to keep the agent reliable.

0/9000

Hi Trailblazers, 

 

Agentforce has many powerful features, but every technology comes with some limitations. 

 

For those working on real projects, what challenges have you faced with agent response time, action timeouts, subagent selection, or response accuracy? 

 

Are there any limitations that we should seriously consider before implementing Agentforce for enterprise customers? 

 

Would love to hear your practical experiences. 

 

#Agentforce #SalesforceAI #SalesforceArchitect

1 answer
  1. Today, 8:42 AM

    Hi @Galla Rajeswari Agentforce is powerful, but there are some challenges we need to consider in real projects.

    1. Response Time: Complex requests can take longer to process.
    2. Action Timeouts: Apex, Flow, or API actions may fail if they exceed time limits.
    3. Subagent Selection: Sometimes the agent may choose the wrong subagent.
    4. Response Accuracy: Even with correct data, the agent may give incorrect or incomplete answers.
    5. Data Access: Permissions and sharing settings can affect agent responses.
    6. Testing: Testing different user questions and scenarios is not always easy.
    7. Cost: Usage costs can increase with frequent agent interactions.

    In my view, clear instructions, proper testing, and monitoring are very important before production deployment.

    Agentforce is useful, but we should not depend on AI alone for critical business decisions.

0/9000

Hi Trailblazers, 

 

With the New Agentforce Builder, we can use Canvas and Agent Script to build agents. 

 

Agent Script gives us more control over business rules, conditions, action execution, and subagent transitions. 

 

In your experience, what are the biggest advantages of using Agent Script instead of relying only on natural language instructions? 

 

Do you think Agent Script will become an important skill for Salesforce developers? 

 

Looking forward to your thoughts. 

 

#Agentforce  #Salesforce_developer

1 answer
  1. Today, 8:40 AM

    Hi @Galla Rajeswari I feel Agent Script is a useful addition to the New Agentforce Builder, especially for complex business requirements.

    A few key advantages:

    1. Better Control: Define clear business rules and conditions.
    2. Consistent Results: Helps agents follow the expected steps.
    3. Action Execution: Control when actions should run.
    4. Subagent Routing: Manage how agents move between subagents.
    5. Less AI Guesswork: Reduces unexpected agent behaviour.
    6. Easy Debugging: Makes it easier to understand and fix logic issues.

    I believe Agent Script will become an important skill for Salesforce developers, along with Apex, Flow, and LWC.

    My View: Canvas is good for visual design, while Agent Script gives developers more control over agent behaviour.

0/9000

Hi Trailblazers, 

 

Salesforce Data 360 helps businesses bring customer data from different sources into one place. 

 

But I'm interested in understanding its real value beyond data integration. 

 

From your project experience, which features provide the most business value: Identity Resolution, Data Graphs, Segmentation, or real-time data activation? 

 

How important is Data 360 for making Agentforce agents more accurate and useful? 

 

Would love to learn from your implementation experiences. 

 

#Data Cloud #Agentforce  #Data360

1 answer
  1. Today, 8:39 AM

    Hi @Galla Rajeswari Good question! Data 360 is not just about combining data. It helps businesses use customer data more effectively.

    1. Identity Resolution: Combines customer records to create a unified customer profile.
    2. Data Graphs: Connect related data and help Agentforce access customer information faster.
    3. Segmentation: Helps businesses identify and target the right customers.
    4. Real-Time Activation: Helps businesses take action using updated customer data.
    5. Agentforce: Provides better customer context, helping agents give more relevant and accurate responses.

    In my view, Identity Resolution and Data Graphs are especially useful for Agentforce.

    Key Point: Data 360 provides the right customer context, while Agentforce uses that data to answer questions and perform actions.

0/9000

Hi All - I am on my way to be an Agentforce Legend, I have connect my org to slack and got approval from my salesforce org and even actuvated from slack appliaction as a new user what all are the steps that i am missing here. 

 

1. Approval from slack done 

2. Approval from Salesforce org done. 

3. Install Packages used for slack. 

4. Used necessary slack subagents and actions done. 

 

Only the difference is the username used in Slack creation org is 

Jone.done@gmail.com, where as while dealing with "Configure a Slack Agent in Salesforce" I am using email as Jone.slack@gmail.com

 

 Following to the above i think agentforce should be approved in slack and activated which we are missing per Google AI

 

#Trailhead Challenges #Agentforce #Slack Developers

 

#Salesforce Admin

1 comment
  1. Today, 6:32 AM

    Hi @Vivek Dayafule Looks like you've completed most of the setup. I suggest checking a few things:

    1. Email Difference: Different Slack and Salesforce emails are usually fine, but verify the user mapping and authorization.
    2. Agent Activation: Make sure your Agentforce agent is active and connected to Slack.
    3. Slack Approval: Check whether the agent is approved and available in your Slack workspace.
    4. Permissions: Verify that the user has the required Agentforce and Slack permissions.
    5. Trailhead Org: Confirm you're using the same Salesforce org for the challenge.

    If everything looks correct, try reconnecting the agent.

    Could you share the exact error message or where you're getting stuck? That will help identify the issue.

0/9000

With the Headless Experience Layer (HXL), you build one interactive widget in declarative JSON, and it renders natively in Agentforce, Claude, ChatGPT, and Slack. No rebuilding the same screen for every surface. 

 

Ready to try it? Start here:

 

 

#Salesforce Developer  #Salesforce Admin  #Agentforce  #Salesforce  #TrailblazerCommunity

1 comment
  1. Oct 14, 2:07 PM

    Great update, @Akshata Sawant Thanks for sharing.

    HXL looks like a useful step forward for building interactive AI experiences.

    The biggest advantage is building one reusable UI widget instead of creating separate versions for different platforms.

    Really interesting to see how the same JSON-based widget can work across Agentforce, ChatGPT, Claude, and Slack.

    Looking forward to exploring the Playground and trying some real-world use cases!

0/9000