Jump to: navigation, search

Twitter Block

Use the Twitter block to handle incoming Twitter interactions. Twitter handles can be monitored through pre-defined events and messages filtered based on keywords to determine the next action.

The Twitter block has the following properties:

Name Property

Find this property's details under Common Properties.

Block Notes Property

Find this property's details under Common Properties.

Exceptions Property

Find this property's details under Common Properties.

Condition Property

Find this property's details under Common Properties.

Logging Details Property

Find this property's details under Common Properties.

Log Level Property

Find this property's details under Common Properties.

Result Property

Click the down arrow under Value and select the variable to hold the raw data returned by the Social Messaging Server.

Application Property

Specify the Application Name of the Social Messaging Server.

  1. Click under Value to display the ... button.
  2. Click the ... button to open the Application Selection dialog box.
  3. Click the down arrow opposite Type and select Literal, Variable, or Configuration Server.
  4. If you selected Configuration Server, select the Social Messaging Server application from the drop-down of the Value field and click OK.
  5. If you selected Literal or Variable, enter the literal or select a variable, and click OK.

Method Name Property

Select the method to be invoked. This is a mandatory field and the value can be a variable, literal, or method name enum (SendMessage, DestroyMessage, GetUserInfo, RetweetTweet, FollowUser, UnfollowUser, GetFriends, GetFollowState, CreateFavorite, DestroyFavorite, GetMediaContent).

[+] The input and output parameters for the different methods are listed here (mandatory parameters are in bold font).

Method Parameters Property

List of input parameters populated automatically based on the selected method in the Method Name property. The automatically populated values can be edited, if required. You can also add the new parameters by clicking the ADD button. The Method Parameters (key and value) can be specified either as a literal or variable.

Composer supports special keys such as, TWITTER_CHANNEL (equivalent to _genesys.ixn.interactions[system.InteractionID].udata['_umsChannel'] in the code sample), which can be used to map values for the parameters.

Tip
Refer to the table in the Method Name Property section above for more information on custom parameters.

Service Timeout Property

Specify the timeout in seconds to invoke the ESP service on a timeout error. The default value is 10 seconds. You can specify the timeout value either as a literal or variable, but it must be a positive integer.

Enable Status Property

Find this property's details under Common Properties.


[+] Twitter Block Code Sample


This page was last edited on November 22, 2017, at 13:48.
Comments or questions about this documentation? Contact us for support!