LNC AI Quiz Generator for NEAR AI Cloud

説明

LNC AI Quiz Generator is a WordPress plugin that leverages artificial intelligence to automatically generate educational quizzes from your article content. By wrapping any text content in a simple shortcode, the plugin uses the NEAR AI Cloud API (https://cloud.near.ai/) to analyze the content and create engaging multiple-choice quizzes that help users test their knowledge and improve content retention.

🎯 Key Features

  1. AI-Powered Quiz Generation: Automatically generates contextually relevant quizzes based on your article content using advanced AI models.

  2. Simple Shortcode Integration: Wrap any content with [lnc_ai_quiz_generator]...[/lnc_ai_quiz_generator] shortcode to enable automatic quiz generation for that section.

  3. Interactive Quiz Interface: Clean, user-friendly quiz modal with instant feedback, showing correct/incorrect answers and explanations.

  4. Customizable AI Parameters: Configure API settings including model selection, temperature, max tokens, and other AI parameters to fine-tune quiz generation.

  5. Educational Focus: Each quiz includes 2 carefully crafted questions with 4 multiple-choice options and detailed explanations for correct answers.

🔧 Setup Instructions

Step 1: Configure Cloud AI Settings

  1. Navigate to WordPress Admin > Settings > Cloud AI Client Configuration
  2. Fill in the following fields:

    • API URL: Enter https://cloud-api.near.ai
    • API Key: Enter your NEAR AI Cloud API key (obtain from cloud.near.ai)
    • Quiz Model: Select deepseek-ai/DeepSeek-V3.1 (or your preferred model)
  3. Configure the AI Prompt (pre-filled with optimal settings):
    The prompt instructs the AI to:

    • Read article content and create exactly 2 questions
    • Provide 4 multiple-choice options (A, B, C, D) for each question
    • Include correct answer and explanation
    • Output valid JSON format only
  4. AI Parameters (defaults):

    • Temperature: 0.7
    • Max Tokens: 2000
    • Top P: 1
    • Frequency Penalty: 0
    • Presence Penalty: 0
  5. Click Save to store your configuration

Step 2: Add Quiz to Your Content

  1. Create or edit any WordPress post or page
  2. Wrap the content you want to quiz users on with the shortcode:
    [lnc_ai_quiz_generator]
    Your article content goes here...
    [/lnc_ai_quiz_generator]
  3. Publish or update the post

Step 3: User Experience

When visitors view your content:
1. They’ll see a help icon (?) next to the content wrapped in [lnc_ai_quiz_generator]
2. Clicking the icon opens an interactive quiz modal
3. The AI generates 2 questions based on the content
4. Users select answers and receive instant feedback
5. Correct answers are highlighted in green with checkmarks
6. Incorrect answers are shown in red with X marks
7. Explanations help users understand the correct answers

🧩 Use Cases

  • Educational Websites: Enhance learning by testing comprehension after each article or lesson
  • Training Platforms: Create automatic knowledge checks for training materials
  • Content Marketing: Increase engagement and time on page with interactive quizzes
  • E-Learning: Add instant assessments to any educational content without manual quiz creation
  • Documentation Sites: Help users verify they understood technical documentation

💡 For WordPress Developers

The plugin uses the NEAR AI Cloud API to generate quizzes. The AI model receives:
– Article content from within [lnc_ai_quiz_generator] shortcode
– Structured prompt for quiz generation
– Returns JSON with quiz questions, options, correct answers, and explanations

The quiz interface is built with vanilla JavaScript and renders in a modal overlay with real-time feedback.

Important Links

  • NEAR AI Cloud: https://cloud.near.ai/
  • Get API Key: Register at cloud.near.ai

Third-Party Services

This plugin connects to the NEAR AI Cloud API to generate quiz questions.

When a visitor clicks the quiz button, the text wrapped in the [lnc_ai_quiz_generator] shortcode is sent to NEAR AI Cloud for processing in order to generate quiz questions.

Service:
– NEAR AI Cloud API: https://cloud-api.near.ai/

Terms:
– https://near.ai/near-ai-cloud-terms-of-service

Privacy:
– https://near.ai/privacy-policy

スクリーンショット

  • Cloud AI Client Configuration page – Configure API settings, model, and prompt
  • Content editor showing [lnc_ai_quiz_generator] shortcode usage
  • Published article with quiz help icon visible
  • Interactive quiz modal showing question and multiple choice options
  • Quiz results with correct answer highlighted and explanation shown
  • WordPress plugins list showing LNC AI Quiz Generator plugin

FAQ

Do I need a NEAR AI Cloud account?

Yes, you need to register at https://cloud.near.ai/ to obtain an API key.

How many questions does each quiz have?

Each quiz automatically generates exactly 2 questions with 4 multiple-choice options each.

Can I customize the quiz prompt?

Yes, you can modify the prompt in the Cloud AI Client Configuration page to adjust how quizzes are generated.

What AI models are supported?

The plugin supports models available through NEAR AI Cloud API, including DeepSeek-V3.1 and others.

Can I use multiple quizit shortcodes on one page?

Yes, you can wrap multiple sections of content with [lnc_ai_quiz_generator]...[/lnc_ai_quiz_generator], and each will generate its own independent quiz.

評価

2026年2月5日
A very useful plugin for quickly adding AI-generated quizzes to articles so can help you memory knowledge easily. Setup is simple thanks to the shortcode, generated questions are pretty good, though the quality can vary depending on the content and the AI model you choose. This using NEAR AI infrastructure to privately protect your data so its very useful for people dont want their post data be used for AI, but you can using other providers like ChatGPT if you dont care much about that. Overall, LNC Quiz is a solid option for adding lightweight interactivity to posts, making them more enjoyable and quite useful for studying purposes!
1件のレビューをすべて表示

貢献者と開発者

LNC AI Quiz Generator for NEAR AI Cloud はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“LNC AI Quiz Generator for NEAR AI Cloud” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.0

  • Initial release
  • AI-powered quiz generation from article content
  • Configurable NEAR AI Cloud API integration
  • Interactive quiz modal with instant feedback
  • Support for [lnc_ai_quiz_generator] shortcode
  • Customizable AI parameters and prompts