AI writer & chatbot SaaS script: 9 things to check before you launch
Last updated

AI writer and chatbot scripts all promise the same list: templates, chat with your PDFs, a website bot, credits. The differences show up after launch. A customer's request runs before anyone checks the balance and the provider bill arrives anyway. Answers about a policy document can't be traced back to the policy. The chatbot widget breaks the styling of a customer's site, or answers on a site it was never installed on. Or the "streaming" only works on a server with websockets you don't have. This guide covers nine things worth testing before you choose a self-hosted AI SaaS script, and how Promptly, built on Laravel 12 and Filament 4, handles each one.
One note before the list: every screenshot below was produced by Promptly's offline demo model, which needs no API key. On a live site you connect your own AI provider and pay that provider for what your customers use.

1. Can you choose, and change, the AI provider?
A script hard-wired to one vendor ties your margins to that vendor's prices. Check whether the provider is a setting or a code change, whether you can offer cheaper and stronger models side by side, and whether the product works at all before you add a key.
In Promptly the AI is always presented as "DEV3 AI". Behind it, an admin chooses an OpenAI-compatible, Anthropic or Google driver and pastes the key, which is stored encrypted. The OpenAI-compatible base URL is a setting too, so you can point it at any Chat Completions-compatible service, including one you host yourself. Each model your customers pick, such as "DEV3 AI Swift" or "DEV3 AI Pro", is a row that maps to a provider model id with its own credit multiplier, so a premium model can cost more credits than a fast one. Until you add a key, an offline demo model writes realistic drafts and cited answers in English and Arabic with no network calls, which is how you can install and demo everything for free. The real drivers follow the providers' documented APIs but haven't been run against live accounts, so start with a low-limit key.

2. Does streaming work on ordinary hosting?
Watching an answer appear word by word is what makes an AI product feel fast. Many scripts get it from websockets or a Node.js service, which shared hosting doesn't offer.
Promptly streams with server-sent events over a normal POST request. The response switches off PHP output buffering and compression and tells Nginx not to buffer, so it works with PHP-FPM on shared hosting, and the same stream shape is used for every driver. The writer, the long-form editor's "continue writing" and document chat all stream, and a 3D neural orb in the brief panel pulses while tokens arrive. If a proxy still buffers, the FAQ lists the setting to turn off.

3. How are credits metered, and can a workspace overspend?
Your provider charges per token, but customers think in words and plans. Look for a conversion you control, a check before the request runs, and a record of every charge you can show a customer who disputes their balance.
Promptly converts tokens to credits with a feature multiplier (writer, editor actions, document chat, chatbot replies, indexing) and the model's multiplier, all set by the admin. Before any request, an estimate must fit the workspace's balance. Afterwards the real token count is charged as one row in an append-only ledger, with the feature, model, member and balance after it. A debit locks the workspace and charges at most what is left, so the balance never goes below zero. Owners are emailed at 20% and 5% left, and at zero the app shows an "Upgrade plan" link instead of failing silently.

4. Are document answers grounded, and can you check them?
"Chat with your documents" is only useful if the answer comes from the documents and you can see where. Ask for an answer about a specific page and check whether the product shows the source, the page and the passage.
Promptly reads PDFs page by page and keeps the headings of Word files and web pages. It cuts the text into chunks of about 900 characters that never span two pages, each with its nearest heading. The best-matching chunks become numbered context, DEV3 AI must cite them as [1], [2] and so on, and Promptly keeps only the citations the answer really used. Each citation opens to show the document, page, section and quoted passage. Built-in embeddings work offline; for semantic search you can connect an OpenAI-compatible embeddings endpoint. Search runs in PHP without a vector database, which suits business knowledge bases of thousands of chunks rather than millions. The uploaded files themselves stay private: each workspace's files sit in their own folder on a private disk under random names, and only signed-in members of that workspace can download the original.

5. Is the website chatbot safe to embed on a customer's site?
The widget runs on sites you don't control. It must not clash with their CSS, it must not answer for sites it wasn't installed on, and one visitor must never see another visitor's conversation.
Promptly's widget installs with one script tag and renders inside a Shadow DOM, so the host page's styles can't touch it. Each bot has a list of allowed domains, and requests from anywhere else get a 403. Starting a chat issues a signed visitor token that expires after 24 hours and is tied to one conversation of one bot, and every message, poll and lead form needs it. The endpoints are rate-limited per bot and visitor IP, and every visitor message goes through moderation and credit checks like any other request.

