Getting Started with Chimpanion
Learn how to integrate Chimpanion's AI-powered onboarding assistant into your application and start creating interactive tours for your users.
Installation
There are two ways to integrate Chimpanion into your application: using our script tag or installing our NPM package.
Add the following script tag to the <head>
section of your HTML:
<script src="https://cdn.chimpanion.com/widget.js?client-id=YOUR_CLIENT_ID"></script>
Replace YOUR_CLIENT_ID
with your client API token from the Chimpanion dashboard.
Account Setup
Create an Account
Sign up for a Chimpanion account at app.chimpanion.com/signup.
Create an Organization
After logging in, create a new organization by clicking on the "Create Organization" button in the dashboard. Fill in your organization details and click "Create".
Generate Client API Token
Navigate to "Settings" → "API Tokens" and click "Generate New Token". Give your token a name (e.g., "Production Website") and click "Generate".
Keep your API token secure! It provides access to your Chimpanion account and should not be shared publicly.
Customization Options
Chimpanion offers several customization options to match your website's design and user experience requirements.
// Using the NPM package
initChimpanion({
clientId: 'YOUR_CLIENT_ID',
// Widget positioning
position: 'bottom-right', // 'bottom-right', 'bottom-left', 'top-right', 'top-left'
// Appearance
theme: 'light', // 'light' or 'dark'
primaryColor: '#ff6b00', // Your brand color
buttonText: 'Need help?', // Custom button text
// Behavior
autoOpen: false, // Automatically open the widget on page load
showOnPaths: ['/dashboard', '/settings'], // Only show on specific paths
hideOnPaths: ['/login', '/signup'], // Hide on specific paths
// Advanced
zIndex: 9999, // Custom z-index for the widget
disableTelemetry: false, // Disable anonymous usage statistics
});
If you're using the script tag, you can pass these options as data attributes:
<script
src="https://cdn.chimpanion.com/widget.js?client-id=YOUR_CLIENT_ID"
data-position="bottom-right"
data-theme="light"
data-primary-color="#ff6b00"
data-button-text="Need help?"
></script>
User Management
Inviting Team Members
You can invite team members to collaborate on creating and managing tours:
- Navigate to "Settings" → "Team Members" in your Chimpanion dashboard
- Click "Invite Team Member"
- Enter the email address of the person you want to invite
- Select their role (Admin, Editor, or Viewer)
- Click "Send Invitation"
User Roles and Permissions
Role | Permissions |
---|---|
Admin | Full access to all features, including organization settings, billing, API tokens, and user management. Can create, edit, and delete tours. |
Editor | Can create, edit, and delete tours. Cannot access organization settings, billing, or user management. |
Viewer | Read-only access to tours. Cannot create, edit, or delete tours. |
Creating and Managing Tours
Tours are step-by-step guides that help users navigate your application. Here's how to create and manage them:
Creating a New Tour
- In your Chimpanion dashboard, navigate to "Tours" and click "Create New Tour"
- Give your tour a name and description
- Select the target URL where the tour will be displayed
- Click "Create Tour" to enter the tour editor
- Use the visual editor to add steps to your tour by clicking on elements in your application
- For each step, add a title, description, and customize the appearance
- Save your tour when finished
Editing and Deleting Tours
To edit an existing tour, navigate to "Tours" in your dashboard, find the tour you want to edit, and click the "Edit" button. Make your changes and save.
To delete a tour, click the "Delete" button next to the tour in the tours list. Confirm the deletion when prompted.
Publishing and Unpublishing Tours
Tours can be in either "Draft" or "Published" state. Only published tours are visible to your users. To publish a tour, click the "Publish" button in the tour editor or on the tours list. To unpublish a tour, click "Unpublish".
NLP Chatbot Integration
Chimpanion includes a powerful NLP (Natural Language Processing) chatbot that can understand user questions and suggest relevant tours or provide direct answers.
How It Works
When users interact with the Chimpanion widget, they can type natural language questions like "How do I create a new project?" or "Where can I find my billing information?". The NLP engine will:
- Analyze the question to understand the user's intent
- Search through your tours and documentation for relevant information
- Suggest the most appropriate tour(s) that answer the question
- Provide direct answers when possible
Training the Chatbot
The chatbot learns from your tours and documentation automatically, but you can improve its accuracy by:
- Creating comprehensive tours with clear titles and descriptions
- Adding alternative phrasings for common questions in the "NLP Training" section
- Reviewing chatbot interactions in the "Conversations" tab and improving responses for common questions
// Customize chatbot behavior
initChimpanion({
clientId: 'YOUR_CLIENT_ID',
chatbot: {
enabled: true,
welcomeMessage: 'Hi there! How can I help you today?',
placeholderText: 'Ask me anything...',
suggestedQuestions: [
'How do I create a new project?',
'Where can I find my billing information?',
'How do I invite team members?'
]
}
});
Advanced Integration
JavaScript API
Chimpanion provides a JavaScript API for programmatic control of the widget:
// Open the widget
window.Chimpanion.open();
// Close the widget
window.Chimpanion.close();
// Toggle the widget
window.Chimpanion.toggle();
// Start a specific tour by ID
window.Chimpanion.startTour('tour-123');
// Check if a tour is currently running
const isRunning = window.Chimpanion.isTourRunning();
// Listen for events
window.Chimpanion.on('tourStart', (tourId) => {
console.log('Tour started:', tourId);
});
window.Chimpanion.on('tourComplete', (tourId) => {
console.log('Tour completed:', tourId);
});
window.Chimpanion.on('tourStep', (tourId, stepIndex) => {
console.log('Tour step:', tourId, stepIndex);
});
window.Chimpanion.on('widgetOpen', () => {
console.log('Widget opened');
});
window.Chimpanion.on('widgetClose', () => {
console.log('Widget closed');
});
window.Chimpanion.on('chatMessage', (message) => {
console.log('Chat message:', message);
});
User Identification
To provide personalized experiences and track user progress across sessions, you can identify users:
// Identify the current user
window.Chimpanion.identify({
id: 'user-123', // Required: Unique user ID
email: 'user@example.com', // Optional: User email
name: 'John Doe', // Optional: User name
role: 'admin', // Optional: User role
groups: ['engineering', 'frontend'], // Optional: User groups
traits: { // Optional: Custom user traits
plan: 'enterprise',
company: 'Acme Inc',
createdAt: '2023-01-01'
}
});
User identification helps track tour completion rates, personalize content, and segment users for targeted tours.
Troubleshooting
Widget Not Appearing
If the Chimpanion widget is not appearing on your site:
- Verify that you've added the correct client ID
- Check if the widget is hidden on the current path using
hideOnPaths
- Check browser console for any JavaScript errors
- Ensure there are no CSS conflicts (try increasing the
zIndex
value)
Tours Not Working Correctly
If tours are not working as expected:
- Verify that the tour is published
- Check if the tour is configured for the correct URL
- Ensure that the elements targeted by the tour still exist on the page
- Try recreating the tour if your UI has changed significantly
Chatbot Not Responding Correctly
If the chatbot is not providing relevant responses:
- Create more comprehensive tours covering common user questions
- Add alternative phrasings in the NLP Training section
- Review conversation logs to identify patterns of misunderstood questions
If you continue to experience issues, please contact our support team at support@chimpanion.com or use the live chat on our website.