Skip to Content

What is Interactive Scripting?

A useful tool with a list of questions and answers to guide agents through each step of a customer interaction. The scripting configuration controls the navigation, depending on answers the agent gets from the customer. The answer (decisions) are represented by buttons and could:

  • Trigger other questions.
  • Trigger an URL.
  • Trigger other interactive script
  • Navigate to another “UI View” in the Interaction Center Web Client.
  • Trigger a CRM questionnaire (survey).
  • Update Business Partner Address or  Marketing Attributes

Interactive script.png

Script Content


Questions

It is a short text that describes the dialog with the customer. Question can be reused in all scripts.


/wp-content/uploads/2015/07/question_742238.png


During a creating a question is possible to include in the definition different sections: question, answers, buttons; this is extremely useful to design better screen with all options required.

question design.png


Variables

Variables are placeholders that become the customer’s current information when agents use the script.

SAP provides standard variables, or you can create your own variables.  Standard variables including all field for address, and name for customer and customer contact.

variables example.png

(Variables are saved in the answers repository under TextFields)

variables location.png

Answers

Answers guide agents through interactions with customers. It includes the clients response and could be buttons or fields.

Fields:

Any type of answer that is not a button is considered a field. Fields are used in questions. Once you have created a field, you can reuse it in any question.

There are various types of fields that you can create:

  • Radio buttons

radio buttons.png

  • Dropdowns

/wp-content/uploads/2015/07/dropdowns_742265.png

  • Checkboxes

/wp-content/uploads/2015/07/checkboxes_742266.png


Buttons

Are used for navigating from one question to the next in the script. Can be reused in the any answer.

Example: More Info, Next, No, No Changes, Save, Yes, Ok

/wp-content/uploads/2015/07/buttons_742267.png


Navigation Options

Trigger other questions

You could trigger further questions, which can contain text fields, drop-down list boxes, check boxes or radio button; and are useful for questions that require an actual response from the customer

type of questions.png

Trigger URL

System will open a Web URL. You can configure to open in a new window or open inside the script.

/wp-content/uploads/2015/07/url_742274.png

Trigger other scripts

Scripts can be triggered from within other scripts.

Just drag and drop a script to the design area.

/wp-content/uploads/2015/07/otherscript_742275.png

Trigger Transactions

Interactive Script can navigate to another “User Interface View” in the Interaction Centre Web Client or another SAP transaction (Depending on configuration is possible to navigate to any transaction in SAP ECC, for example, if the transaction launcher is available in the Interaction Centre).

To navigate to other transaction, you must select the Object type and Action based on your navigation bar profile, outbound parameters for your business role.


navigation parameters.png

Trigger Questionnaire

From a script a questionnaire (survey) can be triggered to collect “More” information in only 1 screen. This is useful as allows marketing department to define surveys that can be reused in different scripts, as well as in the website.

/wp-content/uploads/2015/07/questionnaire_741164.png

Update Business Partner Address or Marketing Attributes

Agents can update customer data directly from within the script: address fields and marketing attributes can be updated for the confirmed business partner.

To include marketing attributes in the design, ensure to select template “Person or Organization Marketing Attributes”

/wp-content/uploads/2015/07/marketingattribute1_742276.png

During the answer design, drag and drop “Dynamic Answers” to include marketing attributes.

/wp-content/uploads/2015/07/marketing21_742280.png

The system will display the marketing attributes that you maintain in script parameters:

/wp-content/uploads/2015/07/marketingattributes_741165.png

Script Functionality

Objection Scripts

It is an exception script that can only be launched directly from within another script.

It is used when customer answers don’t follow your script navigation. A common example, you are guiding your customer during the call and the customer does not want to continue with your questions or wants to speak with your manager.

Objection Script.png

Shows History of Answers

A history of the customer response can be viewed at a press of a button. The transcript is linked to the current Interaction Record and can later be retrieved from the Activity Clipboard of the Interaction Record.

trasnscript partes2.png

You can access the transcript either from the script directly by clicking the “View Transcript” link, or alternatively by clicking the Transcript link in the Interaction Record Activity Clipboard.

