Giter Club home page Giter Club logo

auto-gpt-notion's Introduction

Contributors Forks Stargazers Issues License Discord


Logo

Auto-GPT-Notion

Power Auto-GPT with Notion!

Table of Contents
  1. Features
  2. Getting Started
  3. Commands
  4. Contribution
  5. Acknowledgments

Features

  • Read & Create & Update Notion databases/pages.
  • Automatically collects information from the web and archives it to Notion.
  • Save Auto-GPT's ideas to Notion.

Demo

Visit this database managed by Auto-GPT.

# ai_settings.yaml
ai_goals:
- Use "google" command to search what is Auto-GPT, and save the result to a Notion page
ai_name: Notion-GPT
ai_role: Research assistant

image

(back to top)

Getting Started

Do not clone this repo, the working directory and environment are under Auto-GPT.

Prerequisites

  1. Install Auto-GPT, checkout the latest release v0.3.0 which add plugins support, and make sure you can run it successfully.
  2. Install extra dependencies for this plugin.
    pip install notion-client python-dotenv auto_gpt_plugin_template
    

Download

Click Here to download the source code as ZIP, and place the ZIP file under Auto-GPT/plugins/.

Notion Settings

Check the Notion official docs for more details.

  1. Create an integration here, and get the token NOTION_TOKEN.
  2. Duplicate this database template, click "Duplicate" on upper right corner.
  3. Share the newly created database with your integration, click "..." on upper right corner, then click "Add connections" and input the integration name in the first step.
  4. Save the database ID NOTION_DATABASE_ID, you can get from the database url.
    https://doutv.notion.site/e3187aaa1aed42c39f0f372fdf84655e?v=b892e5b7d13f49ec8ff200916e79cf5b
                             |--------- database ID ----------|
    NOTION_DATABASE_ID=e3187aaa1aed42c39f0f372fdf84655e
    

Edit Environment

Auto-GPT/.env

  1. Add this plugin to whitelist. If you have other plugins enabled, append AutoGPTNotion to ALLOWLISTED_PLUGINS.
    ALLOWLISTED_PLUGINS=AutoGPTNotion
    
  2. Add Notion token and database id.
    ################################################################################
    ### Notion
    ################################################################################
    
    NOTION_TOKEN=<Notion integration token>
    NOTION_DATABASE_ID=<Notion database id>
    

Run Auto-GPT and enjoy!

FAQ

If you encounter problems or have any ideas, feel free to discuss:

(back to top)

Commands

  • notion_get_all_pages Retrieves all pages properties from a database.
  • notion_retrieve_page Retrieves a page's properties and content by id.
  • notion_create_page Create a new Notion page.
  • notion_append_page Append page content by id.
  • notion_update_page_properties Update a page's properties by id.

(back to top)

Contribution

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

Run Tests

pytest -vs

(back to top)

Acknowledgments

(back to top)

auto-gpt-notion's People

Contributors

doutv avatar lc0rp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.