Skip to content

membranehq/documents-example

Repository files navigation

Content Import Example

This is an application showcasing how you can implement Importing Content and Files into a knowledge base using Integration.app. The app is built with Next.js/React.

Demo

Prerequisites

  • Node.js 18+
  • Integration.app workspace credentials (Workspace Key and Secret). Get credentials from the workspace settings.
  • MongoDB connection string (We provide a docker-compose file to spin up a local MongoDB instance. See Using mongodb via Docker for more details.)
  • AWS credentials (for S3)

Setup

1. Clone repository & Install dependencies:

npm install
# or
yarn install

2. Set up environment variables file:

# Copy the sample environment file
cp .env-sample .env

3. Add your credentials to the .env file:

Note: The following credentials are optional but enable additional features:

  • AWS S3: Enables file download and storage in S3
  • Unstructured.io: Enables text extraction from PDFs, Word documents, and other file formats

4. Add the Scenario to Your Workspace:

This application relies on predefined flows, actions, and other primitives, all organized within a Scenario template

To use the same flows and actions in your workspace, navigate to the Continuously Import Content to My App Scenario and click the "Add to App" button. This will add the required flows and actions, data sources and other primitives to your workspace.

5. Configure your apps

The Continuously Import Content to My App Scenario adds 8 apps to your workspace and for most apps to work, you'll need to provide configuration parameters. The configuration guide for each apps explains how to get the credentials needed. See video below for an overview of the configuration process:

dem0-new.mp4

6. Start the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 in your browser.

Using mongodb via Docker

Prerequisites

  • Docker and Docker Compose installed on your machine

Setting up MongoDB

If you want to use MongoDB via Docker, you can do so by running the following command:

docker-compose up

You can now use the MONGODB_URI environment variable to connect to the database:

MONGODB_URI=mongodb://admin:password123@localhost:27017/knowledge

Todos

  • Get events working for all apps

License

MIT

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages