By PK4 Tech · Salesforce Agentforce in your team’s chat
Your Salesforce agents, in Microsoft Teams
Ask questions and request actions from your Salesforce Agentforce agents without leaving your Teams conversation. Each person connects their own Salesforce account and uses their own permissions.
Request the Teams appExplore the demo
Currently free. This app will move to paid access soon at US $5 per user per month. Salesforce licenses and Agentforce usage charges are separate.
Bring your Salesforce agents into everyday conversations
Your team can ask about work, find Salesforce information, and request supported actions from the chat application they already use. Each person connects their own Salesforce account and chooses an agent made available by their administrator.
Ask for the information you need
Get answers from your configured Salesforce agent, including records and work your account can access.
Request the next action
Ask your agent to carry out the workflows it supports. Available actions depend on its configuration and your Salesforce permissions.
Keep your Salesforce identity
Use your personal Salesforce connection. Your administrator controls which agents and records you can access.
Examples for project and time management
A Salesforce agent configured for project and time management can support questions such as these:
- “What tasks do I have this week?”
- “What projects do I have running?”
- “Show my time for this week.”
Task updates and time submission are available when your selected agent supports those actions. The app connects you to your existing agents; the agent and its Salesforce configuration determine what it can do.
What you need
You need access to the relevant chat application and a compatible Salesforce Agentforce agent, with the Salesforce licenses and permissions required for your work. No PK4 TimeTracker installation is required.
Install the app and connect Salesforce
The app is awaiting Microsoft Marketplace review. Email support@pk4.tech to try it now. PK4 will send an installable app package your Teams administrator can upload.
Administrator setup
- Get the Teams app from PK4. Email support@pk4.tech to request an installable app package for your Teams administrator. Your Teams administrator uploads and makes the app available under your organization’s app policies. Users may be unable to upload custom apps themselves.
- Approve Salesforce access. Your Salesforce administrator installs or approves PK4’s Connected App in each Salesforce org or sandbox you intend to use, and grants access to the intended users. You do not need to create your own Connected App or install TimeTracker.
- Make suitable agents available. Users need the relevant Salesforce licenses, API permissions and access to an active Agentforce agent compatible with the Salesforce Agent API. Salesforce controls which records and actions each user can access.
Follow the Salesforce administrator setup instructions →
A successful first-user login does not prove that the Connected App has been approved for everyone. Complete the administrator setup before inviting the rest of your team.
Connect and start chatting
- In Teams, open Agentforce for Teams from the apps your organization makes available.
- Send any message. If you have not connected Salesforce, the app shows Connect Production and Connect Sandbox buttons.
- Choose the correct environment. In the browser, sign in with the Microsoft account you use in Teams, then authorize your Salesforce account. Use your organization’s Salesforce sign-in or SSO as applicable.
- After the connection succeeds, close the confirmation page and return to Teams.
- Select an agent from the choices sent to the conversation. The confirmation includes the selected agent’s name.
- Send your question. To switch later, type choose agent.
Try the shared Salesforce demo
Do the following:
- After installing PK4 Agentforce™ in your Microsoft Teams™ instance, send it any message and choose Connect Production (or Connect Sandbox, if you want to connect to a Salesforce sandbox).
- Sign in to Microsoft Teams™ with your own Microsoft account
- Then sign in to Salesforce with either demo account below and approve the connection.
- Return to Microsoft Teams™ and select an available Salesforce agent. The agent name comes from Salesforce and can differ from the chat app name.
| Salesforce username | Demo password |
|---|---|
| burcebanner@agentforce.pk4.tech | hulk2026 |
| steverogers@agentforce.pk4.tech | captain2026 |
This is a shared demo: Use your own Microsoft account, choose Connect Production, and use one of those demo accounts for the Salesforce sign-in. Return to Teams and choose an available agent.
Use sample data only. This is a shared demo, so other demo users may see changes to Salesforce records. Do not enter personal, confidential or customer information. Start with “What can you help me with?”
When finished, send disconnect salesforce to the app in Teams to disconnect the current Salesforce account. Then send connect salesforce and connect your own Salesforce account.
Example questions for your configured agent
Try “What can you help me with?” first. For a project and time management agent, try “What tasks do I have this week?”, “What projects do I have running?” or “Show my time for this week.” Answers and actions depend on the selected agent and Salesforce data.
One-time Salesforce administrator setup
For Salesforce administrators. Complete this for each production org or sandbox you want to connect. Users then follow Get started individually. People trying PK4’s shared demo do not administer the demo org.
These Salesforce steps also apply to Agentforce for Google Chat™. Approve the Connected App used by the particular bridge; the Google Chat™ and Teams bridges can use different app registrations.
If you are the first person to connect successfully, ask your administrator to complete the installation and access checks below. Your successful login alone does not mean other users are approved.
1. Make the initial administrator connection
In Microsoft Teams, open Agentforce for Teams. In Google Chat™, open Agentforce for Google Chat™. Send any message to get the connection buttons. Choose Connect Production or Connect Sandbox. Sign in with the Google or Microsoft account you use in that chat, then sign in to the correct Salesforce org and review the requested access.
If Salesforce blocks this initial authorization because the app is uninstalled, an authorized Salesforce administrator must use an account with the Approve Uninstalled Connected Apps permission, subject to your organization’s security policy. This permission is for the administrator carrying out setup; it should not be broadly assigned to end users as a workaround.
2. Install the Connected App in Salesforce
- In the target Salesforce org, open Setup.
- Enter Connected Apps OAuth Usage in Quick Find and open that page.
- Find the PK4 Connected App used by the login you just completed. Check the application name shown on the Salesforce consent screen; if it is unclear which entry is ours, contact PK4 before approving it.
- Click Install next to that app, then confirm the installation.
This installs the OAuth app’s definition for management in your org. It does not install a TimeTracker package. If the app already shows Uninstall, it is already installed. Apps created in the current org can show different actions and may not have an Install button.
If the app is missing from the list, have the authorized administrator complete the initial connection, refresh the usage page, and check again. Also check whether the app is blocked. Do not create a replacement app or change PK4’s callback URLs.
3. Approve the intended users
- Open Manage Connected Apps in Setup and select the installed app.
- Review Edit Policies → OAuth Policies → Permitted Users.
- For controlled enterprise access, select Admin approved users are pre-authorized, then grant access to the intended users through the appropriate permission sets or profiles.
- Retain your organization’s required IP, session, and authentication policies. Ensure users also have the Salesforce API permissions and Agentforce access required for their work.
Connected App approval permits login; it does not grant access to every agent or Salesforce record. Salesforce permissions still govern access.
4. Return to Teams or Google Chat™
Ask the user to start a fresh connection from the app. After connecting, the app sends agent choices to Teams or Google Chat™. Select an agent and look for a confirmation that includes its name. To switch later, type choose agent.
If Salesforce keeps the user on an error page, return to Teams or Google Chat™ and open a new connection link after the administrator has resolved the issue. The app cannot automatically read an error displayed only on Salesforce’s website.
Still unable to connect?
Check that you selected the correct production org or sandbox, that the app is installed and unblocked, and that your user has the required app assignment. If the error mentions a callback URL, client ID, or OAuth scopes, contact PK4 so we can check the application configuration. Do not send passwords, client secrets, or tokens.
Salesforce references
- Install a Connected App
- Manage Connected Apps OAuth Usage
- Connected App usage restrictions and administrator approval
Login errors:invalid_client with “app must be installed into org” requires administrator installation. OAUTH_APPROVAL_ERROR_GENERIC can have several causes, including installation or access policies. Do not create your own Connected App as a workaround.
How Agentforce for Teams connects your accounts
The Microsoft Teams app is hosted on Microsoft Azure and connects to Salesforce through the Salesforce Agent API. You sign in with the Microsoft account you use in Teams, then authorize your personal Salesforce account through OAuth.
| Chat platform | Microsoft Teams personal chats, plus group chats and channels where your organization makes the app available. |
|---|---|
| Hosting | Microsoft Azure, with queued processing for Teams requests. |
| Salesforce identity | Your personal Salesforce account, with the permissions and agent access configured by your administrator. |
| Account connections | Microsoft sign-in and Production or Sandbox Salesforce connection. Refresh tokens are encrypted in storage. |
| Conversation visibility | Replies in a group chat or channel are visible to its participants. Use a personal chat for a private conversation. |
| Administration | Your Teams administrator uploads and allows the app package. Your Salesforce administrator approves the Connected App and intended users. |
Available agents and supported actions depend on your Salesforce configuration. A Teams connection does not expand your Salesforce permissions.
Your identity, with replies where you ask
Each request uses the Salesforce account linked to the person asking. In a group chat or channel where the app is available, mention the app to address it. Replies are visible to that conversation’s participants. Use a personal chat when the response should stay out of a group conversation.
The agent may return information about other people when your Salesforce permissions and the agent’s configuration allow it. Connecting through Teams does not give you additional Salesforce permissions.
Connection help
- Switch agents: type choose agent.
- Reconnect Salesforce: type connect salesforce and follow a fresh sign-in link.
- Disconnect Salesforce: send disconnect salesforce to the app in Teams.
- App installation or approval error: ask your Salesforce administrator to follow the setup guide, then start a fresh connection from Teams.
- Teams app missing or blocked: contact your Teams administrator or PK4.
For access, setup help or support, email support@pk4.tech. Include the time and error category if available. Never send passwords, tokens or confidential conversation content.
Currently free. Paid access is coming soon.
Agentforce for Teams is currently free to use. It will move to paid access soon at US $5 per user per month.
Upcoming subscription price
$5 / user / month
Current app access: free.
Salesforce licenses and Salesforce Agentforce usage charges are separate. Microsoft licenses are also separate.
See Agentforce pricing or contact PK4 for questions.
PK4 provides this independent integration. Microsoft Teams and Salesforce Agentforce are products of their respective owners. Contact PK4
