How to set up and customize your app?

Below is a step-by-step guide on how to set up and customize your app for optimal user interaction.

1. App overview

Sharing your app

Once created, you'll find a link to your app on the overview page. Share this link with others to grant access to your knowledge base outside of the platform.

Adding a conversational widget to the website

Users can integrate a conversational widget into their website by pasting the provided code into the head section. This widget will appear at the bottom right corner of the page, allowing users to engage with the bot.

Collecting user information

Toggle the ‘Collect User Info’ option to prompt users to provide information when interacting with the bot. Users can specify the type of information to collect and provide a title for the user information form. After toggling, click ‘Save’ to apply the changes.

Editing appearance

Click on the ‘Edit your appearance’ button to access the appearance tab, where you can customize the look and feel of the conversational widget. Make desired changes and click ‘Save and update preview’ to apply the modifications.

2. Configuring your bot

Navigate to the ‘Configure Your Bot’ tab to access extensive customization options that enhance the functionality and user experience of your application.

Orchestration method

  • Select your orchestration method: You can choose between using a knowledge base for information-driven responses or employing predefined Flows to guide interactions.

    • Adding resources For knowledge base: Include relevant knowledge bases your bot will refer to for information. Additionally, define the schema to structure the knowledge base for optimal retrieval and presentation of information. For Flow: If opting for Flows, integrate the necessary predefined Flows that your bot will follow during interactions to ensure smooth and guided user experiences.

Adding instructions

Provide specific instructions or guidelines that the bot should follow during user interactions.

Settings

Click on ‘View Settings’ to display the current configuration of your app/bot. This will show all the parameters and settings currently in place.

Auto configuration

To automatically configure your app, click the ‘Start’ button. The system will configure the best settings for your app, which may take 10-15 minutes. You can monitor the configuration accuracy under ‘Bot Performance.’

Manual configuration

You can also manually configure your app by adjusting parameters such as model selection, temperature, context length, etc. After making the necessary adjustments, click ‘Update Settings’ to apply the changes. If you wish to discard changes and return to the original settings, click ‘Default Settings.’

After completing all the necessary adjustments and configurations, click the ‘Save’ button to apply and save your settings.

3. Testing questions

The user can now test their bot's performance using sample questions, known as ‘Golden Questions,’ to evaluate accuracy. After generating the test report, users can view detailed metrics, including the accuracy for each question, the ZBrain answer, and the correct answer provided by the user. They can access the full context used to generate answers, adjust accuracy settings as needed, revert to previous versions if necessary, and delete any versions they have created. This comprehensive testing process ensures the bot meets the desired performance standards.

Add golden questions

Golden questions are sample questions used to test the bot's performance. Follow these steps to add golden questions:

  • Go to the ‘Test Questions’ tab on your dashboard.

  • Enter your test questions and the corresponding correct answers based on your knowledge base.

  • Click the ‘Save’ button to save the test questions and answers.

4. Bot performance

  • After saving the golden questions, click ‘Test Bot Performance’ to check the bot's performance report.

  • After initiating the test, you will be redirected to the ‘Bot Performance’ tab. Here, you can review the performance report generated from the test. Detailed report includes:

    • Accuracy of each question: See the accuracy score for each individual question, including the ZBrain answer and the correct answer provided by you.

    • Default settings in use: View the current settings used during the test.

    • Current version: Identify the version of the bot configuration used for the test.

  • View the entire answer: Click the '+' icon in each row to view the complete answer provided by the bot.

  • If needed, you can adjust the accuracy by clicking the ‘Edit’ button within the accuracy column for each test question and answer.

  • If you want to delete a specific version, use the ‘Delete this Version’ button to remove it from the list.

5. Query history

The ‘Query History’ tab provides valuable insights into the interactions users have had with your bot. Here's how you can leverage this feature:

  • Navigate to the ‘Query History’ tab on your dashboard.

  • On the ‘Query History’ page, you will find the following information:

    • Session IDs: Each interaction session with the bot is assigned a unique session ID, allowing for easy tracking and reference.

    • User information: Users' names and email addresses associated with each session are displayed, providing context for the queries.

    • Prompt count: The number of prompts or interactions within each session is recorded, giving an indication of user engagement and interaction depth.

    • Session time: The duration of each session is logged, helping to analyze the duration of user engagements and overall bot usage patterns.

By reviewing the query history, you can gain insights into user behavior, identify trends, and make informed decisions to optimize the bot performance and user experience.

  1. Reports

    The ‘Reports’ tab on your dashboard provides comprehensive analytics and detailed information about user sessions. Here is a step-by-step guide to help you navigate and utilize the ‘Reports’ tab effectively.

Key analytics

At the top of the Reports page, you will find the following metrics and detailed session data including:

  • Total sessions: The total number of sessions.

  • Average response time: The average time taken to respond to queries.

  • Satisfaction score: The average user satisfaction score.

  • Total token used: The total number of tokens used.

Search functionality

  • Use the search bar to find specific sessions by entering the session ID, user name, or date.

  • Alternatively, you can click the ‘User' drop-down menu and select 'All’ to view all users or choose a specific user.

Viewing session details

The Reports page lists detailed information about each session, including:

  • Session ID: A unique identifier for each session.

  • User name: The name of the user who initiated the session.

  • Session start date and end date: The date and time when the session started and ended.

  • Session time: The total duration of the session.

  • Number of queries: The total number of queries asked during the session.

  • Total response time: The cumulative time taken to respond to all queries in the session.

  • Satisfaction score: The user’s satisfaction rating for the session.

  • Tokens used: The number of tokens consumed during the session.

  • Cost: The cost associated with the session based on token usage.

Sorting data

You can sort the session data based on any of the listed columns to organize the information as needed.

Exporting data

To export the report, follow these steps:

  1. Click on the ‘Export’ button located at the top right of the Reports page.

  2. Select the specific data fields you want to include in the export.

  3. Click on the ‘Export’ button again to generate a CSV file.

  4. The CSV file will be available in your downloads folder.

Reports are useful for monitoring and analyzing user sessions, providing insights into usage patterns and performance metrics. Use search, sort, and export functionalities to manage and review session data effectively.

Last updated