Benchmark

Claude Code is 4.2x faster & 3.2x cheaper with CustomGPT.ai plugin. See the report →

CustomGPT.ai Blog

Managing Projects in Custom GPT with the CustomGPT.ai RAG API

Managing Projects in Custom GPT

CustomGPT.ai enhances the chatbot experience by offering advanced tools for project management. Using the CustomGPT.ai RAG API and accompanying command line tools, developers can perform various operations such as creating projects, listing and searching/filtering projects, updating project details, and deleting items. The flexibility of the CustomGPT SDK and RAG API allows developers to utilize built-in tools directly in their environment, streamlining the process and saving time.

In this article, we will explore how to manage your CustomGPT.ai projects using these command line tools and RAG API, building on a basic CustomGPT.ai platform overview. We will cover key operations and provide examples to help you get started.

What Are Command Line Tools?

Command line tools are programs executed from a text-based interface called the command line or terminal. These tools are run by typing specific commands, often followed by parameters or options, into the terminal. They are commonly used for automation, scripting, and performing repetitive tasks efficiently.

Benefits of Command Line Tools

The following are the benefits of direct execution from the Command Line:

Efficiency

Command line tools allow users to quickly execute tasks without needing a graphical user interface (GUI). This can save time and resources, particularly for repetitive or batch operations.

Automation

They can be easily integrated into scripts and automated workflows. This is especially useful for tasks that need to be performed regularly or on a schedule.

Speed

Running tasks directly from the command line can be faster than using a GUI, as it eliminates the need for navigating through menus and windows.

Resource Management

Command line tools often use fewer system resources compared to their GUI counterparts, making them ideal for servers or systems with limited resources.

Key Operations for Project Management Using CustomGPT.ai Command Line Tools

Managing projects efficiently is crucial for the success of any chatbot implementation. CustomGPT.ai offers several command-line tools to simplify various project management tasks. These tools, documented in the CustomGPT.ai RAG API and SDK, allow users to create, list, update, and delete project items effortlessly, including deleting a project when needed.

Following are command line tools CustomGPT.ai offers for project management in its cookbook:

deleter.py

The purpose of this tool is to delete an entire chatbot project.

  • Function: Removes a specified project by its ID.
  • Use Case: Ideal for cleaning up outdated or unnecessary projects.
customgpt api managing projects rehosted 1

This command line tool is designed for managing projects on the CustomGPT.ai platform by deleting all projects except those listed in an exclusion list. 

  • It starts by importing necessary libraries and defines a function, get_all_projects, to fetch all project IDs with pagination support. 
  • The delete_selected_projects function then deletes each project, skipping those in the exclude_ids list, with a 1-second pause between deletions to manage rate limits. 
  • The main function prompts the user for their RAG API key and initiates the deletion process, allowing for efficient project cleanup while preserving specified projects.

page_deleter.py

The purpose of this command line tool is to delete specific pages within a project.

  • Function: Deletes individual pages from a project based on their IDs.
  • Use Case: Useful for maintaining a project by removing obsolete or redundant pages.
customgpt api managing projects rehosted 2

This command line tool manages pages in a CustomGPT.ai project by deleting those with a specified string in their URL. 

  • It starts by importing libraries and defines delete_page, which deletes a page by ID, handling rate limits by retrying if needed. 
  • The delete_pages_containing_string function fetches all pages using list_pages, then deletes pages matching the string, respecting rate limits by pausing between deletions. The list_pages function retrieves all pages, handling pagination. 
  • The main function prompts the user for their RAG API key, project ID, and search string, then starts the deletion process. This tool efficiently manages and cleans project pages based on URL criteria.

project_lister.py

The purpose of this tool is To list all chatbot projects within an account.

  • Function: Retrieves and displays a list of all projects under your account.
  • Use Case: Helps in managing multiple projects by providing an overview and project IDs for further actions.
customgpt api managing projects rehosted 3

