Get value from contact list in Architect Outbound call flow

HI All

I want to get value from the csv file that uploaded to Contact List in Architect Outbound Call Flow,
Please advise how to do it ?

Regards

Husein

1 Like

Hello,

I think you will have to leverage a Genesys Cloud data action integration and add a Data Action to Get the contact (using the API endpoint: GET /api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}).

From your Architect Outbound Call flow, you can then invoke this Data Action (once the Data Action you have created is published) using a Call Data Action block.

The Get Contact API endpoint (and the Data Action) will need to get the Contact List ID (id of the Calling List) and the Contact ID (id of the contact in the Calling List) as input parameters.
These two values are available as Architect built-in variables in an Architect Outbound Call flow: Call.ContactList.id and Call.ContactId

Regarding the Data Action and the column value you want to retrieve from your contact (which was initially in your csv), let's assume you had a column named CustomerName and a column named CustomerType, that you want to retrieve in your Architect Outbound flow.

The Data Action input contract would look like this:

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "properties": {
    "contactListId": {
      "type": "string"
    },
    "contactId": {
      "type": "string"
    }
  },
  "additionalProperties": true
}

The Data Action output contract would look like this:

{
  "title": "Get Info from Contact List",
  "description": "Returns Contact List Entry",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "properties": {
    "data": {
      "description": "Example contact columns",
      "type": "object",
      "properties": {
        "CustomerName": {
          "type": "string"
        },
        "CustomerType": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}

The Request configuration would look like this:

{
  "requestUrlTemplate": "/api/v2/outbound/contactlists/${input.contactlistId}/contacts/${input.contactId}",
  "requestType": "GET",
  "headers": {
    "Content-Type": "application/json"
  },
  "requestTemplate": "${input.rawRequest}"
}

And the Response configuration would look like this:

{
  "translationMap": {},
  "translationMapDefaults": {},
  "successTemplate": "${rawResult}"
}

You just need to modify the Output contract based on the name of the columns you want to retrieve in your flow (or add some more).

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.