Utilising Dialogs in CRM 2011 for Record Creation

 

Here’s an introduction on using Dialogs to provide a consistent Data Capture process within a call centre environment.

Let’s model a scenario where the call centre representatives are tasked with recording each inbound call as a Phone Call record in CRM.  The phone call needs to be attached to a new Contact record and depending upon the nature of the call either a Case or Opportunity is to be created for later resolution by a specialist Sales or Customer Service Representative.

The diagram below illustrates both the end user process and the steps automated by the dialog:

image

 

Now this process could be modelled in CRM without the use of Dialogs with the user simply navigating through CRM, creating and updating records as required.  Dialogs however offer us a scripted alternative that significantly reduce the keystrokes and ensures consistent adherence to the business process.

Let’s create the Dialog…

 

1. Navigate to: Settings –> Customizations –> Customize the System

image

The Default Solution will be displayed.

2. In the navigation tree on the left, click on Processes and then click New to create a new Process:

image

3. Enter a Name for your Process, select Phone Call as the Entity, select Dialog as the Category and then click Ok.  The Dialog Designer will be displayed:

Note: As an inbound call is received, the user will create a new Phone Call activity and then invoke this Dialog to process the call

image

4. Now we need to build up our Dialog.  The definition of a Dialog is made up of the Dialog Pages (wizard screens) that the end user will see, each of which contains one or more Prompt and Response sections (script questions).  And around these Pages you add your conditions and automated actions.  

The Dialog designer has sections where you can define Input Arguments and Variables.  We won’t be needing to get that advanced so just minimise those sections and whilst you’re at it minimise the header section and maximise the window to get a bit more screen real estate:

image

5. Click on the row displaying Select this rows and click Add Step and then click on the Add Step dropdown and chose Page:

image

A Page element will be added to your Dialog steps. 

image

This will be the first screen of our Dialog.  We now need to add some content to that screen.  We will add 3 Prompt and Response steps to the one screen to achieve the following end result:

image

6. Click on the row displaying Select this rows and click Add Step and then click on the Add Step dropdown and chose Prompt and Response:

image

A Prompt and Response element will be added to your Dialog steps. 

image

7. Click the Set Properties button and enter the following:

image

I have inserted some dynamic content to embed the name of call centre representative into the script.  You do this using the form assistant on the right.

This first prompt has a multi-line response allowing the user to capture in detail what the caller says, so there is no need for the user to be scribbling notes down on a pad of paper to only have to key them in later. The notes captured here will be recorded into CRM.

8. Save and Close the Prompt and Response window.  You will be returned to the Dialog designer:

image

9. Click on the Add Step dropdown, chose Prompt and Response, click the Set Properties button and enter the following:

image

10. Save and Close the Prompt and Response window and then add another Prompt and Response as per below:

image

Your Dialog definition should now look like this:

image

11. Enter a name for the Page:

image

12. Click on the Page so that the Page and its 3 Prompt and Response elements become highlighted:

image

13. Click on the Add Step dropdown and chose Page to create the second page of our Dialog (the second screen of the wizard).   Add a Prompt and Response to that new Page as per below:

image

The intention of this Prompt and Response is to prompt the call centre representative to chose whether a Case or Opportunity should be created..  The prompt is to the user, it is not meant to be a question they ask the caller.  I could have written a series of Prompt and Responses to define a scripted conversation from which we could derive what action should be taken but for this scenario I figure it should be pretty obvious whether the caller wants to buy something or has a customer service issue and I expect they will have already indicated the reason for their call.  So I just want the user to chose Case or Opportunity.

As I want to control what sort of response is captured I have opted for an Option Set response and defined the 2 values I want made available to the user.

14. Save that Prompt and Response.  And then add a 3rd page to the Dialog with the following Prompt and Response:

image

15. Assign meaningful names Pages 2 and 3 and confirm your Dialog definition now looks something like this:

image

16. Now’s a good time to see how the Dialog is going to look.  Follow these steps to test things out:

 

a. Save the Dialog and then click the Activate button to enable it

b. Create a new Phone Call activity

