Reusable, anonymized accelerator for deploying a Salesforce Employee Agent that:
- answers sales-support questions with
AnswerQuestionsWithKnowledge - escalates unresolved issues into a
Case - creates a clickable case link for end users
- captures a summary plus relevant conversation excerpt in case description
This package is designed for fast rollout from Cursor or terminal into any org/sandbox.
- Agent Script template:
config/agent-script-template.yaml - Case creation flow metadata:
force-app/main/default/flows/Sales_Assistant_Create_Case.flow-meta.xml - Agent access permission set:
force-app/main/default/permissionsets/Sales_Assistant_Agent_Access.permissionset-meta.xml - Deploy + setup scripts:
scripts/ - Installation and customization guides:
docs/ - Dependency inventory:
docs/ASSETS.md
Branding and org-specific values are parameterized with tokens:
${COMPANY_NAME}${ORG_DOMAIN}${AGENT_LABEL}${AGENT_DEVELOPER_NAME}${FLOW_API_NAME}
Use scripts/apply-branding.sh to replace these values before deploy.
- Update config from example:
- copy
config/install-config.example.jsontoconfig/install-config.json - set your company and org values
- copy
- Apply branding tokens:
bash scripts/apply-branding.sh config/install-config.json
- Deploy metadata:
bash scripts/deploy.sh <target-org-alias>
- Run post-deploy setup:
bash scripts/post-deploy.sh <target-org-alias> <username-or-user-id>
- In Agent Builder Script Editor, paste/import:
config/agent-script-template.yaml
- Publish and activate the agent version.
Use this section as a copy/paste runbook for new customer rollouts.
git clone https://github.com/charles-ensley/agentforce-sales-assistant-template.git
cd agentforce-sales-assistant-template
cp config/install-config.example.json config/install-config.jsonEdit config/install-config.json:
COMPANY_NAME: customer name, for exampleAcmeORG_DOMAIN: customer Lightning domain, for examplehttps://acme-dev.lightning.force.comAGENT_LABEL: display label shown in Agent BuilderAGENT_DEVELOPER_NAME: API/developer name for the agentFLOW_API_NAME: case flow API name (defaultSales_Assistant_Create_Case)
sf org login web --alias <customer-org-alias>bash scripts/apply-branding.sh config/install-config.json
bash scripts/deploy.sh <customer-org-alias>bash scripts/post-deploy.sh <customer-org-alias> <username-or-user-id>Then in Agent Builder:
- open Script Editor
- paste/import
config/agent-script-template.yaml - save, publish, and activate
- Ask a knowledge-grounded question and verify response quality.
- Ask to escalate and verify case creation with:
- inferred
CaseType - formatted description including
--- Conversation Excerpt --- - clickable case link.
- inferred
- The knowledge action points to the standard Employee Agent knowledge action and expects each customer to provide their own Agentforce data library content.
MessagingSessionIdremains in the flow/action contract for compatibility, but behavior should not depend on it in Employee Copilot channels.