AI Assistant Documentation

Complete setup and usage guide for ai.shieldstack.dev

Overview

AI Assistant is a web-based chat interface that allows users to interact with AI models through text and voice input. The application is hosted at ai.shieldstack.dev and provides a modern, responsive interface for AI-powered conversations.

Key Information:
  • URL: https://ai.shieldstack.dev
  • Server Location: /var/www/ai
  • SSL Certificate: Let's Encrypt (Auto-renewing)
  • Web Server: Nginx
  • Date Deployed: October 14, 2025

Features

1. Text Chat Interface

A modern, responsive chat interface with real-time message streaming and markdown support.

2. Voice Input (Speech-to-Text)

Click the microphone button to speak your questions. The application uses the browser's built-in Web Speech API to convert speech to text.

3. Configurable AI Backend

Supports multiple AI API formats:

4. Conversation History

The application maintains conversation context for coherent multi-turn dialogues.

5. Markdown Formatting

Supports formatted text, code blocks, and inline code for better readability.

Usage Guide

Getting Started

  1. Navigate to https://ai.shieldstack.dev
  2. Click the settings icon (gear) in the top right
  3. Configure your AI API endpoint and credentials
  4. Start chatting!

Using Text Input

  1. Type your message in the text area at the bottom
  2. Press Enter (or click the send button) to send
  3. Wait for the AI to respond

Using Voice Input

  1. Click the microphone button
  2. Speak your question clearly
  3. The speech will be automatically converted to text
  4. The message will be sent automatically when you stop speaking
Note: Voice input requires a browser that supports the Web Speech API (Chrome, Edge, Safari). Make sure to allow microphone permissions when prompted.

Configuration

API Settings

To configure the AI backend, click the settings icon and fill in the following:

Setting Description Example
API Endpoint The URL of your AI API https://api.openai.com/v1/chat/completions
API Key Your authentication key (optional) sk-...
API Format The API format to use openai, anthropic, or custom
Model Name The AI model to use gpt-3.5-turbo, claude-3-opus, etc.

Default Configuration

The application comes pre-configured with the following defaults:

API Endpoint: https://qqnqlyiy8exjax-5000.proxy.runpod.net/v1/chat/completions
API Format: openai
Model: gpt-3.5-turbo
Security Note: API keys are stored in your browser's localStorage. Never share your API keys or use them on untrusted devices.

Technical Details

Directory Structure

/var/www/ai/
├── index.html              # Main chat interface
├── assets/
│   ├── css/
│   │   └── style.css      # Styling
│   └── js/
│       └── chat.js        # Chat functionality
└── documents/
    └── index.html         # This documentation

Nginx Configuration

Config File: /etc/nginx/conf.d/ai.shieldstack.dev.conf

Key features:

SSL Certificate

Provider Let's Encrypt
Certificate Location /etc/letsencrypt/live/ai.shieldstack.dev/
Expiration January 12, 2026 (Auto-renews)
Renewal Method Certbot automated renewal

Technology Stack

Browser Compatibility

Feature Chrome Firefox Safari Edge
Text Chat
Voice Input
LocalStorage

Troubleshooting

Common Issues

1. "API request failed" Error

Cause: Incorrect API endpoint or authentication.

Solution:

2. Microphone Not Working

Cause: Browser permissions or unsupported browser.

Solution:

3. Slow Response Times

Cause: API server latency or network issues.

Solution:

4. Settings Not Saving

Cause: Browser localStorage disabled or private browsing mode.

Solution:

Server-Side Issues

Nginx Not Starting

sudo systemctl status nginx
sudo nginx -t
sudo systemctl restart nginx

SSL Certificate Issues

# Test certificate
sudo certbot certificates

# Renew certificate manually
sudo certbot renew

# Force renewal
sudo certbot renew --force-renewal

Check Logs

# Nginx access log
sudo tail -f /var/log/nginx/ai.shieldstack.dev-access.log

# Nginx error log
sudo tail -f /var/log/nginx/ai.shieldstack.dev-error.log

Maintenance

Regular Tasks

Backup Recommendations

File Permissions

sudo chown -R appsforte:appsforte /var/www/ai
sudo chmod -R 755 /var/www/ai
sudo chmod 644 /var/www/ai/index.html

Changelog

Version 1.0 - October 14, 2025

← Back to AI Assistant