Automate WhatsApp tests and rank results with PostgreSQL (Module "Quiz")

Nodes

2583a666-3b00-4201-be3f-5a3109262d2d7a48708c-bd3b-409b-837b-b599c5bcd7e694248680-97fe-4c64-8c0e-406e7e4b5b478299733a-9057-42af-8045-2a3bdf88dde3+1

Created by

AnAndrew

Last edited 39 days ago

Who is this for?

This workflow is designed for educators, HR teams, or anyone who needs to create and distribute quizzes or tests via WhatsApp and automatically store and analyze responses in a PostgreSQL database.

What problem is this workflow solving?

Managing tests or quizzes manually across platforms can be time-consuming and error-prone. This workflow automates the entire process — from test creation to distribution and result collection — providing an efficient way to manage assessments at scale.

What this workflow does

  • Adds test content (including questions and answers) to a PostgreSQL database.
  • Allows users to take the test directly via WhatsApp.
  • Displays a final ranking to test takers upon completion.

Setup

1. Create tables in PostgreSQL

  • Open the SQL script provided in the workflow.
  • Replace n8n with your actual database schema name.
  • Run the script to set up the required tables.

2. Add required credentials

  • WhatsApp: Set up OAuth and connect your WhatsApp account.
  • PostgreSQL: Add your Postgres DB credentials to n8n.

How to customize this workflow to your needs

  • Update the test questions and answers directly in the database.
  • Modify the bot flow to suit your test structure or messaging preferences.
  • Extend the ranking logic based on specific grading criteria or scoring rules.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!