DocumentationAdding knowledge

Adding Knowledge

A guide to adding knowledge to your Refly assistant through static files, web page synchronization, and journeys.

Introduction

In this guide, we will walk you through three ways to add knowledge to your Refly assistant: uploading static files, synchronizing web pages, and creating journeys. These methods will help you build a comprehensive knowledge base for more accurate and effective customer interactions.

1. Upload Static Files

You can upload various types of files to add knowledge to your assistant. The supported file formats and their respective MIME types are listed below. Ensure that the encoding is either utf-8, utf-16, or ascii.

Supported Files

FILE FORMATMIME TYPE
.ctext/x-c
.cstext/x-csharp
.cpptext/x-c++
.docapplication/msword
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
.htmltext/html
.javatext/x-java
.jsonapplication/json
.mdtext/markdown
.pdfapplication/pdf
.phptext/x-php
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
.pytext/x-python
.pytext/x-script.python
.rbtext/x-ruby
.textext/x-tex
.txttext/plain
.csstext/css
.jstext/javascript
.shapplication/x-sh
.tsapplication/typescript

Steps to Upload Static Files

  1. Navigate to Assistant > Knowledge > Files.
  2. Click on Upload.
  3. Select Upload Files.
  4. Choose the file from your device and upload it.

2. Synchronize Web Pages

You can add knowledge by pasting links to your website. Refly will automatically extract relevant content from these pages and add it to the knowledge base. This is particularly useful for frequently updated content.

Steps to Synchronize Web Pages

  1. Navigate to Assistant > Knowledge > Files.
  2. Click on Upload.
  3. Select Import URL(s).
  4. Paste the link(s) from your website.
  5. If you have an eligible plan, select a refresh rate to keep the content updated.

3. Journeys

Journeys allow you to manage the flow of conversations by creating a flowchart with multiple steps. This feature enables you to provide predefined answers or fetch information from the internet using fetch functions.

Create a Journey from Scratch

  1. Navigate to Assistant > Journeys > My Journeys.
  2. Click on Create Journey.
  3. Define steps and responses using the flowchart interface.
  4. Save and activate the journey.

Import a Pre-Made Journey

  1. Navigate to Assistant > Journeys > Library.
  2. Browse the available pre-made journeys.
  3. Select a journey that suits your needs and import it.
  4. Customize it as necessary and activate it.