# Submit Artifact

**Action ID:** `submit_artifact`

## Description

Submit artifact to the platform GPTsDex

## Input Schema

```json
{
  "description": "Submit artifact node input.",
  "properties": {
    "accessToken": {
      "title": "Access Token",
      "type": "string"
    },
    "title": {
      "title": "Title",
      "type": "string"
    },
    "url": {
      "title": "URL",
      "type": "string"
    },
    "description": {
      "title": "Description",
      "type": "string"
    },
    "thumbnail": {
      "title": "Thumbnail",
      "type": "string"
    },
    "video": {
      "default": null,
      "description": "Video",
      "title": "Video",
      "type": "string"
    },
    "category": {
      "description": "Category",
      "items": {
        "type": "string"
      },
      "title": "Category",
      "type": "array"
    },
    "author": {
      "title": "Author",
      "type": "string"
    }
  },
  "required": [
    "accessToken",
    "title",
    "url",
    "description",
    "thumbnail",
    "category",
    "author"
  ],
  "title": "SubmitArtifactInput",
  "type": "object"
}
```

## Output Schema

```json
{
  "description": "Submit artifact node output.",
  "properties": {
    "message": {
      "title": "Message",
      "type": "string"
    },
    "output": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Output"
    }
  },
  "required": [
    "message"
  ],
  "title": "SubmitArtifactOutput",
  "type": "object"
}
```

## How It Works

This node submits AI-generated artifacts (such as GPTs, custom assistants, or AI tools) to the GPTsDex platform. It takes your artifact metadata including title, description, URL, thumbnail, and categorization information, authenticates with your GPTsDex access token, and publishes the artifact to the platform's marketplace. The node handles the API communication with GPTsDex and returns a confirmation message along with the submitted artifact details.

## Usage Examples

### Example 1: Submit a Custom GPT

**Input:**

```
accessToken: "gptsdex_token_abc123xyz"
title: "Marketing Copy Generator"
url: "https://chat.openai.com/g/g-ABC123DEF"
description: "An AI assistant specialized in creating compelling marketing copy for various industries"
thumbnail: "https://example.com/marketing-gpt-thumbnail.png"
category: ["Marketing", "Writing", "Business"]
author: "John Smith"
```

**Output:**

```
message: "Artifact submitted successfully"
output:
  id: "artifact_789xyz"
  status: "published"
  url: "https://gptsdex.com/artifacts/artifact_789xyz"
```

### Example 2: Submit with Video Demo

**Input:**

```
accessToken: "gptsdex_token_xyz789abc"
title: "Code Review Assistant"
url: "https://chat.openai.com/g/g-CODE123REV"
description: "Expert AI that reviews code for bugs, security issues, and best practices across multiple programming languages"
thumbnail: "https://example.com/code-review-thumbnail.jpg"
video: "https://example.com/code-review-demo.mp4"
category: ["Development", "Code Quality", "Tools"]
author: "Tech Innovators Inc"
```

**Output:**

```
message: "Artifact submitted successfully with video"
output:
  id: "artifact_456def"
  status: "published"
  video_processed: true
```

### Example 3: Submit Educational Tool

**Input:**

```
accessToken: "gptsdex_token_edu456"
title: "Math Tutor Pro"
url: "https://chat.openai.com/g/g-MATH789TUT"
description: "Interactive math tutor that provides step-by-step explanations for algebra, calculus, and statistics problems"
thumbnail: "https://example.com/math-tutor-thumb.png"
category: ["Education", "Mathematics", "Tutoring"]
author: "EduTech Solutions"
```

**Output:**

```
message: "Artifact submitted successfully"
output:
  id: "artifact_edu123"
  status: "under_review"
  estimated_review_time: "24 hours"
```

## Common Use Cases

* **GPT Marketplace Publishing**: Submit custom GPTs created in ChatGPT to the GPTsDex marketplace for wider distribution
* **AI Tool Promotion**: Showcase your AI-powered tools and assistants to reach a broader audience of potential users
* **Portfolio Building**: Create a portfolio of AI artifacts demonstrating your expertise in prompt engineering and AI development
* **Monetization**: List premium AI assistants on GPTsDex to generate revenue from downloads or subscriptions
* **Community Sharing**: Share useful AI tools with the community to help solve common problems or enhance productivity
* **Brand Visibility**: Increase your brand or company visibility by publishing branded AI assistants and tools
* **Product Launches**: Announce and distribute new AI products or features through the GPTsDex platform

## Error Handling

| Error Type              | Cause                                                  | Solution                                                                                           |
| ----------------------- | ------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |
| Invalid Access Token    | Access token is expired, invalid, or missing           | Verify your GPTsDex access token is current and properly formatted                                 |
| URL Not Accessible      | The artifact URL cannot be accessed or verified        | Ensure the URL is publicly accessible and points to a valid GPT or AI tool                         |
| Invalid Thumbnail       | Thumbnail image URL is broken or in unsupported format | Use a valid image URL in JPG, PNG, or WebP format that is publicly accessible                      |
| Missing Required Fields | One or more required fields are empty or null          | Check that all required fields (title, url, description, thumbnail, category, author) are provided |
| Duplicate Artifact      | An artifact with the same URL already exists           | Check if you've already submitted this artifact or use a different URL                             |
| Category Not Found      | Selected category doesn't exist in GPTsDex             | Use valid category names from GPTsDex's category list                                              |
| Rate Limit Exceeded     | Too many submissions in a short time period            | Wait before submitting more artifacts or contact GPTsDex to increase your rate limit               |

## Notes

* **Access Token**: Obtain your GPTsDex access token from your account settings on the GPTsDex platform before using this node
* **Thumbnail Requirements**: Use high-quality square images (minimum 512x512px) for thumbnails to ensure good presentation on the platform
* **Video Enhancement**: Including a demo video significantly increases engagement and helps users understand your artifact's capabilities
* **Category Selection**: Choose relevant categories to improve discoverability and help users find your artifact more easily
* **Description Quality**: Write clear, detailed descriptions that explain the value and use cases of your artifact
* **URL Validation**: Ensure your artifact URL is publicly accessible and doesn't require special permissions or authentication
* **Author Attribution**: Use your real name or brand name to build credibility and trust with potential users
* **Review Process**: Some artifacts may undergo review before being published, especially high-visibility or premium listings


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.agenticflow.ai/reference/nodes/submit_artifact.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
