Skip to main content

自定义 Agentforce 销售指导

学习目标

完成本单元后,您将能够:

  • 了解 Agentforce 销售指导的开箱即用功能。
  • 通过真实示例探索自定义智能体的选项。

Trailcast

如果您想收听本模块的录音,请使用以下播放器。听完这段录音后,记得返回每个单元,查看资源,然后完成相关评估。

现在开始自定义

您已创建 Agentforce 销售指导,您可以根据团队的独特需求对其进行自定义。这确保销售代表获取可操作的见解和相关反馈,提高绩效。

经过优化,销售指导可提供开箱即用的体验,这有助于销售代表练习首次推介或初始客户发现,并处理谈判、异议和提案。在此,您将了解到一些常见的自定义用例,并学习如何快速修改开箱即用的主题和提示——特别是角色扮演和反馈。

角色扮演自定义

在销售指导中,您可以自定义角色扮演主题中的指令,使智能体最能代表贵公司的典型买方角色。以下提供了编辑主题和指令以自定义智能体的方法,下方的模拟将引导您逐步了解后续指令。

  1. 从主页单击齿轮图标 设置,然后选择 Setup(设置)
  2. 在 Quick Find(快速查找)字段中,搜索并选择 Agentforce Agents(Agentforce 智能体)
  3. 单击 Agentforce Sales Coach(Agentforce 销售指导)
  4. 单击 Open in Builder(在生成器中打开)
  5. 单击右上角的 Deactivate(禁用)。在编辑智能体之前,必须先将其禁用。
  6. 在 Agentforce 生成器的 Topic Details(主题详细信息)部分,选择 Agentforce Sales Coach: Opportunity Coaching(Agentforce 销售指导:业务机会指导)

由于此示例用于与买方就谈判阶段的业务机会进行角色扮演,因此,开箱即用的描述、范围和指令仍然适用。现在,为智能体添加一条特定于竞争对手的指令。

  1. 单击 Add Instructions(添加指令)
  2. 单击新指令字段并输入以下文本:

Mention that the competitor “ClearTech” has better pricing and competitive features.(提到竞争对手“ClearTech”在价格和有竞争力的功能方面更具优势。) Always ensure the product the seller is offering is still the right fit for you.(始终确保卖方提供的产品依然适合您。) Ask for feature comparison, and try to get a better deal.(要求进行功能比较,争取达成更好的交易。)

  1. 单击保存
  2. 单击 Activate(激活)

自定义主题的最佳实践

正如前面提到的,在角色扮演场景中,您只需更新主题和指令。在更新或添加新指令时,请考虑以下最佳实践:

  • 许多指令遵循条件格式或祈使句结构,即 If(如果)、Then(那么)或者 Never(决不)、Instead(而是)。例如,如果用户未指定交易阶段,请询问交易的当前状态。或者,决不要求用户提供 ID。而是使用记录名称或询问记录名称,通过 IdentifyRecordByName 获取 ID 以调用其他函数。
  • 使用特定的标签名称或在操作中使用的精确语法也很重要,这有助于 LLM 理解特定的命名规则或要调用的函数。
  • 此外,还存在一个无法禁用的 OffTopic 主题。
  • 如果某项操作出现在多个主题中,可能需要在不同主题间重复指令。

请务必注意,指令在主题级而非操作级相互关联,即使很多指令是由于对某个特定操作的测试而创建的。

反馈自定义

在本示例中,您可借助相关销售数据对提示进行自定义,包括与您的销售流程相匹配的自定义字段和最佳实践。调整智能体,使销售代表能够应对贵公司的竞争对手。该交易正处于谈判阶段,目标是使您的产品从竞争对手中脱颖而出并定位其独特价值,从而成功达成交易。您正在处理 Get Negotiation/Review Stage Feedback(获得谈判/审核阶段反馈)提示。

  1. 从主页单击齿轮图标 设置,然后选择 Setup(设置)
  2. 在 Quick Find(快速查找)框中,搜索并选择 Prompt Builder(提示生成器),然后选择要编辑的提示。其中提供了大量开箱即用的提示。
  3. 单击右上角的 Deactivate(禁用)。在编辑提示之前,必须先将其禁用。
  4. 单击 Save As(另存为),然后从下拉菜单中选择 Save as a New Version(另存为新版本)
  5. 更新提示模板工作区中的内容以满足您的业务需求。以下是提示示例:粗体文本代表添加的自定义。

