Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When you configure a Data Connector applet to get data from or send data to an external web service, you can send static values to that web service in the request object. You can also send values that other applets in the interaction plan have collected and stored in Data Sources—Data Sources are specific to each interaction so you cannot know their values when you configure the Data Connector applet. For example, you can pass the contents of a Data Source that contains the caller's order ID, and use this order ID to get information about the caller's order from the configured web service.

...

Expand
titleExample

An interaction plan has an IVR Collect Digit String applet and a Data Connector applet. The IVR Collect Digit String applet collects a caller's order ID (1234567) and stores the value in an IVR Slot called OrderID. This IVRSlot is made available to the Data Source, IVRSlot|OrderID.

The Data Connector applet is configured to use a Web Service interface. The Interaction Definition can use the Data source Source in the following ways:

  • <Url>http://example.com/order/$(IVRSlot|OrderID)/</Url>.
  • <Header><Key>OrderId</Key><Value>$(IVRSlot|OrderID)</Value><Header>
  • <Body><![CDATA[$(IVRSlot|OrderID)]]></Body>

When the call reaches this applet, $(IVRSlot|OrderID) is replaced with 1234567 and the web service processes the value accordingly.

...