Learn how to connect your APIs to GenerativeAgent with API Connections
Access the API Integration Hub
Select or Upload Your API Specification
Configure Basic Details
Configure the API Source
Set Up Request and Response Interfaces
Test and Validate
Link to Functions
Simplify Field Names
Flatten Complex Structures
Add Clear Descriptions
Remove Optional Fields
"additionalProperties": false
to prevent unexpected datarequest
: The request object provided by GenerativeAgent. This will match your defined schema.
context
: The context object passed in by the ASAPP system. This currently contains the following values:
externalConversationId
: The id of the conversation as provided by your system when creating the conversation.asapp.conversationId
: The id of the conversation as generated by ASAPP.Example Context JSON
context.[value]
and request.[value]
.Basic Field Mapping
Data Formatting
Conditional Logic
Test Various Scenarios
Validate Error Cases
Use Sandbox Environment
Focus on Essential Data
Use Clear Data Types
Standardize Formats
clientApiCall.data
: The raw JSON response from the API.clientApiCall.data
.Test Different Response Types
Validate Data Formatting
Edge Cases
x-redact
to a field in the Request Schema or Response Schema. You will need to save the API connection to apply the changes. This will redact the fields in the Conversation Explorer as well.
You can redact fields in the raw API request and response, by flagging the fields in the relevant API Spec:
Update Passenger Name (Simple mapping)
Request Configuration
Response Configuration
Lookup Flight Status (Complex mapping)
Request Configuration
Response Configuration
Appointment Lookup (Date Formatting)
Request Configuration
Response Configuration