transcript 2.png


Actions (Decision Navigation)

Actions are ABAP classes that use system data to calculate values. By importing the confirmed business partner, it is possible to create logic to read system information from SAP (e.g: CRM, ERP) and perform complex validations.


Example: Your company offers discount to people age 60 and older, and you want to create a script that branches to two different questions, depending on the customer’s age. You create an ABAP class that finds the age of the business partner in the system after the business partner is confirmed. You incorporate this ABAP class into the script using an action.

/wp-content/uploads/2015/07/action_742290.png

There are two type of script actions:

Branching Action: When agents use this script, the action branches to the correct set of age-related questions, without the agent having to ask the customer’s age.

Example: You create a branching action that finds the age of the business partner in the system after agents confirm the account, and fits the age into one of two ranges: younger than 60, or 60 and above.

/wp-content/uploads/2015/07/actiondefinition_742282.png

Non-branching Action: class that performs background operations.

Example: You can create an action to determine the price of a product that is offered in a campaign. The result of this action is: “The price for this product is [{queryPrice}.price]”. When agents use the script, the variable is replaced by the actual price, which is the result of this action.

Please take in account that Action ID are not transported. Must be created manually in each system.

Action Class example

You can create Z Class to implement actions by copying any standard action class. For example  “CL_CRM_IC_SCRIPT_ACT_BRANCH2”.


Any Z class should contain implementation of method from Interface:

     <IF_CRM_IC_SCRIPT_ACTION>~ EXECUTE(  )

     <IF_CRM_IC_SCRIPT_PRO2>~ SET_PROCESSOR(  )

The method IF_CRM_IC_SCRIPT_ACTION~EXECUTE should contain your logic for the action.  Finally, export your result with parameter “out_params”

Example:

    IF lv_open_balance IS NOT INITIAL.

      MOVE ‘age’ TO ls_line-key_p.    <– ID of your Action Output Parameter

      MOVE lv_open_balance TO ls_line-value_p.

      APPEND ls_line          TO out_params.

      CLEAR  ls_line.

    ENDIF.

  ENDMETHOD

Tips

Tip you can download and upload your script definition by pressing the following button

/wp-content/uploads/2015/07/upload_741173.png

upload script.png

Transports

Script can be transported only if the status is “Inactive”. The customizing transport will move:

  • Questions
  • Buttons
  • Navigation

Please take in account that “Action” must be created manually in each system and using the same ID than source system.

The transport will not include the action definition, but the script navigation transport will include the action in the navigation (however not the action ID or content).

To report this post you need to login first.

5 Comments

You must be Logged on to comment or reply to a post.

  1. Davin Wakeham

    Hi Lyda,

    Thanks for the fantastic article re Interactive Scripting.

    In your experience, is it possible to raise a popup from within the ->EXECUTE method of an Action?

    I have a requirement to popup a decision table, containing a selection of relevant Statuses, based on the Status Profile of the type of Transaction linked to the Call List, currently being processed.

    Thanks so much.

    Davin

    (0) 
  2. Geevanagari Reddy

    Hi Lyda Osorio,

    Good Day.

    Wonderfull blog for Scripts. Please can i ask you a question.

    As we have configured Marketing attributes for BP and we did the same settings what you have described in the above.

    But still when we come to that question. We are not able to see any Atrribute Set which we have attached in Dynamic Mapping.

    Please can you tell us what we are missing or do we have any java code to be lodaed into SAP.

    Thanks,

    Prabhanjan

    (0) 
    1. Elsy Mena

      Hi Prabhanjan,

      When you add your dynamic answer you will see (as Lydia explained) a yellow line with text “Marketing Attribute will be displayed here when executing the script” if you double click on that, you will see in the lower part of the screen another tab, next to “Question Properties” and it is labeled “Dynamic content Parameters”, there you can select the Attribute set by selecting on a drop down and the attribute name.

      In this way you assign the Marketing attributes to your dynamic answer. Only available information from the system will be displayed there.

      Hope this will help you to solve the issue.

      Best regards,

      Elsy

      (0) 

Leave a Reply