c. Populate the mandatory fields and then Save the Phone Call (this process is a bit clunky at the moment but you could improve things easily enough with some basic configuration and/or jscript). 

d. Click the Start Dialog button on the Ribbon and then select your dialog from the list:

image

 

If everything works correctly you should be taken through the 3 pages we defined and end up on a 4th ‘Finish’ page…

Page 1

image

Page 2

image

Page 3

image

‘Finish’ Page:

image

Now we aren’t actually doing anything with the responses received during the dialog session so you won’t see any records created or the phone call updated in CRM.  Let’s go add those automated actions to the dialog now…

17. Return to your Dialog (Settings –> Customizations –> Customize the System –> Processes). 

18. Click on the 3rd Page and then from the Add Step dropdown select Create Record:

image

A ‘create new record’ Step will be added to your Dialog definition. 

19. From the dropdown select Contact and then click the Set Properties button:image

20. On the Contact form that is displayed insert dynamic fields using the form assistant to have the Contact’s First Name and Last Name fields be populated based on the Dialog responses received:

imageimage

21. Save and Close the Contact form and enter a meaningful description for this step:

image

22. Next we want a Condition and some Create Record steps to handle the creation of the Case or Opportunity record.  Add this as per below:

image

When specifying the conditions you can access the Dialog Responses under the heading Local Values:

image

When setting the properties of the Case and Opportunity records make sure you set the Customer to be the Contact that was created in the previous step (again available under Local Values):

image 

23. Now the last thing we want to do is tidy up the Phone Call activity that we initiated this whole process off.  Add additional steps to populate any additional details you want written to the Phone Call and to change its status to completed.   Make sure you at a minimum you associate the phone call to the Contact and to the Case/Opportunity:

image

image

24. Ok, the last few steps of your dialog should look like this:

image

25. Save, Activate and give it a whirl. 

 

Here I go, taking a sales enquiry from Mark Johnson, I create a phone call, start the Dialog session, greet the caller and follow the script.  I capture his initial comments and then prompt for and record his name:

image

I then classify the call:

image

And then wrap up the call:

image

I exit the dialog and can now see that the Dialog has created a new Contact record in CRM:

image

And against that Contact I can see the Closed Activity:

image

And the Open Opportunity:

image

 

To make this solution a bit more real world we would add more prompt and response elements to capture the callers contact details and we would likely want to call a workflow to route the Case or Opportunity record that is created.

Hopefully this (horrifically long) blog gives you a good introduction to Dialogs and gets you thinking about how might you use them.  

A word of warning – there are lots of gotchas with Dialogs (e.g. they don’t cater for lookup or date fields) so make sure you prototype them out to see they will work for you.  The beauty of Microsoft CRM is the ease with which you can try these things out so…  give it a go!

Advertisements

10 thoughts on “Utilising Dialogs in CRM 2011 for Record Creation

  1. Pingback: CRM 2011 – Using Dialogs and Dialog gotchas « Hosk's Dynamic CRM 2011 Blog

  2. Pingback: CRM 2011 – Using Dialogs and Dialog gotchas - Hosk's Dynamic CRM 2011 Blog - CRM Technical Blogs - Microsoft Dynamics Community

  3. Bernard Grand

    Nice post, simple and clear. As you described: techy stuff described by a non-techy.
    Exactly what I need.
    Thanks, I just subscribed to your blog posts.

    Reply
  4. Franco Musso

    Extremely helpful, and a very exciting start to using dialogs.
    I followed the example very easily and felt extremely empowered to be able to create such a screnario correctly first time.
    This has so much potential in my organisation – thanks ever so much for sharing 🙂
    Keep up the great work!

    Reply
  5. Joe

    I’m creating a dialog to convert the phone call to an opportunity. The contact already exists as the recipient in the phone call but when creating the opportunity I can’t pull in the recipient into the customer. How do I get the contact from the phone call?

    Reply
  6. Marianne

    How do you capture the comments from the dialog? In the bottom you have a comment field. I would like the comments to go into the entity I create/update with my dialog. How do I do that?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s