nicmart-dev / linguistnow

LinguistNow simplifies the hassle of finding available linguists for translation projects.
https://linguistnow.netlify.app
1 stars 1 forks source link

Create n8n workflow to find available linguists #5

Closed nicmart-dev closed 1 month ago

nicmart-dev commented 1 month ago

Prerequisite: Set Up Google OAuth and Calendar Selection in React Users sign in with Google, and you retrieve their access tokens and selected calendars, using #16, and #17

  1. Install n8n workflow automation tool https://www.npmjs.com/package/n8n#install-with-npm
  2. Create a New Workflow in n8n
  3. Create a backend endpoint in your Express app to handle requests from your React app, communicate with n8n instance set up in https://github.com/nicmart-dev/linguistnow/issues/5, and process Google Calendar data.
  4. Configure Webhook
  5. Add Google Calendar Nodes
  6. Add Logic to Determine Availability
  7. Return the Result
nicmart-dev commented 1 month ago

For n8n, we typically interact with its API from the backend, so no direct npm installation is required for the front-end. We'll focus on setting up the backend separately and connecting it through API calls. https://chatgpt.com/share/2588939d-8f27-4f42-befb-4e79f75e2656

nicmart-dev commented 1 month ago

To set up and configure n8n, you can follow these general steps:

  1. Installation: Install n8n either via Docker, npm, or using one of the provided packages. You can find installation instructions on the n8n website.

  2. Configuration: Once installed, you'll need to configure n8n. This involves setting up authentication (if required) and configuring any integrations you plan to use, such as Google Calendar. You'll likely need to obtain API keys or credentials from the services you're integrating with.

  3. Workflow Creation: In n8n, workflows are created using a visual editor. You'll design workflows that define how data should flow between different services, such as fetching data from Google Calendar and sending it to your backend.

  4. Testing and Debugging: Test your workflows to ensure they're functioning as expected. n8n provides tools for debugging and monitoring workflow execution.

nicmart-dev commented 1 month ago

your-repo/ │ ├── client/ │ ├── src/ │ │ ├── components/ │ │ ├── pages/ │ │ ├── ... │ ├── public/ │ ├── ... │ ├── server/ │ ├── controllers/ │ ├── models/ │ ├── routes/ │ ├── ... │ ├── n8n/ │ ├── workflows/ │ ├── settings/ │ ├── ... │ ├── README.md ├── .gitignore ├── package.json └── ...

nicmart-dev commented 1 month ago

Using https://n8n.io/workflows/1953-suggest-meeting-slots-using-ai/ as starting workflow

nicmart-dev commented 1 month ago

Design document: https://github.com/nicmart-dev/linguistnow/wiki/n8n-integration