Multi-platform Integrations

GPTs Store Integration

Leverage your custom AI chatbot as the backend to supply context via API responses to the GPTs store. This setup allows your chatbot to provide the necessary context for your GPT to accurately respond to queries within the GPTs store. Follow the steps outlined below to implement this feature.


Basic Settings

Begin by copying the settings below to initiate the integration process: Website Gpts Configuration

Configure the API Call

Setting Up the Action

Below is the JSON schema to configure your API after clicking the "Actions" button. Use the API endpoint https://api.chat-data.com/api/v2/query-knowledge-base/${chatbotId} to fetch context information from your chatbot. Replace {chatbotId} in the URL with your actual chatbot ID.

{
  "openapi": "3.1.0",
  "info": {
    "title": "Get information from your custom chatbot",
    "description": "Retrieve the information of your custom chatbot in json format",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.chat-data.com"
    }
  ],
  "paths": {
    "/api/v2/query-knowledge-base/{chatbotId}": {
      "post": {
        "description": "Get the information of your customer chatbot in json format",
        "operationId": "GetStoreInfo",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "The user query about the chatbot, which could be either customer serivce query or product query.",
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}

Authenticating the API Call

For authentication, select the API Key as the authorization method and choose the Bearer token option as shown below: Customer Chatbot API Key

Retrieve your Chat Data API key from the "API Keys" section on your account page. Custom GPT Api KeyGen

Preparing for Publication

After configuring your settings, opt to publish to "Everyone," then click the "Save and Confirm" button. This action will make your GPTs available in the public GPTs store. It is recommended for an online clothing store to select either the "Lifestyle" or "Other" category. Custom GPT Submit

Publishing Your GPT to the Store

Publishing your GPT enhances your brand’s digital presence and expands your potential customer base by making it discoverable to users worldwide through the GPTs platform. Custom GPT Shown In GPTs Store

Frequently Asked Questions

What is the GPTs Store integration used for?

This integration uses your Chat Data chatbot as the backend context source for a custom GPT. the GPT can call the Chat Data knowledge-base API so it can answer user queries using the information stored in your chatbot.

How does the GPT call the Chat Data backend?

The guide says to configure an Action in the GPT builder using the `https://api.chat-data.com/api/v2/query-knowledge-base/{chatbotId}` endpoint. The OpenAPI schema on the page defines a POST request that sends a `query` field so the GPT can fetch context from the chatbot.

How do I authenticate the GPT action with Chat Data?

To authenticate with an API key using the Bearer token option. It also explains that the required Chat Data API key can be retrieved from the `API Keys` section of your Chat Data account page.

How do I publish the GPT after setup?

After the settings and API action are configured, the guide says to publish the GPT to `Everyone` and then use `Save and Confirm`. It explains that this makes the GPT publicly available in the GPTs store and improves discoverability for your brand.

Previous
n8n Integration