Download the PHP package martink/chatgpt-site-assistant without Composer
On this page you can find all versions of the php package martink/chatgpt-site-assistant. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download martink/chatgpt-site-assistant
More information about martink/chatgpt-site-assistant
Files in martink/chatgpt-site-assistant
Package chatgpt-site-assistant
Short Description A Laravel package to scan website routes and connect to ChatGPT as a smart assistant.
License MIT
Informations about the package chatgpt-site-assistant
ChatGPT Site Assistant
A Laravel package that scans your website's sitemap, extracts content, and connects to OpenAI's ChatGPT API to create an intelligent assistant that understands your site's actual content.
📦 Installation
Publish Config and Migrations
Then run:
⚙️ Configuration
Add your OpenAI API settings to your .env file:
You can override these in the published config file:
config/chatgpt-site-assistant.php
🧠 Usage
Step 1: Scan Your Website's Sitemap
This command will:
-
Read your sitemap.
-
Visit each route listed.
-
Extract the textual content.
- Store it in the
website_contentstable for future use.
Step 2: Query the Assistant
Make a POST request to:
Example JSON body:
The assistant uses your site's content to respond contextually via ChatGPT.
🧩 Components
-
Service: ChatGptService.php – handles OpenAI API interaction.
-
Command:
chatgpt:scan-sitemap– crawls and stores your site's content. -
Controller: ChatGptController.php – exposes the assistant via API.
- Model: WebsiteContent.php – stores extracted text per URL.
✅ Laravel Compatibility
Laravel 8, 9, 10, and 12 supported.
PHP 8.0 – 8.4 supported.
📄 License
This package is open-source software licensed under the MIT license.
All versions of chatgpt-site-assistant with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0