Chatspark
Pricing
⌘K
⌘K

Microsoft Dynamics 365

Equip enterprise sales and service teams to surface Dynamics 365 records instantly inside any chat conversation.

7 min read

Updated October 2026

Overview

Enterprise teams running Dynamics 365 often deal with a frustrating loop: a customer asks about their case or opportunity, the rep Alt-Tabs to Dynamics, runs a search, copies the data, and pastes it back into chat. Multiply that by dozens of conversations a day and the lost time adds up fast.

The Dynamics 365 integration lets your AI agent query accounts, contacts, opportunities, cases, and activities on the fly. Reps stay in the conversation while the AI fetches exactly the data they need.

When to Enable This

  • Your customer service team fields questions like “What's the status of my support case?” multiple times a day
  • Sales reps need quick opportunity summaries while on calls or in chat
  • You want the AI agent to pull account context before escalating to a live agent

Available Actions

Available actions depend on your agent type and plan. Customer-facing actions serve customers. Internal team actions are for authenticated team use. AI CoPilot is Enterprise-only. Plus enables up to 5 actions per agent, Pro enables 40, and Enterprise has no enabled-action limit.

ActionDescriptionAudience
Add NoteAdd a note to a contact in Dynamics 365Internal team
Create ContactCreate a new contact in Dynamics 365Internal team
Create TaskCreate a task for a contact in Dynamics 365Internal team
Get AccountGet account from Dynamics 365Customer-facing
Get CaseGet support case from Dynamics 365Customer-facing
Get ContactGet contact from Dynamics 365Customer-facing
Get OpportunityGet opportunity from Dynamics 365Customer-facing
List ActivitiesList activities from Dynamics 365Customer-facing
Update ContactUpdate an existing contact in Dynamics 365Internal team

Prerequisites

Before connecting Dynamics 365, make sure you have:

  • A Microsoft Dynamics 365 instance (Sales, Customer Service, or unified)
  • An Azure AD app registration with Dynamics CRM API permissions
  • Your instance URL (e.g., https://yourorg.crm.dynamics.com)

Setup Instructions

Step 1: Register an App in Azure AD

  1. Go to the Azure Portal → Azure Active Directory → App registrations
  2. Click New registration
  3. Name the app “ChatSpark Integration”
  4. Under API permissions, add Dynamics CRM → user_impersonation
  5. Generate a Client Secret and note your Application (client) ID

Step 2: Generate an Access Token

  1. Use the OAuth 2.0 client credentials flow with your Azure AD app
  2. Set the resource to your Dynamics instance URL
  3. Copy the resulting access token
Token Refresh
Azure AD tokens expire after one hour. For production use, consider setting up a token refresh mechanism or regenerate as needed.

Step 3: Enable in ChatSpark

  1. In ChatSpark, go to AI Actions
  2. Find Dynamics 365 in the Library and click Enable
  3. Select the AI Agent(s) that should have access
  4. Enter your Instance URL and Access Token
  5. Click Save

Configuration Fields

FieldDescriptionExample
Instance URLYour Dynamics 365 organization URLhttps://yourorg.crm.dynamics.com
Access TokenOAuth bearer token from Azure ADeyJ0eXAi...

Testing Your Integration

After setup, open your AI Agent widget and try these realistic queries:

  1. Ask: “What's the status of support case CAS-10042?”
  2. The AI should return case priority, status, and the assigned agent from Dynamics

More test phrases:

  • “Look up the account details for Northwind Traders”
  • “Where does the Contoso opportunity stand right now?”
  • “Show me upcoming activities for the Fabrikam account”

Troubleshooting

401 Unauthorized

Azure AD tokens expire after one hour. Regenerate the token and update it in ChatSpark. Also verify that the app registration has the correct Dynamics CRM permissions.

Entity not found

Dynamics uses internal entity names (e.g., account,incident for cases). If a lookup fails, confirm that the record exists and your user has read access to that entity.

Instance URL mismatch

Make sure the Instance URL matches your production environment exactly, including the region suffix (e.g., .crm.dynamics.com for North America, .crm4.dynamics.com for EMEA).

Need Help?
If you're having trouble with the Dynamics 365 integration, contact our support team and we'll help you troubleshoot.

Previous

EasyAgentIDX

Next

Discord