AMS Docs

AI Copilot

AI Copilot is the built-in intelligent assistant for the AMS Platform, powered by OpenAI GPT-4o. It brings generative AI directly into your association workflows — helping staff draft communications, analyse member behaviour, categorise content, and surface actionable predictions without leaving the platform.

⚠️ Configuration RequiredAI Copilot requires an OpenAI API key to be configured in your tenant settings before any AI features become available. Contact your Super Admin or navigate to Settings → Integrations → OpenAI to add your key.

What is AI Copilot?

AI Copilot is a context-aware assistant embedded throughout the AMS interface. Unlike generic chatbots, the Copilot has read access to your tenant's data — it understands your member roster, event history, communication logs, and financial records, enabling it to provide personalised, actionable responses rather than generic text.

Under the hood, Copilot uses GPT-4o via the OpenAI API with carefully crafted system prompts that anchor the model to your organisation's context. All requests pass through AMS's API layer, ensuring tenant data isolation is maintained at all times — your data is never shared across tenants or used to train OpenAI's models (Enterprise API terms apply).

Use Cases

Accessing AI Copilot

AI Copilot is accessible from multiple entry points within the AMS dashboard:

Chat with AI Copilot

The Copilot chat panel provides a conversational interface. You can ask questions, request content, or instruct the AI to perform analysis. The assistant maintains context across a session, so you can refine or iterate on its responses naturally.

Example prompts you can use:

Generating Event Descriptions

When creating a new event, click the AI Generate button in the description field. The Copilot will use the event title, date, location, and type to draft a compelling description. You can provide additional context in the prompt field to steer the tone (formal, casual, promotional).

bash — generate event description
curl -X POST https://yourdomain.ams.hkus1.s4s.host/api/v1/ai/generate-content \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "event_description",
    "context": {
      "title": "Annual Leadership Summit 2026",
      "date": "2026-09-15",
      "location": "Hong Kong Convention Centre",
      "event_type": "conference",
      "tone": "professional"
    }
  }'

Smart Member Segmentation

AI Copilot can analyse your member database and automatically create segments based on behavioural patterns. Navigate to Members → Segments → AI Segment Builder to describe the audience you want in plain English.

Examples:

The Copilot translates these descriptions into database queries, previews the matching count, and saves the segment for use in campaigns and communications.

Predictive Churn Analysis

The churn prediction model analyses engagement signals — login frequency, event attendance, chat activity, and payment history — to assign each member a churn risk score from 0 (no risk) to 100 (high risk). Members with scores above 70 appear in the At-Risk Members dashboard widget.

Admins can configure automated actions to trigger when a member crosses a churn threshold, such as sending a personalised re-engagement email or assigning a staff member to follow up.

Content Summarisation

Submit any long-form text — meeting minutes, survey results, lengthy email threads — to the summarisation endpoint or via the Copilot chat panel. The AI returns a structured summary with key points, decisions, and action items highlighted.

Sentiment Analysis on Feedback

When members submit event feedback or survey responses, AI Copilot can batch-analyse submissions and return an aggregate sentiment score (positive, neutral, negative) along with the most commonly mentioned themes. Access this from Events → [Event] → Feedback → AI Analysis.

API Endpoints

All AI Copilot features are available via the REST API. All endpoints require a valid Bearer token and are subject to AI-specific rate limits (10 requests/minute per tenant).

MethodEndpointDescription
POST/api/v1/ai/generate-contentGenerate text content (descriptions, emails, announcements)
POST/api/v1/ai/categorizeCategorise and tag content automatically
POST/api/v1/ai/recommendationsGet personalised recommendations for a member
POST/api/v1/ai/summarizeSummarise long-form text into key points
POST/api/v1/ai/sentimentAnalyse sentiment of feedback or survey responses
POST/api/v1/ai/chatSend a message to the Copilot chat session
GET/api/v1/ai/churn-riskRetrieve churn risk scores for all members

Code Examples

bash — summarise text
curl -X POST https://yourdomain.ams.hkus1.s4s.host/api/v1/ai/summarize \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Meeting notes from the Board of Directors session on March 1st...",
    "format": "bullet_points",
    "max_points": 5
  }'

# Response
{
  "summary": [
    "Budget for 2026 approved at HKD 2.4M with 15% increase in events allocation",
    "New membership tiers to launch in Q2 pending legal review",
    "Annual conference date confirmed: September 15-17, 2026"
  ],
  "sentiment": "positive",
  "tokens_used": 842
}
bash — member recommendations
curl -X POST https://yourdomain.ams.hkus1.s4s.host/api/v1/ai/recommendations \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "member_id": "mem_01HXYZ",
    "types": ["events", "jobs", "connections"],
    "limit": 5
  }'

Configuration

To enable AI Copilot for your tenant, a Super Admin or Admin must configure the OpenAI API key:

Alternatively, configure via environment variable on the server:

env
OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxx
OPENAI_MODEL=gpt-4o
OPENAI_MAX_TOKENS_PER_REQUEST=4096
AI_MONTHLY_BUDGET_USD=100

Rate Limits for AI Features

AI endpoints have separate, stricter rate limits due to the computational cost of LLM inference:

Endpoint GroupLimitWindow
All AI endpoints10 requestsper minute, per tenant
Content generation50 requestsper hour, per tenant
Chat sessions100 messagesper day, per user
Batch operations (sentiment, categorise)5 requestsper minute, per tenant

When an AI rate limit is exceeded, the API returns 429 Too Many Requests with a Retry-After header indicating when the next request will be accepted. Enterprise plan tenants can request increased limits via the Super Admin panel.