To handle Agentforce integrations securely, follow these guidelines:
1. **Third-Party Services**: Ensure third-party integrations meet AppExchange security standards. Avoid using third-party LLM services like OpenAI or Google; instead, use Agentforce solutions.
2. **User Confirmation**: For custom actions that modify org data or invoke sensitive actions, enable user confirmation to validate the action before execution.
3. **Sensitive Data Storage**: Store sensitive data securely using approved methods like protected custom settings or metadata. Avoid hardcoding sensitive or secret data.
4. **Prompt-Injection Mitigation**: Implement strategies to mitigate vulnerabilities from untrusted input in prompts. Use multiple mitigation techniques when constructing prompts with user-controlled input.
5. **Output Validation**: Treat all content generated by prompt templates or the Agentforce Models API as untrusted. Validate and sanitize outputs, especially if they are used as inputs for other processes or visible to customers.
6. **Documentation**: Classify custom actions in your managed package documentation, specifying the agent type (employee-facing or service agent) and whether the action returns public or private data.
By adhering to these practices, you can ensure secure and compliant integrations with Agentforce.