You are a Sales Manager coaching Sales Executive {!$User.FirstName}(您是指导销售主管 {!$User.FirstName} 的销售经理)

They are working on a deal with Customer: {!$Input:Opportunity.Account.Name}(他们正与客户 {!$Input:Opportunity.Account.Name} 洽谈一笔交易)

The deal is currently in stage {!$Input:Opportunity.StageName}(该交易目前正处于 {!$Input:Opportunity.StageName} 阶段)

Your goal is to ensure the Sales Executive understands to differentiate the product from competitors and position the unique value it offers to close the deal successfully.(您的目标是使您的销售主管了解如何使产品从竞争对手中脱颖而出并定位其独特价值,从而成功达成交易。)

Here is relevant context on this Opportunity that should be considered(以下是关于此业务机会的相关上下文,需予以考虑)

Industry of the Customer(客户所在行业):{!$Input:Opportunity.Account.Industry}

This opportunity is stage(业务机会所处阶段):{!$Input:Opportunity.StageName}

Customer Business Description(客户业务描述):{!$Input:Opportunity.Account.Description}

Sales Executive Notes for this opportunity(关于此业务机会的销售主管备注):{!$Input:Opportunity.Description}

The expected probability percentage the deal closes(成交的预期概率百分比):{!$Input:Opportunity.Probability}

If there are tasks to be completed by the Sales Executive that are overdue, the task will = true(若销售主管有逾期的待完成任务,该任务将设置为真):{!$Input:Opportunity.HasOverdueTask}

指令:“”“

Coach {!$User.FirstName} based on: the customer’s business description, the opportunity’s current stage, context about the opportunity and the customer, and the coaching opportunity and coaching task.(根据以下信息指导 {!$User.FirstName}:客户的业务描述、业务机会的当前阶段、关于业务机会与客户的上下文,以及指导业务机会和指导任务。) Assess how well the Sales Executive is able to have a discussion with the Customer by ensuring they are following the COMPETITOR_HANDLING_CHECKLIST mentioned below.(评估销售主管能否通过确保按照下文所述的 COMPETITOR_HANDLING_CHECKLIST 与客户展开讨论。)

<COMPETITOR_HANDLING_CHECKLIST>

Acknowledge the competitor’s mention without dismissing the customer’s concerns.(认可客户提及竞争对手,同时也不忽视客户的问题。)

Highlight the key differentiators of the proposed solution over the competitor’s product.(突出强调所提出的解决方案相较于竞争对手产品的关键差异化因素。)

Reframe the conversation to focus on the customer’s priorities and how the proposed solution addresses them better than the competition.(重新构建对话,重点关注客户的优先事项以及所提出的解决方案如何比竞争对手更好地满足这些优先事项。)

Handle objections confidently while maintaining professionalism.(在保持专业精神的同时,自信地处理异议。)

Coaching Opportunity(指导业务机会)

The key to the Negotiation stage is whether the Sales Executive is able to have a discussion with the Customer about the competitor.(谈判阶段的关键在于销售主管能否与客户就竞争对手展开讨论。) The sales executive should be able to handle the competitor mention by following the COMPETITOR_HANDLING_CHECKLIST(销售主管应能够按照 COMPETITOR_HANDLING_CHECKLIST 处理竞争对手提及)

Coaching Task(指导任务)

You will receive a written transcript of the Sales Executive you are coaching, having a conversation with the Customer they are trying to sell their product or service to.(您将收到一份关于您正指导的销售主管与试图向其推销产品或服务的客户之间对话的书面脚本。)

In the feedback you provide, include the following(在您提供的反馈中,包含以下内容)

# Deal Summary(交易摘要)

In 100 words or less provide a summary of the deal in complete sentences.(请用不超过 100 字的完整句子总结该交易。) Include in this order: the stage; customer name; amount found here: {!$Input:Opportunity.Amount}; and if provided, the {!$Input:Opportunity.Probability} likelihood to close.(请按以下顺序描述:阶段、客户名称、金额 {!$Input:Opportunity.Amount} 以及(如果提供)成交的可能性 {!$Input:Opportunity.Probability}。)

# Key Strengths(主要优势)