6. What happens when the bot can't help?
A bot that loops on "I don't know" loses the lead. Check for a hand-over to a person, a shared inbox for the team, and a way to collect contact details.
When a visitor asks for a person, Promptly's bot says the team has been told and flags the conversation in the team inbox, where it appears with the visitor's page, device and the bot's cited answers. A team reply shows up in the visitor's widget within a few seconds. On plans that include lead capture, the bot asks for the fields you choose after a set number of questions, or at hand-over. Leads go to a pipeline from new to won with tags, notes and CSV export, and the owner is emailed. If a workspace runs out of credits, the bot doesn't go silent: it switches to a fallback that flags the chat and asks for contact details.

7. Are workspaces, plans and billing built in?
Selling AI as a service needs more than an AI feature: sign-up, teams, plans, invoices and a view of your revenue.
Every Promptly sign-up creates a workspace with the default plan's credits and a welcome bonus. Workspaces have members with roles, email invitations and a switcher, so an agency can run one per client. Plans carry a monthly credit allowance and limits on chatbots, sources, documents and members, with monthly and yearly prices, trials and PDF invoices, and the allowance follows a plan change at once. The admin dashboard shows MRR, the plan mix and the top workspaces by usage. Payments run through Stripe, PayPal, Razorpay or a simulated gateway for demos. Plan features such as lead capture, API access, premium models and removing the "Powered by" badge are checked on the server, and a locked feature shows an upgrade link. Roles are enforced the same way, so a viewer really is read-only. An upgrade tops the balance up to the new allowance, a downgrade keeps what is left up to the new allowance, and a super admin can grant extra credits as an audit-logged top-up. One limit is worth knowing: the billing page's usage meter counts calendar months, while the credit period follows each workspace's renewal date.

8. How do you catch abuse?
An open sign-up form plus an AI key is an invitation for spam, scraping and prompt injection, all on your bill.
Promptly scans every prompt and widget message before any credit is spent. Terms on your blocked list are refused and raise a high-severity flag. Prompt-injection phrases, card and ID numbers (stored masked), link spam and sudden rate spikes are flagged but allowed, so a false positive doesn't block a paying customer. Flags wait in a review queue, where the super admin or a support role can dismiss them or suspend the workspace, which stops its AI and its chatbots.

9. Can you install it without being a Laravel developer?
A script you can't install is a project you have to hire for. Check whether it ships with vendor/ and built assets, whether there's a web installer, and what the server really needs.
Promptly's download includes vendor/ and the compiled assets, so you need PHP 8.2+ and MySQL, MariaDB or SQLite, but not Composer or Node.js. Visit /install and a five-step wizard checks the requirements, tests the database, loads demo or empty data, creates your admin and locks itself; php artisan dev3:install does the same over SSH. One cron entry renews credit periods and processes document indexing on hosts without a queue worker. The web installer seeds a lighter demo than the command line, to stay inside shared-hosting time limits.

See it in action
The video tour starts on the neural-orb home page and its live demo box, then streams a template in the writer and saves it to the editor. It asks a question of the knowledge base and opens a citation, builds a chatbot, chats as a visitor, captures a lead and answers it from the inbox. It ends on credits, billing and the super-admin panel.
What else to compare
- Writing tools: 50 templates in seven categories, 10 tones, 10 output languages, brand voice, history and favourites, and a long-form editor with selection actions and Markdown, HTML or text export.
- Languages: English and Arabic with a full right-to-left layout on the website, both panels and the widget. The offline demo model writes only English and Arabic.
- API: a REST API with workspace tokens to generate content, ask documents and read leads, metered like the app, on plans with API access. Blocked content gets a clear 422.
- Security: two-factor sign-in with an authenticator app (plus 8 recovery codes) or email codes, which you can require for staff in the admin panel; private knowledge files; and backups that include them.
- What's not included: no image generation (the prompt library's image prompts are text only), no self-serve credit-pack checkout, and the payment gateways and AI drivers haven't been run against live accounts.
- Quality: Promptly 1.0.1 shipped with 132 Pest tests covering the credit ledger, metering, citations, widget security, private uploads, plan features and roles, Larastan level 6 with no errors, and 117 pages checked in a headless browser with no console errors.
Promptly costs $29 on DEV3. Instead of a live demo, the listing has 118 grouped screenshots and two video tours, and the "How it's built" section explains the architecture in more detail.
Live “try DEV3 AI” box — Visitors type a request and watch the answer stream in word by word while the neural orb pulses with every token.


