- Contents
Interaction Connect Help
Create Response Macros
Requirements: See Working with Response Management.
You can insert placeholder fields in a response item that are replaced when the response is used. Placeholder fields can be replaced with a constant, interaction attribute or another stored response.
Macros take this form [field:data]. Field identifies the response macro type. Data is optional. There are three types of macros: constant, attribute, and response.
System
System macros do not depend on the dynamic context of the interaction into which you are inserting it. Here are the currently supported system macros.
Field |
Value |
User Name |
The display name of the logged on user, most likely your display name. |
Current Date |
The short form of the current date based on the language used in your country or region. |
Current Time |
The short form of the current time based on the language used in your country or region. |
Example
Macro: My name is [UserName]. Today is [Date], how can I help you?
Result: My name is Mary Jones. Today is 9/15/2015, how can I help you?
Attribute
Attribute macros substitute a value of an attribute based on your current interaction. In the response item, Attribute macros must have a field name of Attribute; data is the attribute name.
Note: To use an interaction attribute in a Response Macro, you need the Substitute Queue Columns Access Control right for the interaction. If you do not have the appropriate right, the value does not replace the attribute.
Example
Macro: Hello, [Attribute:Eic_RemoteName]. How can I help you?
Result: Hello, John Smith. How can I help you?
Response
Response macros insert another response item into your response. If the inserted response contains macros, the inserted response contains the appropriate values. Response macros have a field name of Response. The data is the Shortcut name for the specified response item.
Note: Response substitution is not supported if you drag and drop the response item to an interaction. Also, if there is more than one response item with the same Shortcut name, the first one located is used; you do not get to select one.
Example
Shortcut for the inserted response item: signoff
Inserted response item: Again, my name is [UserName]. Thanks for chatting!
Macro: Glad to help. [Response:signoff]
Result: Glad to help. Again, my name is Mary Jones. Thanks for chatting!
Related Topics