What communication and selling techniques did the Sales Executive use well?(销售主管运用了哪些有效的沟通与销售技巧?) Using specific examples from the Sales Executive’s transcript, summarize what they did well in differentiating the solution from the competitor’s product.(借助销售主管的脚本中提供的具体示例,总结他们在使解决方案有别于竞争对手产品方面做得出色的领域。)

# Areas for Improvement(需要改进的领域)

Identify where the Sales Executive could improve, such as providing clearer differentiators or reframing the conversation more effectively.(识别销售主管需要改进的领域,例如,提供更明确的差异化优势或更有效地重新构建对话。) Provide specific examples from the sales executive’s transcript.(请从销售主管的脚本中提供具体示例。)

# Next Steps(后续步骤)

Provide an unordered list of a minimum of two, no more than four, tactical next steps the Sales Executive should focus on given the feedback provided.(根据提供的反馈,列出销售主管应重点关注的至少两项、至多四项的策略性后续步骤(无序列表)。)

After the list you need to evaluate if a Next Step has been provided in the system by the Sales Executive.(完成列表后,您需要评估销售主管是否已在系统中提供了后续步骤。) State whether a next step has been identified here: {!$Input:Opportunity.NextStep}.(请指示是否已在此处确定下一步 {!$Input:Opportunity.NextStep}。) When none is provided, remind them that Next Steps are important because they help Sales Executives manage their own deals and provide visibility for sales managers.(如果未提供,请提醒他们:后续步骤至关重要,因为它们有助于销售主管管理自身交易,并为销售经理提供可见性。)

If a Next Step has been provided in the system, add the sentence: “Next Step you have identified is: {!$Input:Opportunity.NextStep}”.(如果系统中已提供下一步,请添加以下句子:“您已确定的下一步是:{!$Input:Opportunity.NextStep}”。) Then evaluate whether the Sales Executive has defined the next step {!$Input:Opportunity.NextStep} adequately, compared to what you think should be the next step and the stage of the deal.(然后评估销售主管对下一步 {!$Input:Opportunity.NextStep} 的定义是否充分、与您认为应采取的下一步以及交易阶段是否相符。)

You must write your response in the Second-person narrative, using “you”, “your” to give a sense of familiarity.(您必须采用第二人称叙事方式编写回复,使用“您”、“您的”等称谓营造亲切感。) Your feedback must not exceed 400 words.(您的反馈不能超过 400 字。) Be concise in your instructions and keep them actionable for a Sales Executive.(请确保您的指令言简意赅,对销售主管而言是可操作的。)

“”“

Here’s the Transcript: {!$Input:Transcript}(以下是脚本:{!$Input:Transcript})

Now execute the coaching task.(现在执行指导任务。)

存在无限可能!要了解更多自定义选项,请参阅 Agentforce 销售指导自定义

自定义提示的最佳实践

提示可自定义,以便使您的 Agentforce 销售指导的反馈个性化。以下是更新提示时需要考虑的一些最佳实践。

确定部分标签

这将告知模型应查看何处。提示结构有助于模型理解应查看何处,避免模型混淆。指令过长时,请使用分隔符。

使用必填字段与操作字段

请谨慎使用可能为空的数据。提供默认值或建立护栏,以指导如何恰当使用或避免使用数据。如果要包含可能为空的数据点,请避免指示 LLM 使用特定键。相反,应使用涵盖所有相关信息的术语进行引导,或使用包含这些部分数据的特定标签。

使用“within(以内)”限制模型输出的长度

使用介词“within(以内)”有助于模型理解范围或边界。例如:“Generate a persuasive sales pitch for a new product within 50 words, highlighting its key benefits and unique selling points.(请生成一份 50 字以内有说服力的新产品销售推介,突出其主要优势和独特卖点。)”

从 LLM 中获取预期输出

如果您注意到 LLM 未能输出预期结果,请考虑对提示进行以下更改:

  • 在角色扮演场景中,如果没有相应的指令主题处理您发现的输出问题,请添加一个。使用“must(必须)”来明确义务。
  • 在“must”之后添加副词“strictly(严格地)”,加强命令语气。
  • 要命令模型执行一项操作,请使用祈使动词,后接直接宾语。
  • 使用“you(您) + 情态动词 must + 祈使动词”的句式结构。这种结构,包括“you”在内,强调了您正在向谁下达命令,即 LLM。
  • 使用“always(始终)”确保 LLM 提供信息,无论输出是否缺失您想要的一些元素。

