All Collections
Integrations & API
Requests API
Requests API: Sample Call Structures
Requests API: Sample Call Structures
Updated over a week ago

All of the examples below are written using a test company named Blanca Peak. For each example, additions are bold.

Visit our API Docs under Requests for detailed libraries, custom header examples and sample code.

Custom headers for any API call

  • accept: application/json

  • content-type: application/json

  • x-api-key: YOUR API KEY

Simplest Auto-Trigger Request Structure

Sample Interaction

Corresponding API Call

Jane Customer {janecustomer@example.com} had a phone interaction with Paul Agent {paulagent@blancapeak.com} today.

This interaction was attached to Case # 123456, and marked as Closed following this phone call.

{

"customer": {

"name": "Jane",

},

"ext_interaction_id": "123456",

"employee": {

},

"channel": "phone"

}

Auto-Trigger Request Structure for Agents without Email Addresses

Sample Interaction

Corresponding API Call

Jane Customer {janecustomer@example.com} had a phone interaction with Paul Agent {Employee ID ABC789} today.

This interaction was attached to Case # 123456, and marked as Closed following this phone call.

{

"customer": {

"name": "Jane",

},

"ext_interaction_id": "123456",

"employee": {

"custom_id": "ABC789"

},

"channel": "phone"

}

Transaction IDs make it easier for you to identify the interaction that triggered the feedback request in your source system. Therefore, you should pick the most granular transaction ID possible. This typically means an interaction ID or case ID, but an Order ID can also be used.

Auto-Trigger Request Structure to Enable Business Users to Link Back to a Corresponding Ticket number in your CRM

Often, when reading Connect feedback, business users want to know more about what happened on the interaction before coaching or praising the agent. To enable business users to link back to the original case/ticket record directly from the Connect stream, include the URL in the API call.

Sample Interaction

Corresponding API Call

Jane Customer {janecustomer@example.com} had a phone interaction with Paul Agent {paulagent@blancapeak.com} today.

This interaction was attached to Case # 123456, and marked as Closed following the call.

Details on Case #123456 can be accessed in Blanca Peak’s CRM at www.samplecrm.com/caseid=123456

{

"customer": {

"name": "Jane",

},

"ext_interaction_id": "123456",

"employee": {

},

"channel": "phone",

}

Once this information is included in the API call, each piece of feedback in the Stella Connect stream will include a link back to your system.

Auto-Trigger Request Structure Including Interaction Tags

Sending interaction tags alongside the interaction details will enable more actionable reporting inside Stella Connect.

Screen_Shot_2017-06-02_at_12.40.00_PM.png

Sample Interaction

Corresponding API Call

Jane Customer {janecustomer@example.com} had a phone interaction with Paul Agent {paulagent@blancapeak.com} today.

This interaction was attached to Case # 123456, and marked as Closed following the call.

Details on Case #123456 can be accessed in Blanca Peak’s CRM at www.samplecrm.com/caseid=123456

Blanca Peak’s system marked this case with the tags Exchange and Backorder based on the phone queue the interaction came in on and notes taken by the agent before closing the case.

{

"customer": {

"name": "Jane",

},

"tags": ["Exchange",”Backorder”],

"ext_interaction_id": "123456",

"employee": {

},

"channel": "phone",

"external_url": "www.samplecrm.com/caseid=123456"

}


Once you begin sending interaction tags, new features will be enabled inside Connect:

  1. Each Connect request will be displayed with the corresponding tags, making it easier for you to understand what drove the customer’s experience

  2. Team Member Trends dashboards will highlight each agent’s top-performing and bottom-performing tags, helping you to coach more effectively

  3. A “Tags” dashboard will identify tags that consistently drive positive or negative feedback, helping you to identify themes for training or areas that require updated processes

Auto-Trigger Request Structure Specifying a Brand

For companies using Stella Connect’s multi-brand feature, each request must be associated with a brand label.

Brand labels are specified in the Company Info section of the Stella Connect Admin Console during the onboarding process.

