Agente de Salesforce
Este flujo de trabajo aprovecha la IA para optimizar las conversaciones empresariales mediante la integración de una función de consulta a la base de datos de Salesforce. Su función principal es proporcionar respuestas conversacionales a las entradas del
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
OpenAIModel-1kevp[<div><img src="/_astro/openAI.BhmuxEs3.svg" style="height: 20px !important;width: 20px !important"/></div>OpenAI]
style OpenAIModel-1kevp stroke:#a170ff
ChatOutput-e303u[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Output]
style ChatOutput-e303u stroke:#a170ff
ChatInput-wkxmm[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Input]
style ChatInput-wkxmm stroke:#a170ff
SalesForceTool-b81do[Salesforce Tool]
style SalesForceTool-b81do stroke:#a170ff
AdvancedAgent-fuycg[Agent2]
style AdvancedAgent-fuycg stroke:#a170ff
ChatInput-wkxmm -.- AdvancedAgent-fuycg
linkStyle 0 stroke:#a170ff
AdvancedAgent-fuycg -.- ChatOutput-e303u
linkStyle 1 stroke:#a170ff
OpenAIModel-1kevp -.- AdvancedAgent-fuycg
linkStyle 2 stroke:#a170ff
SalesForceTool-b81do -.- AdvancedAgent-fuycg
linkStyle 3 stroke:#a170ff
Agente de Salesforce
🧩 Overview
This workflow leverages AI to optimize business conversations by integrating a query function for a Salesforce database. Its primary function is to provide conversational responses to user inputs, enabling an intelligent agent to retrieve and present relevant sales data on demand. It automates the process of translating natural language questions into actionable database queries and delivering clear, helpful answers.
⚙️ Main Features
- Provides a conversational interface for users to ask questions about Salesforce data.
- Uses an intelligent agent to interpret user requests and decide when to query the database.
- Executes specific queries against a Salesforce instance to retrieve relevant information.
- Formats and presents the query results as a clear, natural language response to the user.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Chat Input | Captures the initial user question or prompt from the conversation interface. | User's text input (e.g., "Can you show me the sales") | User Message |
| OpenAI Model | Serves as the core language model that powers the reasoning and text generation for the intelligent agent. | Model configuration (e.g., name, temperature) | Language Model Instance |
| Salesforce Tool | Provides the capability to execute queries against the connected Salesforce database. | Query instructions from the agent | Database Tool |
| Advanced Agent | The central intelligence that orchestrates the conversation, decides when to use the Salesforce tool, and formulates the final answer. | User Message, Language Model, Database Tool | Agent's Response Message |
| Chat Output | Displays the agent's final response back to the user in the conversation interface. | Agent's Response Message | Formatted Chat Message |
🧠 Notes
- The workflow requires valid credentials for both the OpenAI API and the Salesforce instance to function.
- The agent's behavior and knowledge scope are defined by its system prompt and the tools provided to it.
- The agent is configured with a limit on the maximum number of reasoning iterations to control execution time and cost.
- The session is managed to maintain conversation context for coherent multi-turn dialogues.