Extracts date and time parameters from natural language queries that contain variables or templates. This API accepts tenant name, template phrase, time zone, data map, and options as input parameters. For example, if you input a query as 6 weeks from contract start date and specify the contract start date as 1/1/2021 in the Data Map field, it returns 2/12/2021. This API works in combination with the "Extract data from natural language" (.../analyze/normalizephrase) API.
Tenant name
Stringified form of JSON representing the dataMap to resolve the template
Stringified form of JSON, representing iChronos options
Input for templated phrase to be resolved
Instance URL
User ID
User name
curl --request GET \--url 'https://idd_url/idd/api/v2/congasfdc/analyze/normalizetemplate?input=90+days+from+the+%24%7BApttus__Contract_Start_Date__c%7D' \--header 'Accept: application/json' \--header 'X-API-Key: 123'
1{2"phrase": "pull up quotes expiring in the next 90 days that are starting next week",3"entities": [4{5"entity": "in the next 90 days",6"startIndex": 24,7"endIndex": 42,8"type": "daterange",9"resolution": {10"values": [11{12"type": "daterange",13"start": "2020-09-11",14"end": "2020-12-10"15}16]17}18},19{20"entity": "starting next week",21"startIndex": 53,22"endIndex": 70,23"type": "daterange",24"resolution": {25"values": [26{27"type": "daterange",28"Mod": "since",29"start": "2020-09-14"30}31],32"altValues": [33{34"type": "daterange",35"start": "2020-09-14",36"end": "2020-09-20",37"notes": "starting"38}39]40}41}42]43}