Sample Interaction

Corresponding API Call

Jane Customer {janecustomer@example.com} had a phone interaction with Paul Agent {paulagent@blancapeak.com} today for the brand Blanca Kids {brand label blancakids}

This interaction was attached to Case # 123456, and marked as Closed following this phone call.

Details on Case #123456 can be accessed in Blanca Peak’s CRM at www.samplecrm.com/caseid=123456

Blanca Peak’s system marked this case with the tags Exchange and Backorder based on the phone queue the interaction came in on and notes taken by the agent before closing the case.

{

"customer": {

"name": "Jane",

},

"tags": ["Exchange",”Backorder”],

"brand": "blancakids",

"ext_interaction_id": "123456",

"employee": {

},

"channel": "phone",

}

Auto-Trigger Request Structure Marking an Interaction with a Do Not Send Flag

Although we recommend that each interaction result in a Stella Connect request, there may be some instances in which you do not want to send a Stella Connect request. For example, you may not want to send a Stella Connect request if a customer called to unsubscribe from your email market list.

To enable these exceptions, you would establish a workflow rule or trigger condition to flag these interactions with a do_not_send flag in in the API call.

Sample Interaction

Corresponding API Call

Jane Customer {janecustomer@example.com} had a phone interaction with Paul Agent {paulagent@blancapeak.com} today for the brand Blanca Kids {brand label blancakids}.

This interaction was attached to Case # 123456, and marked as Closed following this phone call.

Details on Case #123456 can be accessed in Blanca Peak’s CRM at www.samplecrm.com/caseid=123456

Blanca Peak’s system marked this case with the tag “Unsubscribe”. According to Blanca Peak’s business rules, interactions with this tag should not trigger a Stella Connect request.

{

"customer": {

"name": "Jane",

},

"do_not_send": true,

"tags": ["Unsubscribe"],

"brand": "blancakids",

"ext_interaction_id": "123456",

"employee": {

},

"channel": "phone",

}

Auto-Trigger Request Structure Specifying a Language and Country

For companies that support their customers in multiple languages, each request should include language and country values so the request can go out in the specified language. This also requires setup within Stella Connect before it will work.

Sample Interaction

Corresponding API Call

Jane Customer {janecustomer@example.com} who lives in Montreal, Canada, had a phone interaction with Paul Agent {paulagent@blancapeak.com} today in French

This interaction was attached to Case # 123456, and marked as Closed following this phone call.

Details on Case #123456 can be accessed in Blanca Peak’s CRM at www.samplecrm.com/caseid=123456

Blanca Peak’s system marked this case with the tags Exchange and Backorder based on the phone queue the interaction came in on and notes taken by the agent before closing the case.

{

"customer": {

"name": "Jane",

},

"tags": ["Exchange",”Backorder”],

"language": "fr-ca",

"country": "CA",

"ext_interaction_id": "123456",

"employee": {

},

"channel": "phone",

}

Auto-Trigger Request Structure for Service Recovery

After a service recovery interaction, your team lead will close the case in your internal system which will trigger a follow-up Connect request to the customer. This request will enable you to measure whether you have reversed the customer’s negative sentiment.

Sample Interaction

Corresponding API Call

Jane Customer {janecustomer@example.com} had a successful service recovery call with Paul Agent {paulagent@blancapeak.com}

This is the request ID of the response that is being recovered. This would have been provided in the data return API.

This interaction was attached to Case # 123456, and marked as Closed.

Details on Case #123456 can be accessed in Blanca Peak’s CRM at www.samplecrm.com/caseid=123456

Blanca Peak’s system marked this case with the tags compensation provided based on actions taken by the agent before closing the service recovery case.

{

"do_not_send": false,

"tags": ["compensation provided"],

"employee": {

},

"initial_feedback_request_id": "54bd2af9-28cb-48df-8c60-cd27de080cd4",

"ext_interaction_id": "123456",

"external_url": “www.samplecrm.com/caseid=123456""

}

Did this answer your question?