• jacobw

    (@jacobwindham12)


    When adding the chat to a lesson page (Tutor LMS) and enabling “Use page content as context” the chatbot still isn’t able to read the page content. The documentation says it starts by looking at excerpt (which lessons don’t have) and falls back to reading the page. Am I missing a setting somewhere?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author senols

    (@senols)

    Hi @jacobwindham12

    That’s correct, if Content Aware is enabled, the bot first tries to pull from the Excerpt field. If no excerpt is available, it falls back to the main page content.

    A couple things to check:

    Check if your page has an excerpt:

    – In the Block Editor (Gutenberg): open the page in edit mode → on the right sidebar click “Edit Excerpt”. That will show you whether the excerpt is filled.

    https://imgur.com/GN7FGxP

    – In the Classic Editor: open the page in edit mode → go to Screen Options at the top → make sure Excerpt is checked → scroll down to find the excerpt box and confirm it has content.

    https://imgur.com/tKOpaYv
    https://imgur.com/APahqWL

    You can also troubleshoot the content that being fed to the bot.

    Go to your chatbot Logs and click the “Request Payload” link under the user container. In the details, look for a section like “Current Page Content Snippet…” under system instructions. If you see that, it means the page data was retrieved correctly.

    Please check this screenshot: https://imgur.com/oyqmNJY

    Could you check those steps and let me know what you find?

    Also, just out of curiosity, is there a particular reason you’re using Content Aware instead of using Vector Stores? Content Aware only covers the current page, while vector stores let you feed the bot with all your site’s data (much more powerful). Just wanted to check if you knew about that option.

    Thread Starter jacobw

    (@jacobwindham12)

    Tutor LMS lessons are custom post types (post_type=lesson). They do appear in wordpress’s default editor but don’t have excerpts.

    Request payload:

    { “provider”: “OpenAI”, “model”: “gpt-4.1-mini”, “payload_sent”: { “model”: “gpt-4.1-mini”, “input”: [ { “role”: “system”, “content”: “Create a real-life scenario about the lesson content.\nCreate a real-life scenario about the lesson content.\n You are talking to {{user_name}}.” }, { “role”: “user”, “content”: “what is this lesson about?” } ], “stream”: true, “store”: true, “temperature”: 1, “max_output_tokens”: 14963, “top_p”: 1 } }

    Response from the chatbot:

    “I wasn’t able to find specific information about the lesson from the files you uploaded. Could you please tell me the title or main topic of the lesson? That way, I can better assist you in understanding what it is about.”

    I’m adding specific triggers to the bot to help with the current lesson. I’d like it to only use the current lesson so it can be specific.

    https://snipboard.io/734qJF.jpg

    • This reply was modified 9 months ago by jacobw.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Tutor LMS’ is closed to new replies.