Customizing Prompts#

You can customize the AI’s instructions and behavior by modifying prompts at the profile level.

Note

This guide assumes the reader has access to the Django Admin interface for their Open edX site.

Method 1: Inline Prompt in Profile Patch#

Use the Content patch field to override the prompt:

Single Line Prompt#

{
  "processor_config": {
    "LLMProcessor": {
      "prompt": "Your custom prompt here"
    }
  }
}

Multi-line Prompt#

For longer prompts, use the backslash line continuation syntax:

{
  "processor_config": {
    "LLMProcessor": {
      "prompt": "\
Your custom prompt \
on many lines \
with detailed instructions \
"
    }
  }
}

Example Profile#

The plugin includes an example at base.custom_prompt demonstrating this approach.

Inline prompt configuration in profile patch