Chatspark
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 February 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

ActionDescription
Get AccountRetrieve account name, industry, revenue, and primary contact
Get ContactLook up contact details including email, phone, and job title
Get OpportunityCheck opportunity stage, estimated value, and close date
Get CaseFetch support case status, priority, and assigned agent
List ActivitiesShow upcoming and recent activities linked to a record

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 PortalAzure Active DirectoryApp registrations
  2. Click New registration
  3. Name the app “ChatSpark Integration”
  4. Under API permissions, add Dynamics CRMuser_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 chatbot(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 chatbot 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

CT IDX Pro+

Next

Follow Up Boss