Ui not rendering when trying to load widget using chatgpt apps sdk

This is my meta data I’m returning for mcp

{
“openai/outputTemplate”: {
“type”: “ui/html”,
“data”: {
“url”: public_url,
“globals”: {
“toolOutput”: {
“response_metadata”: {
“page_limit”: 25,
“request_id”: “0HNH19MQN7F3E:00001767”,
“response_duration_ms”: 750,
“response_timestamp”: “2025-11-20T04:40:48.967Z”
},
“data”: [
{
“id”: “60644eea-6f44-4051-8850-d09043b7b936”,
“file_name”: “Software License Agreement”,
“document_id”: “b5120136-9c32-4463-b4a8-540fdb3cf362”,
“type”: “Software”,
“category”: “Technology”,
“status”: “ACTIVE”,
“review_status”: “COMPLETE”,
“parties”: [
{
“id”: “1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p”,
“name_in_agreement”: “Acme Corporation”
},
{
“id”: “2b3c4d5e-6f7g-8h9i-0j1k-2l3m4n5o6p7q”,
“name_in_agreement”: “Tech Solutions Inc”
}
],
“provisions”: {
“effective_date”: “2025-01-01T00:00:00”,
“expiration_date”: “2026-12-31T00:00:00”,
“execution_date”: “2024-12-15T00:00:00”,
“term_length”: “P730D”,
“annual_agreement_value”: 50000,
“annual_agreement_value_currency_code”: “USD”,
“total_agreement_value”: 100000,
“total_agreement_value_currency_code”: “USD”,
“payment_terms_due_date”: “NET_30”
},
“source_name”: “ESign”,
“source_id”: “55898057-d306-4671-9577-9e847f29261b”,
“metadata”: {
“created_at”: “2024-06-24T05:36:25.235509+00:00”,
“created_by”: “s2s:admi/admi-iam-transforms”,
“modified_at”: “2025-11-15T10:12:19.414717+00:00”,
“modified_by”: “s2s:adm-search/adm-ingestion”
}
},
{
“id”: “2e927376-5770-48a7-90bd-a6099d3f551f”,
“title”: “Enterprise Service Agreement”,
“file_name”: “Enterprise_Service_Agreement”,
“document_id”: “51e0759f-4c55-491e-94bf-5bd61ab11bf3”,
“type”: “ServiceAgreement”,
“category”: “BusinessServices”,
“status”: “ACTIVE”,
“review_status”: “PENDING”,
“parties”: [
{
“id”: “9c70f8ae-43c4-400c-a074-19d37fdfbfd6”,
“name_in_agreement”: “Global Industries Ltd”
},
{
“id”: “3c42aa4d-e6be-43bf-a49e-359058a506da”,
“name_in_agreement”: “Service Provider Co”
}
],
“provisions”: {
“effective_date”: “2025-06-07T00:00:00”,
“expiration_date”: “2025-12-01T00:00:00”,
“execution_date”: “2025-05-30T00:00:00”,
“term_length”: “P177D”,
“annual_agreement_value”: 75000,
“annual_agreement_value_currency_code”: “USD”,
“total_agreement_value”: 75000,
“total_agreement_value_currency_code”: “USD”,
“payment_terms_due_date”: “NET_60”
},
“source_name”: “ESign”,
“source_id”: “26c07db4-22ee-4d56-b7e5-61e46d3beb48”,
“metadata”: {
“created_at”: “2025-03-27T13:35:46.308509+00:00”,
“modified_at”: “2025-11-10T00:12:24.700923+00:00”,
“modified_by”: “s2s:adm-search/adm-ingestion”
}
},
{
“id”: “a1b2c3d4-e5f6-7890-abcd-ef1234567890”,
“title”: “Master Service Agreement”,
“file_name”: “MSA_2025”,
“document_id”: “f9e8d7c6-b5a4-3210-9876-543210fedcba”,
“type”: “MasterServiceAgreement”,
“category”: “Professional Services”,
“status”: “ACTIVE”,
“review_status”: “COMPLETE”,
“parties”: [
{
“id”: “11111111-2222-3333-4444-555555555555”,
“name_in_agreement”: “Consulting Partners LLC”
},
{
“id”: “66666666-7777-8888-9999-000000000000”,
“name_in_agreement”: “Enterprise Client Corp”
}
],
“provisions”: {
“effective_date”: “2025-01-15T00:00:00”,
“expiration_date”: “2028-01-15T00:00:00”,
“execution_date”: “2025-01-10T00:00:00”,
“term_length”: “P1095D”,
“annual_agreement_value”: 250000,
“annual_agreement_value_currency_code”: “USD”,
“total_agreement_value”: 750000,
“total_agreement_value_currency_code”: “USD”,
“payment_terms_due_date”: “NET_45”
},
“source_name”: “ESign”,
“source_id”: “aaaabbbb-cccc-dddd-eeee-ffff00001111”,
“metadata”: {
“created_at”: “2025-01-05T08:00:00.000000+00:00”,
“modified_at”: “2025-11-18T15:30:00.000000+00:00”,
“modified_by”: “s2s:adm-search/adm-ingestion”
}
},
{
“id”: “xyz98765-4321-abcd-ef01-234567890abc”,
“title”: “Non-Disclosure Agreement”,
“file_name”: “NDA_Confidential”,
“document_id”: “12345678-90ab-cdef-0123-456789abcdef”,
“type”: “NDA”,
“category”: “Legal”,
“status”: “INACTIVE”,
“review_status”: “COMPLETE”,
“parties”: [
{
“id”: “party111-2222-3333-4444-555566667777”,
“name_in_agreement”: “Startup Innovations Inc”
},
{
“id”: “party222-3333-4444-5555-666677778888”,
“name_in_agreement”: “Investor Group Partners”
}
],
“provisions”: {
“effective_date”: “2024-03-01T00:00:00”,
“expiration_date”: “2024-12-31T00:00:00”,
“execution_date”: “2024-02-28T00:00:00”,
“term_length”: “P305D”,
“payment_terms_due_date”: “N/A”
},
“source_name”: “CLM”,
“source_id”: “clm-source-id-12345”,
“metadata”: {
“created_at”: “2024-02-20T12:00:00.000000+00:00”,
“modified_at”: “2025-01-05T09:00:00.000000+00:00”,
“modified_by”: “s2s:legal-review/review-system”
}
},
{
“id”: “vendor999-8888-7777-6666-555544443333”,
“title”: “Vendor Purchase Agreement”,
“file_name”: “Vendor_Purchase_2025”,
“document_id”: “vendor-doc-1a2b3c4d5e6f”,
“type”: “PurchaseAgreement”,
“category”: “Procurement”,
“status”: “PENDING”,
“review_status”: “PENDING”,
“parties”: [
{
“id”: “buyer-id-1111-2222-3333-4444”,
“name_in_agreement”: “Manufacturing Co Ltd”
},
{
“id”: “seller-id-5555-6666-7777-8888”,
“name_in_agreement”: “Parts Supplier International”
}
],
“provisions”: {
“effective_date”: “2025-12-01T00:00:00”,
“expiration_date”: “2026-11-30T00:00:00”,
“execution_date”: “2025-11-15T00:00:00”,
“term_length”: “P365D”,
“annual_agreement_value”: 120000,
“annual_agreement_value_currency_code”: “USD”,
“total_agreement_value”: 120000,
“total_agreement_value_currency_code”: “USD”,
“payment_terms_due_date”: “NET_30”
},
“source_name”: “Procurement Portal”,
“source_id”: “procurement-sys-98765”,
“metadata”: {
“created_at”: “2025-11-10T14:00:00.000000+00:00”,
“modified_at”: “2025-11-18T16:45:00.000000+00:00”,
“modified_by”: “s2s:procurement/procurement-team”
}
}
]
}
}
}
},
“openai/toolInvocation/invoking”: “Fetching agreements”,
“openai/toolInvocation/invoked”: “Found 5 agreements”,
“openai/widgetAccessible”: true,
“openai/resultCanProduceWidget”: true
}

Where are you getting this for the openai/outputTemplate? Is this what you are directly sending back in your tool definition? This should be the URI string that references a registered resource on your MCP server ie. ui://widget/some-resource-name.

If done correctly, you should see something along the lines of this for your actions on your App on ChatGPT:

Thanks for replying. This should help me unblock