This command line script fetches all projects from the CustomGPT.ai platform using pagination. 

  • It starts by defining the fetch_all_projects function, which takes the base URL and RAG API key as inputs. Inside the function, it sets up the request headers with the RAG API key and initiates a loop to fetch project data page by page. 
  • The URL is updated with the current page number for each request. If the response is successful, the script processes the project data and adds project IDs and names to the all_projects list
  • The loop continues until there are no more projects to fetch (when next_page_url is None). 
  • Finally, it prints the list of all fetched projects. The script prompts the user for their RAG API key and calls the function with the specified URL to display the results.

source_deleter.py

The purpose of this tool is to delete files based on specific strings.

  • Function: Searches for files within a project that contains a specified string in their filenames and deletes them.
  • Use Case: Efficient for batch deletion of files, such as removing all files with a certain extension or keyword in their names.
customgpt api managing projects rehosted 4

This script streamlines file management within a CustomGPT.ai project by enabling users to delete files containing a specified string in their filename, which is especially useful in projects like a custom chatbot for Zendesk. By inputting their RAG API key and project ID, users can swiftly remove files matching the provided search string. This streamlined process enhances project organization and efficiency, ensuring that irrelevant files are promptly eliminated from the project repository.

convo_clear.py

The purpose of this command tool is to clear all conversations within a chatbot project.

  • Function: Deletes all conversation data from a project.
  • Use Case: Useful for resetting a project to a clean state, especially before a new deployment or testing phase.
customgpt api managing projects rehosted 5

This script facilitates the management of conversations within a CustomGPT.ai project by allowing users to delete conversations based on their session IDs. Upon providing the RAG API key and project ID, users can initiate the deletion process, removing all conversations associated with the specified project. The script efficiently handles rate limits and retries for seamless deletion, enhancing project organization and cleanliness.

Execute the Command line Tools

Now let’s execute the convo_clearer command line tool in a few simple easy steps:

  • Download the Python script from the CustomGPT.ai Cookbook.
  • Open the command prompt or terminal window on your system. 
  • Use the cd command to navigate to the directory where the Python script is located. 
  • Define the path as shown below and write the name of the Python file “convo_clearer.py”. Press Enter.
customgpt api managing projects rehosted 6
  • Now write the RAG API key and your Project ID. Press Enter.
  • And your conversation will be deleted successfully.
customgpt api managing projects rehosted 7

By following the steps outlined above, you can similarly run other command-line tools provided by CustomGPT.ai and efficiently manage your projects. These tools streamline tasks such as deleting files, pages, or conversations, enhancing your workflow and project management capabilities.

How CustomGPT.ai Command Line Tools Benefit Users

CustomGPT.ai above mentioned command line offers several advantages:

  • Simplicity: Users can perform complex operations with simple commands, making it easier to manage projects without needing deep technical knowledge.
  • Flexibility: The tools can be adapted and integrated into existing workflows, allowing users to tailor their use to specific project requirements.
  • Speed and Efficiency: Tasks like creating, updating, deleting, and listing projects can be done quickly and efficiently from the command line.
  • Automation: By incorporating these tools into scripts, users can automate routine tasks, freeing up time for more strategic activities.
  • Direct Control: Users have direct control over their projects, enabling them to make changes and updates in real time.

Overall, command line tools provided by CustomGPT.ai empower users to manage their chatbot projects more effectively, offering a streamlined, efficient, and customizable approach to project management.

Conclusion

In summary, CustomGPT.ai’s command-line tools provide a seamless solution for project management tasks, offering efficient ways to handle various operations. With functionalities like deleting files, pages, and conversations, users can streamline their workflow and elevate their project management experience. To explore these capabilities firsthand, sign up for CustomGPT.ai’s 7-day free trial today to explore these powerful capabilities and enhance your project management workflow today!

Frequently Asked Questions

How can you automate project administration instead of doing everything in the dashboard?

If you repeat the same project tasks often, scripting is usually the better option. The page specifically highlights command line tools for efficiency, automation, speed, and scheduled or repetitive work, including creating, listing, updating, and deleting projects. A practical starting point is to automate list or search tasks first, then add create and update flows, and finally cleanup jobs for old projects. As Stephanie Warlick said, “Check out CustomGPT.ai where you can dump all your knowledge to automate proposals, customer inquiries and the knowledge base that exists in your head so your team can execute without you.”

