home
Release NotesRelease ResourcesGeneralDeveloper Hub

General

Adobe Sign ServicesAdvantage Platform AdministrationApprovals for Advantage PlatformApprovals for SalesforceBilling for Advantage PlatformBilling for SalesforceCLM for Advantage PlatformCLM for SalesforceContracts for SalesforceCollaborateComposer for Advantage PlatformComposer for SalesforceContractsConga for Google DocsConga Upgrade ProgramContract Intelligence (Standalone)Conga CopilotCPQ for Advantage PlatformCPQ for SalesforceDeal MaximizerDigital Commerce for Advantage PlatformDigital Commerce for SalesforceDiscovery AI for Advantage PlatformDiscovery AI for SalesforceDocusign ServiceseSignature Integration with Advantage PlatformGridInvoice GenerationMix FormsOrchestrateOrder Management for Advantage PlatformOrder Management for SalesforcePartner Commerce for Advantage PlatformPartner Commerce for SalesforceQuote GenerationSign for Advantage PlatformSign for SalesforceSmart SearchTest AuthorTurboEnginesX-Author for Contracts 1.0 (Classic)X-Author for ContractsX-Author for Contracts Advanced for Advantage PlatformX-Author for Contracts Advanced for SalesforceX-Author for ExcelX-Author for Migration Manager for Advantage PlatformX-Author for Migration ManagerRelease NotesGeneral
search
search
Adobe Sign ServicesAdvantage Platform AdministrationApprovals for Advantage PlatformApprovals for SalesforceBilling for Advantage PlatformBilling for SalesforceCLM for Advantage PlatformCLM for SalesforceContracts for SalesforceCollaborateComposer for Advantage PlatformComposer for SalesforceContractsConga for Google DocsConga Upgrade ProgramContract Intelligence (Standalone)Conga CopilotCPQ for Advantage PlatformCPQ for SalesforceDeal MaximizerDigital Commerce for Advantage PlatformDigital Commerce for SalesforceDiscovery AI for Advantage PlatformDiscovery AI for SalesforceDocusign ServiceseSignature Integration with Advantage PlatformGridInvoice GenerationMix FormsOrchestrateOrder Management for Advantage PlatformOrder Management for SalesforcePartner Commerce for Advantage PlatformPartner Commerce for SalesforceQuote GenerationSign for Advantage PlatformSign for SalesforceSmart SearchTest AuthorTurboEnginesX-Author for Contracts 1.0 (Classic)X-Author for ContractsX-Author for Contracts Advanced for Advantage PlatformX-Author for Contracts Advanced for SalesforceX-Author for ExcelX-Author for Migration Manager for Advantage PlatformX-Author for Migration ManagerRelease NotesGeneral

Conga Product Documentation

Welcome to the new doc site. Some of your old bookmarks will no longer work. Please use the search bar to find your desired topic.

search

General

chevron_left

General Contents

close
  • Features by Release

  • Conga Upgrade Program

  • chevron_right

    System Requirements and Supported Platforms Matrix

  • Managed Packages Dependency Matrix

  • Conga Applications in Salesforce Lightning

  • Salesforce Multi-Factor Authentication Support for Conga Commerce

  • chevron_right

    Conga Product Glossary

  • chevron_right

    Conga Upgrade Assistant

  • chevron_right

    Product Retirement Schedule

  • expand_more

    Developer Center

    • chevron_right

      Approvals for Salesforce REST APIs

    • chevron_right

      Billing for Salesforce REST APIs

    • chevron_right

      CLM for Salesforce REST APIs

    • chevron_right

      CPQ for Salesforce REST APIs

    • chevron_right

      Digital Commerce for Salesforce REST APIs

    • expand_more

      Discovery AI for Salesforce REST APIs

      • chevron_right

        Admin Config

      • chevron_right

        Conga APIs

      • chevron_right

        Documents

      • chevron_right

        Tenant Administration

      • chevron_right

        Config Discovery and Management

      • expand_more

        Document Analysis

        • Get information for an upload request

          get
        • Send information for upload

          post
        • Get job status

          get
        • Update job status

          post
        • Get document status

          get
        • Show document status

          post
        • Get extracted provisions

          get
        • Extract data from natural language

          get
        • Extract date and time from natural language

          get
        • Log feedback event

          post
        • Export a document

          post
        • Retrieve info to download a document

          get
        • Download an exported document to a named location

          post
        • Delete a document

          delete
      • chevron_right

        Insight Analysis and Management

    • chevron_right

      Orchestrate REST APIs

    • chevron_right

      Partner Commerce for Salesforce REST APIs

    • chevron_right

      TurboEngines REST APIs

  1. General
  2. arrow_right
  3. Developer Center
  4. arrow_right
  5. Discovery AI for Salesforce REST APIs

list_altShow Contents

chevron_left

General

Document Analysis

chevron_right
download

Extract date and time from natural language

get
https://IDD_URL/idd/api/{version}
/{tenantId}/analyze/normalizetemplate

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.

Request

Security: API Key

Path Parameters

tenantId
string
required

Tenant name

Examples:
congasfdc

Query Parameters

dataMap
string

Stringified form of JSON representing the dataMap to resolve the template

Examples:
{"Apttus__Contract_Start_Date__c":"2019-10-01","Apttus__Contract_End_Date__c":"2020-10-01"}
options
string

Stringified form of JSON, representing iChronos options

Examples:
{"objectName":"Apttus__APTS_Agreement__c","fullNLUResult":false,"format":"mm-dd-yyyy"}
timezone
string

Time zone SID key

Examples:
America/Los_Angeles
input
string
required

Input for templated phrase to be resolved

Examples:
90 days from the ${Apttus__Contract_Start_Date__c}
instanceurl
string
required

Instance URL

userid
string
required

User ID

Example:
a56392269d970c
username
string
required

User name

Example:
dummyuser

Responses

200

OK

Body

responses
/
200
phrase
string

Input phrase

entities
array[object]
entity
string<string>

Sub-phrase

startIndex
integer<int32>

Start index of the sub-phrase

endIndex
integer<int32>

End index of the sub-phrase

type
string<string>

Entity resolution type

resolution
object

Entity resolution

Auth
:
Server Variables
:
Parameters
:
:
:
:
:
:
:
:
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'
Response Example
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
}
chevron_leftchevron_right
chevron_right

Footer Section

Explore


Conga.com
Legal
Feedback
Contact Support

Copyright © 2025 Conga Corporation • All Rights Reserved

Cookie Notice

We use cookies to improve your experience on our site. To find out more, read our cookie policy.