Prerequisites
✅ You must have already connected your Zendesk account via OAuth✅ You have configured an AI agent for your Zendesk installation
✅ You have admin access to your Zendesk account
Step 1: Get Your Configuration Values
-
Start your Rails application:
-
Navigate to Zendesk Installations:
- Go to
http://localhost:3000/zendesk_installations - Find your Zendesk installation in the list
- Go to
- Click “API Key” link for your installation
-
Copy these 3 values (you’ll need them later):
- ✅ API Key (long hex string)
- ✅ Installation ID (starts with a number or UUID)
- ✅ API Base URL (e.g.,
http://localhost:3000or your production URL)
Step 2: Create the Zendesk App Package
Option A: Using Command Line (Recommended)
Option B: Manual (macOS/Windows/Linux)
macOS Finder:- Navigate to
public/zendeskfolder - Select
manifest.jsonandassets/folder - Right-click → “Compress 2 Items”
- Rename the ZIP to
support-unicorn-app.zip
- Navigate to
public/zendeskfolder - Select
manifest.jsonandassets/folder - Right-click → “Send to” → “Compressed (zipped) folder”
- Name it
support-unicorn-app.zip
Step 3: Upload to Zendesk
3.1 Access Zendesk Admin Center
-
Log in to your Zendesk account
- Go to:
https://YOUR-SUBDOMAIN.zendesk.com
- Go to:
-
Navigate to Admin Center
- Click the admin gear icon (⚙️) in the left sidebar
- Or go directly to:
https://YOUR-SUBDOMAIN.zendesk.com/admin
3.2 Navigate to Apps Section
- In the Admin Center, look for the left sidebar menu
- Click “Apps and integrations” (or “Apps & Integrations”)
- Click “Apps” → “Zendesk Support apps”
3.3 Upload Private App
- On the Zendesk Support apps page, click “Upload private app” button (top-right)
-
Select your ZIP file:
- Click “Choose File” or drag-and-drop
- Select
support-unicorn-app.zip - Click “Upload”
-
Wait for validation:
- Zendesk will validate your app manifest
- This usually takes 5-10 seconds
- You should see a success message
Step 4: Configure App Settings
After uploading, Zendesk will show you the app installation screen.4.1 App Information Screen
You’ll see:- App Name: Support Unicorn AI Agent
- Author: Support Unicorn
- Version: 1.0.0
- Description: AI agent sidebar for ticket management
4.2 Configure App Parameters
Enter the configuration values from Step 1:-
api_key:
-
installation_id:
-
api_base_url:
⚠️ Important: Do NOT include a trailing slash!
- ✅ Correct:
http://localhost:3000 - ❌ Wrong:
http://localhost:3000/
- ✅ Correct:
4.3 Complete Installation
- Click “Install” button
- Wait for confirmation message: “App installed successfully”
- Click “Done” or close the modal
Step 5: Enable the App
-
Go back to Zendesk Support apps page
- Admin Center → Apps and integrations → Apps → Zendesk Support apps
- Find “Support Unicorn AI Agent” in the list
-
Check the status:
- If it shows “Enabled” - you’re good!
- If it shows “Disabled” - click the toggle to enable it
Step 6: Test the Sidebar App
6.1 Open a Ticket
-
Go to your Zendesk Support interface:
- Click the “Support” tab in the top navigation
- Open any ticket (create a new test ticket if needed)
6.2 Find the Sidebar
- Look at the right sidebar of the ticket view
-
Scroll down - you should see a new section called:
-
You should see:
- 🟢 AI Status Badge (green = enabled, red = disabled)
- 👤 Agent Name (if configured)
- ⏰ Last Interaction timestamp
- 💬 Message Count
- 🔘 Toggle Button (Enable AI / Disable AI)
Troubleshooting
App not appearing in sidebar
- Check app is enabled in Zendesk
- Hard refresh the ticket page:
Cmd+Shift+R(Mac) orCtrl+Shift+R(Windows) - Check browser console for errors
Failed to load AI status
-
Check API Base URL is accessible:
- If using
http://localhost:3000, Zendesk cannot reach it from the cloud - Use ngrok for local testing:
- If using
- Verify API Base URL has no trailing slash
- Check Rails server is running
Invalid API key
- Re-copy the API key from Zendesk Installations page
- Update app settings in Zendesk
- Ensure no extra spaces in the key
No AI agent configured
- Go to:
http://localhost:3000/zendesk_installations - Click “Configure” on your installation
- Select an AI agent from the dropdown
- Click “Save”
For Production Deployment
When you’re ready to deploy to production:-
Update API Base URL:
- Change from ngrok/localhost to your production URL
- Example:
https://support.yourcompany.com
-
Re-upload app with production URL:
- Option 1: Update the installed app’s configuration
- Option 2: Re-upload the ZIP with updated settings
-
Verify webhook URL:
- Admin Center → Apps → Webhooks
- Should point to your production domain
Next Steps
Zendesk Integration
Learn more about Zendesk integration