Objective:
To create a GPT called “Sales Support” that can access my company Notion account and search through databases, pages, comments etc. and therefore have a full understanding of my clients, projects, my teams tasks etc.
I want to be able to interface with this GPT through the ChatGPT interface as a bot that will be published privately.
Problem:
I am unable to setup the right schema in the ChatGPT interface.
I am unable to use the ActionsGPT to create it for me as well.
Questions:
Have anyone else solved this before?
Can you share your schema?
Or can you look through my schema and see what is wrong?
I have tried to copy-paste Notions OpenAPI schema from the following github account: APIs-guru. (I am unable to link directly)
This does not work.
I have tried to download the Notions POSTMAN setup and feed both URLS, request JSON etc. to ActionsGPT and have it generate Schema for me.
This does not work.
ActionsGPT schema:
openapi: 3.0.0
info:
title: Notion Search API Integration
description: his API specification outlines the endpoints for interacting with Notion to retrieve files, information,
and perform searches using a custom GPT.
version: 1.0.1
servers:
- url: https://api.notion.com/v1
description: Main Notion API server
paths:
/v1/search:
post:
operationId: searchInNotion
summary: Search in Notion
parameters:
- in: header
name: Notion-Version
schema:
example: 2022-06-28
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
example: searchTerm
sort:
type: object
properties:
direction:
type: string
enum:
- ascending
- descending
timestamp:
type: string
example: last_edited_time
responses:
"200":
description: Search results returned successfully.
content:
application/json:
schema:
type: object
properties:
object:
type: string
example: list
results:
type: array
items:
$ref: "#/components/schemas/PageResult"
next_cursor:
type: string
has_more:
type: boolean
components:
schemas:
PageResult:
type: object
properties:
object:
type: string
example: page
id:
type: string
created_time:
type: string
last_edited_time:
type: string
This is the debu message:
{
"domain": "api.notion.com",
"method": "post",
"path": "/v1/search",
"operation": "searchInNotion",
"operation_hash": "566c1f5d4ba759fe0ea71450ee8edab159d63b3f",
"is_consequential": true,
"params": {
"query": "lifetime deals"
}
}