How hard is it to connect a project to your own website or support app?

You can connect a project through the OpenAI-compatible REST API at /v1/chat/completions, so your website or support app can handle the interface while the project supplies retrieval-backed answers in the background. Deployment options also include an embed widget, live chat, search bar, API, and MCP server, which gives you more than one way to surface the same knowledge. Rosemary Brisco of ToTheWeb described the core benefit this way: “CustomGPT.ai can work with your own data making it perfect for deep research. The output is naturally human-friendly.”

Do you need a separate website for every client if you manage multiple chatbot projects?

No. The project tools are designed to let you create, list, update, and delete multiple projects, so a single internal workflow can manage many separate client setups. In practice, teams usually keep each client’s sources and settings in a separate project, then decide whether to expose those projects through one shared app, separate embeds, or another deployment method such as live chat or search. The key point is that project separation helps keep content and management cleaner; it does not require a separate website for every client.

How should you organize multiple internal knowledge bases across teams or departments?

A practical structure is to split projects when teams need different source content, personas, branding, or reporting. That approach keeps retrieval tighter and makes updates easier to manage than putting every department into one large project. The platform supports multi-source ingestion, custom personas and branding, and analytics with conversation tracking, which makes separate team-focused projects workable. The Kendall Project offers a useful signal that multiple configurations can be managed effectively: “We love CustomGPT.ai. It’s a fantastic Chat GPT tool kit that has allowed us to create a ‘lab’ for testing AI models. The results? High accuracy and efficiency leave people asking, ‘How did you do it?’ We’ve tested over 30 models with hundreds of iterations using CustomGPT.ai.”

Why do two API-connected projects give different answers?

Two projects can return different answers even when you call them through the same endpoint, because the output depends on each project’s ingested sources, instructions, and conversation context. The API is OpenAI-compatible, but the retrieval layer still reflects the project behind the call. If you want closer answer parity, keep the same documents, configuration, and prompt rules across both projects before comparing results. A relevant credential here is that CustomGPT.ai outperformed OpenAI in a RAG accuracy benchmark, which reinforces that retrieval setup has a major effect on answer quality.

What should you check first when a project API request fails?

Start with three basics: authentication, the endpoint, and the request format. The provided materials confirm that the API uses key-based authentication and an OpenAI-compatible REST interface at /v1/chat/completions. For project-management tasks, compare your request with the documented create, list, update, and delete patterns in the API or SDK examples. If those pieces are correct and the request still fails, the next step is to inspect the exact response and the API documentation for the specific operation you are calling.

When should you delete an entire project instead of keeping it active?

Delete an entire project when it is outdated or no longer needed. The documented deleter.py workflow is meant for that cleanup job: it fetches project IDs with pagination, deletes selected projects, can skip IDs on an exclusion list, and includes a 1-second pause between deletions to help manage rate limits. If you still expect to use a project, it is usually better to keep it available for future updates rather than remove it outright.

Related Resources

These resources expand on working with the CustomGPT.ai API across different languages and integrations.

  • Swift API Integration — Learn how to connect Swift applications to the CustomGPT.ai API for retrieval-augmented generation workflows.
  • Delete Agents With Python — This guide shows how to remove an agent using the CustomGPT.ai RAG API with the Python SDK.
  • JSON API Integration — Explore how to work with the CustomGPT.ai API using JSON for flexible application and service integration.
  • Integrations Overview — Browse the full range of tools and platforms that connect with CustomGPT.ai.
  • Go API Integration — See how to use Go with the CustomGPT.ai API to build efficient RAG-powered applications.

3x productivity.
Cut costs in half.

Launch a custom AI agent in minutes.

Instantly access all your data.
Automate customer service.
Streamline employee training.
Accelerate research.
Gain customer insights.

Try 100% free. Cancel anytime.