{
    "items": [
        {
            "itemnumber": 0,
            "prompt": "Role: You are a Narrative Designer specializing in \"branching path\" educational games for second language learners.\nTasks: i) Expand the following story topic into a complex, non-linear \"Story Blueprint.\" ii) Design a splash image to introduce the story.\nTopic: {topic} \n\nBlueprint Requirements:\nThe Critical Path: Define the main journey (Start to Successful Conclusion).\n\nThe \"Detour\" (Side Quest): Create one mandatory detour where the player must go to a specific location to find an item (e.g., a key, a bribe, or information) before they can progress on the main path.\n\nThe \"Puzzle\/Gate\": Identify a specific moment where the story \"checks\" if the player has the item or knowledge from the Detour.\n\nCharacter \"Surprises\": List 2 unexpected traits or actions for the NPCs (e.g., the dragon doesn't want to fight, the prince tries to \"help\" but makes things worse).\n\nBranching \"Width\": Identify 3 choice points where the story splits into completely different scenes for at least 3 steps before merging back.\n\nFailure States: Describe 2 \"Bad Endings\" (one humorous, one based on a logical mistake).\n\nState Variables: List 3 variables to track (e.g., $has_item, $prince_annoyance, $bravery_points).\n\nOutput (data1): Provide a structured outline with headings. Do not write code yet. Focus on the \"logic\" of the adventure and making it interesting for a student. \nOutput (data2): Write an image generation prompt for a square poster image with the main characters and one representative scene from the story. The prompt should specify the image style: {imagestyle}",
            "generatemethod": "generate",
            "generatefields": [
                {
                    "name": "data1",
                    "generate": 1,
                    "mapping": ""
                },
                {
                    "name": "data2",
                    "generate": 1,
                    "mapping": ""
                },
                {
                    "name": "data3",
                    "generate": 0,
                    "mapping": ""
                },
                {
                    "name": "data4",
                    "generate": 0,
                    "mapping": ""
                },
                {
                    "name": "data5",
                    "generate": 0,
                    "mapping": ""
                }
            ],
            "generatefileareas": [
                {
                    "name": "itemmedia",
                    "generate": 1,
                    "mapping": "data2"
                }
            ],
            "overallimagecontext": "user_topic",
            "promptfields": [
                {
                    "name": "topic",
                    "mapping": "user_topic"
                },
                {
                    "name": "imagestyle",
                    "mapping": "user_customdata1"
                }
            ]
        },
        {
            "itemnumber": 1,
            "prompt": "You are writer who writes interesting stories for second language learners.\n\nCreate a first person interactive fiction story (fictionyarn) in yarn 2.0 format using the following story blueprint: [{blueprint}].\n\nStory instructions.\nThe story should include dialogs between characters, and options that the reader must choose from. \nOptions may jump to different nodes of the story . \nIn an option set there must be more than 1 option and no more than 4 options.\nThe language of the story should be: {language}\nThe story vocabulary should be of difficulty that is comprehensible for learners at language level: {languagelevel}\nThere should be more then 10 and fewer than 70 story nodes.\nNode titles must contain no spaces and be in English (ascii). If there are spaces replace them with underscores. If they are not in English translate them to English.\nThe title of the first node must be: Start\nCharacter names should have no spaces. If there are spaces replace them with underscores.\nIf the main character (first person narrator) in the story has not been specified, choose the most appropriate character.\nDialog spoken by the first person narrator (the main character) should be prefixed with \"Me\". i.e It should start with \"Me:\"\nThe story should be written in present tense.\nThe story should be written in Yarn version 2.0 . \n\n\nExtra Yarn Instructions\nGenerate Yarn Spinner 2.0 code that is compatible with bondage.js.\n* Do not use +=, -=, *=, \/= anywhere\n* Use only <<set $var = expression>> assignments\n* Do not use English keywords (to) in set commands\n* Close <<if>> conditions with <<endif>>\n* Prefer underscores over hyphens in identifiers\n* Jump commands should always be on a new line\nThe following text is an example of valid Yarn 2.0 for bondage.js\n\ntitle: Start\n---\n<<declare $has_map = false>>\nYou stand at the edge of the Whispering Woods. \n-> Enter the woods immediately\n    <<jump DeepWoods>>\n-> Look for the old guide's hut\n    <<jump Hut>>\n===\ntitle: Hut\n---\nOld Man: It's dangerous to go alone! Take this map.\n<<set $has_map = true>>\n<<jump DeepWoods>>\n===\ntitle: DeepWoods\n---\nThe trees are thick. You feel lost.\n-> Try to find the path <<if $has_map == true>>\n     The map shows you a secret shortcut!\n    <<jump DragonCave>>\n-> Wander aimlessly\n     You walk in circles for hours. The Prince starts complaining.\n    <<jump LostFailure>>\n===\n \nOutput Instructions\nYour output must include two top-level keys:\n1. fictionyarn \u2014 the yarn v2.0 format story\n\n\n",
            "generatemethod": "extract",
            "generatefields": [
                {
                    "name": "fictionyarn",
                    "generate": 1,
                    "mapping": ""
                },
                {
                    "name": "data1",
                    "generate": 0,
                    "mapping": ""
                },
                {
                    "name": "data2",
                    "generate": 0,
                    "mapping": ""
                },
                {
                    "name": "data3",
                    "generate": 0,
                    "mapping": ""
                },
                {
                    "name": "data4",
                    "generate": 0,
                    "mapping": ""
                },
                {
                    "name": "data5",
                    "generate": 0,
                    "mapping": ""
                }
            ],
            "generatefileareas": [],
            "overallimagecontext": "--",
            "promptfields": [
                {
                    "name": "blueprint",
                    "mapping": "item0_data1"
                },
                {
                    "name": "language",
                    "mapping": "target_language"
                },
                {
                    "name": "languagelevel",
                    "mapping": "user_level"
                }
            ]
        }
    ],
    "lessonTitle": "Interactive Story (no pics)",
    "lessonDescription": "An interactive story with no pics, apart from an introduction screen",
    "uniqueid": "696105abf2b2a",
    "version": "4",
    "fieldmappings": {
        "target_language": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_topic": {
            "enabled": true,
            "title": "The story outline",
            "description": "Enter a detailed outline of the story you want to generate.",
            "type": "textarea"
        },
        "user_level": {
            "enabled": true,
            "title": "Language Level",
            "description": "",
            "type": "dropdown",
            "options": [
                "CEFR A1",
                "CEFR A2",
                "CEFR B1",
                "CEFR B2",
                "CEFR C1",
                "CEFR C2"
            ]
        },
        "user_text": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_keywords": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_customdata1": {
            "enabled": true,
            "title": "Image Style",
            "description": "",
            "type": "dropdown",
            "options": [
                "Flat vector illustration",
                "Cartoon",
                "Photorealistic",
                "Infographic",
                "Line drawing",
                "Digital painting",
                "Comic book",
                "Hand drawn black and white sketch",
                "Black and white movie still",
                "3D Render"
            ]
        },
        "user_customdata2": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_customdata3": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_customdata4": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_customdata5": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_customdata6": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_customdata7": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_customdata8": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_customdata9": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        },
        "user_customdata10": {
            "enabled": false,
            "title": "",
            "description": "",
            "type": "text"
        }
    },
    "tags": []
}