Inspiration

ChatGPT doesn't have auto-completer for inputting questions

What it does

Generate a list of idea when user stop typing on Notion. It pulls research from search engine suggestions, so the terms on the list is related to users' search behaviours. We gonna trigger Notion AI not by using space key, but by use debounce function and timer to listen when use stop typing. It can interrupt users are thinking, so it auto complete the idea. The way we are not using AI for auto complete because it consume more time and computing power to generating the sentences. Then after the sentences are generated from user selection, we are calling Notion AI to help user get list or paragraph that they want. This function can be also toggle by a switch on the top bar, so users won't got disturbed when they writing.

How we built it

We can use Axios make a xhr request to Google/Bing search suggestion to get list of suggestion for completing sentences/question.

Challenges we ran into

Some potential challenges may include: Ensuring the suggestions are relevant and useful to the user's search behavior Integrating with the Notion API and ensuring compatibility with different types of Notion pages Balancing the frequency of suggestion requests with performance and speed of the plugin Handling errors and unexpected responses from the search engine suggestion API

Accomplishments that we're proud of

Creating a useful tool that can save time and effort for Notion users Integrating multiple technologies and APIs to create a seamless user experience Implementing the debounce function and timer to ensure the plugin does not interrupt the user's workflow Building a toggle switch to give users control over the auto-complete feature

What we learned

Working with external APIs and parsing response data Using debounce functions and timers in JavaScript to improve user experience Integrating with the Notion API and building a plugin for public use Collaborating on a project with multiple team members and delegating tasks effectively

What's next for Auto-completer for Notion AI

Build this plugin use Vue.js and axois for public use

Share this project:

Updates