WCRE Virtual Assistant self-updates
Weiser Center for Real Estate AI chat widget powered by Maizey.
by Weiser Center for Real Estate · github.com/stockere/wcre-chatbot-plugin
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/stockere/wcre-chatbot-plugin/releases/download/v1.2.0/wcre-chatbot-plugin.zipShips its own WordPress updater (Plugin Update Checker), so new versions show up under Dashboard → Updates.
Readme
WCRE Virtual Assistant
A WordPress plugin that adds an AI-powered chat widget to the Weiser Center for Real Estate website, powered by the University of Michigan's Maizey platform.
What it does
- Displays a floating "💬 Virtual Assistant" button on every page (visible to logged-in WordPress users only during testing)
- Opens a chat window connected to the WCRE Maizey bot
- Answers questions about programs, events, scholarships, alumni engagement, and more
- Routes academic/scheduling questions to Taubman Advising
- All API calls happen server-side — the API token is never exposed to the browser
Requirements
- WordPress 5.8+
- PHP 7.4+
- A Maizey project at umgpt.umich.edu with an API token
- The
WCRE_UMGPT_KEYconstant set inwp-config.php(see below)
Installation
- Download the latest release zip from the Releases page
- In WordPress admin → Plugins → Add New → Upload Plugin
- Upload the zip → Install Now → Activate
- Go to Settings → WCRE Virtual Assistant
- Enter your Maizey Project ID (found in your Maizey project dashboard)
- Save
Configuration
API Token (required)
The API token should be set as a constant in wp-config.php by your server administrator. Add the following line to wp-config.php:
define('WCRE_UMGPT_KEY', 'your-maizey-api-token-here');
Once set, the token field in the plugin settings will show as locked and cannot be overridden via the UI.
If wp-config.php access is not available, the token can also be entered directly in Settings → WCRE Virtual Assistant, though this is less secure as it stores the value in the WordPress database.
Project ID (required)
Enter your Maizey Project ID in Settings → WCRE Virtual Assistant. This is visible anytime in your Maizey project dashboard and is not sensitive.
Making the widget public
By default the widget only appears to logged-in WordPress users. To make it visible to all visitors, remove the is_user_logged_in() checks in wcre-chatbot.php:
- Line in
wp_enqueue_scriptshook - Line in
wp_footerhook - Lines in
wcre_chatbot_init()andwcre_chatbot_ask()AJAX handlers
Also register the nopriv AJAX actions to allow unauthenticated requests:
add_action('wp_ajax_nopriv_wcre_chatbot_init', 'wcre_chatbot_init');
add_action('wp_ajax_nopriv_wcre_chatbot_ask', 'wcre_chatbot_ask');
Releasing updates
- Make your changes
- Bump
WCRE_CHATBOT_VERSIONinwcre-chatbot.php(e.g.1.2.0→1.3.0) - Push to
main - Go to Releases → Create a new release
- Tag it with the version number (e.g.
v1.3.0) - Attach the plugin zip as a release asset
- Publish
WordPress will detect the new version and show an update notification in the Plugins dashboard.
File structure
wcre-chatbot-plugin/
├── wcre-chatbot.php # Main plugin file — settings, enqueue, AJAX handlers
├── css/
│ └── chatbot.css # Widget styles (U-M Navy + Maize color scheme)
├── js/
│ └── chatbot.js # Widget UI — open/close, send messages, display responses
└── lib/
└── plugin-update-checker/ # Bundled library for GitHub-based auto-updates
Data sources
The bot's knowledge comes from data sources configured in the Maizey project dashboard at umgpt.umich.edu. To update what the bot knows, add or edit data sources there — no code changes needed.
Current data sources include:
- WCRE main website pages
- Real Estate Development Minor (Taubman College)
- Faculty and staff
- Events and programming
- Alumni resources
- Scholarships and funding (coming soon)
Contact
Weiser Center for Real Estate — um.realestate@umich.edu
Website — studyrealestate.umich.edu
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.2.0 | Aug 3, 2026 | wcre-chatbot-plugin.zip | 0 |