使用提示模板

自定义提示或从头编写提示似乎令人生畏。因此,这里提供了一个模板,您在更新用例提示时可将其作为指南。

  • Objective/Goal(目的):[您希望您的指导达到什么样的具体效果?]
  • Grounding Data(基础训练数据):[为您的指导提供所有相关的 CRM 上下文。]
  • Instructions(指令):[描述受众、场景及评估条件]
  • Expected Output(预期输出):[描述来自指导的理想反馈。]
  • Guidelines for output style(输出风格指南):[提供指令,确保消息传递的清晰度和一致性。]
  • Task closing(任务关闭):[向智能体提供关闭语句]

在自定义智能体时,您的最终任务是测试。这确保提示主题或指令的运行符合预期。

提示测试

  1. 从主页单击齿轮图标 设置,然后选择 Setup(设置)
  2. 在 Quick Find(快速查找)框中,搜索并选择 Prompt Builder(提示生成器),然后选择要测试的提示。
  3. 在左侧 Template Settings(模板设置)面板上方,单击 Preview Settings(预览设置)图标 预览设置图标,然后选择 Test Inputs(测试输入)
  4. 输入要测试的脚本。以下是用于测试的示例脚本。将此文本复制并粘贴到提示模板中:

Seller: Hi Jamie, thanks again for taking the time to speak today.(卖方:您好,Jamie。再次感谢您今天抽出宝贵时间和我交谈。) I know we’re at the negotiation stage, and I want to ensure we address any final concerns or questions you might have.(我知道我们目前处于谈判阶段,我想确保我们能解决您可能存在的任何最终疑虑或问题。) How are you feeling about everything we’ve discussed so far?(您对我们已讨论的内容有何感想?)

Buyer: Thanks, Chris.(买方:谢谢您,Chris。) Honestly, we’re still considering our options.(坦率地讲,我们仍在考虑我们的选择。) We had a meeting with ClearTech last week, and their pricing and features are very competitive.(上周我们与 ClearTech 举行了会议,而且,他们的定价和功能都极具竞争力。) It’s giving us a lot to think about.(因此,我们需要做多方面考虑。)

Seller: That’s completely understandable, Jamie, and I appreciate you bringing that up.(卖方:这完全可以理解,Jamie,感谢您提到这一点。) ClearTech is certainly a well-known player in this space, and it’s great that you’re exploring all your options to find the right fit for your team.(ClearTech 无疑是这个领域的知名企业,您正在探索各种选择,为团队寻找最佳合作伙伴,这非常棒!) Can I ask, which specific features or aspects of their offering stood out to you?(请问,他们产品的哪些特定功能或方面令您印象深刻?)

Buyer: Their reporting dashboard looks intuitive, and their price point is about 10% lower than yours.(买方:他们的报告仪表板看起来直观易懂,价格比贵公司低约 10%。) For a growing company like ours, those are pretty compelling factors.(对于像我们这样快速发展的公司而言,这些因素极具吸引力。)

Seller: I hear you, and both of those points are valid.(卖方:我明白了,这两点都很重要。) Let’s start with the reporting dashboard.(我们先从报告仪表板说起。) While ClearTech has a solid product, one key differentiator with our solution is that our analytics are customizable to your specific KPIs and business goals.(尽管 ClearTech 拥有出色的产品,但我们的解决方案的关键差异化优势在于我们的分析功能可根据您的具体 KPI 和业务目标进行自定义。) For example, Greenfield Logistics, a client similar to your company, cut reporting time by 30% after configuring the dashboard to prioritize real-time inventory metrics.(例如,与贵公司类似的客户 Greenfield Logistics,在将仪表板配置为优先显示实时库存指标后,报告时间缩短了 30%。) Does that level of flexibility resonate with what your team is looking for?(这种灵活性是否符合您团队的需求?)

Buyer: That’s interesting—our reporting needs do vary quite a bit, so customization would definitely help.(买方:这很有趣。我们的报告需求确实存在很大差异,因此,自定义功能肯定大有裨益。)

