AI Assistants
Create and manage intelligent AI assistants powered by your knowledge bases
AI Assistants (also called “Apps” in KnowFlow) are the interface between your knowledge bases and your users. They use the information you’ve stored to provide helpful, accurate responses across various platforms.
Understanding AI Assistants
AI Assistants in KnowFlow are customizable chatbots that leverage your knowledge bases to answer questions and provide assistance. You can deploy these assistants across multiple platforms to meet your users where they are.
Key Concepts
AI Assistant
The intelligent interface that interacts with users, powered by your knowledge
Knowledge Connection
The link between your assistant and one or more knowledge bases
Deployment
How your assistant is made available to users (website widget, API, etc.)
Prompt Engineering
Customizing how your assistant responds using system prompts
Creating an AI Assistant
Navigate to Apps
From your organization dashboard, click on Apps in the left sidebar.
Create New Assistant
Click the Create App button in the upper right corner.
Select Type
Choose the type of assistant you want to create:
- Web Chat: Embeddable chat widget for your website
- API Endpoint: Direct API access for custom integrations
- Discord Bot: Integration with Discord servers
- Slack Bot: Integration with Slack organizations
- Microsoft Teams: Integration with Microsoft Teams
Basic Configuration
Enter the following information:
- Name: A descriptive name for your assistant
- Description: (Optional) A brief description of its purpose
- Icon/Avatar: Upload a custom icon or choose from available options
Connect Knowledge Bases
Select one or more knowledge bases to power your assistant:
- Click Add Knowledge Base
- Select from your available knowledge bases
- Set priority levels if using multiple knowledge bases
Configure Settings
Adjust various settings according to your needs:
- AI Model: Select the underlying AI model (e.g., GPT-4, Claude, etc.)
- Language: Set the primary language for responses
- Message History: Configure how many previous messages to maintain as context
- Maximum Response Length: Set character limits for responses
Save
Click Create to finish setting up your AI assistant.
Deployment Options
Web Chat
Embed your AI assistant directly on your website:
Configure Widget
Customize the appearance of your widget:
- Theme: Light, dark, or custom colors
- Position: Bottom-right, bottom-left, etc.
- Initial State: Expanded or collapsed
- Welcome Message: Customize the initial greeting
- Widget Icon: Upload a custom icon
Get Embed Code
Navigate to the Embed tab and copy the provided JavaScript snippet:
Add to Website
Paste the JavaScript snippet into your website’s HTML, just before the closing </body>
tag.
Test Implementation
Visit your website to verify the widget appears and functions correctly.
Discord Integration
Connect your AI assistant to Discord:
Configure Bot
In the Discord tab of your app:
- Set bot username and description
- Upload a custom avatar
- Configure command prefixes (defaults to
/ask
)
Connect to Discord
- Click Connect to Discord
- Log in to Discord (if not already)
- Select the server to add the bot to
- Approve the permissions requested
Set Channel Permissions
Configure which channels the bot can access and respond in.
Test Bot
In your Discord server, use the configured command (e.g., /ask How do I reset my password?
) to test the bot.
Slack Integration
Add your AI assistant to Slack:
Configure Bot
In the Slack tab of your app:
- Set bot name and description
- Upload a custom avatar
- Configure command trigger (defaults to
/knowflow
)
Connect to Slack
- Click Connect to Slack
- Log in to Slack (if not already)
- Select the organization to add the bot to
- Approve the permissions requested
Configure Channels
Choose which channels the bot should be active in.
Test Bot
In your Slack organization, use the configured command (e.g., /knowflow How do I reset my password?
) to test the bot.
API Access
Use your AI assistant programmatically via API:
Generate API Key
In the API tab of your app, click Generate API Key.
Configure Access
Set rate limits, IP restrictions, and other security settings.
Get Documentation
Review the API documentation to understand available endpoints and parameters.
Implement
Use the provided API key and endpoints in your application.
Example Request:
Customizing Assistant Behavior
Prompt Engineering
Fine-tune how your assistant responds:
- Go to the Prompt tab in your app settings
- Customize the system prompt to guide your assistant’s behavior
- Use placeholders like
{{knowledge}}
where retrieved information should be inserted - Save your changes
Example system prompt:
Response Templates
Create templated responses for common queries:
- Go to the Templates tab in your app settings
- Click Add Template
- Enter a trigger phrase or question pattern
- Enter the response template
- Save your template
Fallback Configuration
Set up fallback options when your assistant can’t answer:
- Go to the Fallbacks tab
- Configure:
- Custom “I don’t know” messages
- Human handoff options
- Alternative suggestions
- Feedback collection
Monitoring and Analytics
Conversation History
View all interactions with your assistant:
- Go to the Conversations tab
- Browse through conversation threads
- Filter by date, user, or content
- Export conversations for further analysis
Performance Metrics
Track how well your assistant is performing:
- Go to the Analytics tab
- View metrics such as:
- Total conversations
- Average conversation length
- Response time
- User satisfaction ratings
- Knowledge base coverage
Knowledge Gaps
Identify areas where your assistant needs improvement:
- Go to the Knowledge Gaps tab
- View questions the assistant couldn’t answer confidently
- Use these insights to update your knowledge bases
Best Practices
- Start focused: Begin with a specific use case and expand as you gain confidence
- Test thoroughly: Use the chat interface to test various scenarios before deploying
- Iterative improvement: Regularly review conversations and refine your assistant
- Clear expectations: Set appropriate welcome messages to guide users on what they can ask
- Use multiple knowledge bases: Connect specialized knowledge bases for different topics
- Monitor continuously: Regularly check analytics to identify improvement opportunities