Seller: Exactly, and it’s not just about the features but the results they deliver.(卖方:不错,关键不仅在于功能本身,更在于它们所带来的成果。) Regarding pricing, I understand that budgets are always a factor.(关于定价,我明白预算始终是一个重要因素。) While ClearTech might have a lower sticker price, our clients often tell us that the ROI they achieve with our solution far outweighs the initial cost.(虽然 ClearTech 的价格可能较低,但客户常向我们反馈,他们通过我们的解决方案获得的投资回报率 (ROI) 远超其初始成本。) For example, we include implementation support and ongoing optimization consultations at no additional cost, which can save you tens of thousands in the long run.(例如,我们免费提供实施支持和持续优化咨询,这将为您长期节约数万元美元的成本。)

Also, I noticed that one of your top priorities is improving forecast accuracy.(此外,我注意到,提高预测准确性是您的当务之急。) Our AI-powered forecasting tool, which is included in our package, has a proven track record of increasing accuracy by up to 40%.(我们软件包中包含的 AI 预测工具已证实能将准确性提升高达 40%。) Do you feel this level of precision aligns with your goals?(您是否认为这种精度与您的目标相符?)

Buyer: That’s definitely something we’re aiming for.(买方:这正是我们所追求的目标。) I like that your solution seems more tailored to our needs.(我想贵公司的解决方案似乎更贴合我们的需求。)

Seller: I’m glad to hear that.(卖方:很高兴听您这么说。) My goal is to ensure our solution not only meets but exceeds your expectations in the areas that matter most to you—whether it’s customization, ROI, or forecasting accuracy.(我的目标是确保我们的解决方案不仅能满足、更能超越您在最重视领域的期望——无论是自定义、ROI,还是预测准确性。) How about this: I can share a detailed side-by-side comparison of our offering versus ClearTech’s, highlighting where we deliver the most value.(这样如何:我可以分享一份我们的产品与 ClearTech 的产品的详细对比,会强调我们最具价值的优势所在。) Would that be helpful as you finalize your decision?(这是否对您最终做出决定有所帮助?)

Buyer: Yes, that would be great.(买方:是的,这非常有用。) Let’s go ahead and review that.(让我们拭目以待吧。)

Seller: Perfect.(卖方:好极了。) I’ll send over the comparison document this afternoon, and we can schedule a follow-up to address any remaining questions.(我将于今天下午发送对比文档,并安排后续跟进,解决其他问题。) I’m confident we can build a partnership that drives measurable results for your team.(我相信我们能建立合作伙伴关系,为您的团队带来可衡量的成果。) Thanks again for your time, Jamie.(再次感谢您抽出宝贵时间,Jamie。)

  1. 从列表中选择业务机会。
  2. 单击屏幕左侧 Template Settings(模板设置)面板上方的 Preview(预览)
  3. 查看 Response(响应)部分生成的反馈。您可以根据需要多次调整提示,直到从 LLM 获得期望的响应。

主题和指令测试

  1. 从主页单击齿轮图标 设置,然后选择 Setup(设置)
  2. 在 Quick Find(快速查找)框中,搜索并选择 Agentforce Sales Coach(Agentforce 销售指导)
  3. 单击 Open in Builder(在生成器中打开)
  4. 选择要测试的主题。
  5. 在页面右侧的 Conversation Preview(对话预览)面板中,输入以下文本:

Let’s do role play.(让我们进行角色扮演。) Customer Account name is Virtuoso.(客户的客户名称是 Virtuoso。) The Sales Executive’s name is Samantha.(销售主管的姓名是 Samantha。) The opportunity stage is: negotiation.(业务机会正处于谈判阶段。) Opportunity amount is: $52,000.(业务机会金额是 $52,000)。

  1. 审查 LLM 的响应。您可以在中间面板中查看具体调用了哪些操作和指令。调整或添加指令,直到获得理想的 LLM 响应。

现在您已了解 Agentforce 销售指导的概念及其工作原理。您已掌握设置方法,可以开始帮助贵公司的销售代表充分发挥潜力。您已知道两种方法来调整指令、操作和主题,以自定义您的 Agentforce 销售指导。并且,您已具备针对自己的业务实施销售指导的基础知识,可根据业务需求自定义智能体。

资源

在 Salesforce 帮助中分享 Trailhead 反馈

我们很想听听您使用 Trailhead 的经验——您现在可以随时从 Salesforce 帮助网站访问新的反馈表单。

了解更多 继续分享反馈