> [!column|flex no-title] >> [!menu-dark-red|ttl-c] [[Obsidian TTRPG Tutorials]] / [[Plugin Tutorials]] / [[Text Generator]] > [!column|4 no-title] >> [!menu-green-1|ttl-c] [[Getting Started]] > >> [!menu-green-2|ttl-c] [[Plugin Tutorials]] > >> [!menu-green-3|ttl-c] [[Community Supported Games]] > >> [!menu-green-4|ttl-c] [[Obsidian TTRPG Tutorials/Templates/Templates\|Templates]] > [!column|3 no-title] >> [!patreon|ttl-c] [Patreon](https://www.patreon.com/JPlunkett) ([Starter Vault](https://www.patreon.com/posts/obsidian-patreon-96801399)) > >> [!discord|ttl-c] [Obsidian TTRPG Community Discord](https://discord.gg/CdM9UCJdwU) > >> [!discord|ttl-c] [Obsidian Official Discord](https://discord.gg/8AF29UBUCa) [Text Generator](obsidian://show-plugin?id=obsidian-textgenerator-plugin) is an amazing plugin that can empower your vault and notes with the benefits of AI! > [!warning]+ 3rd Party Costs May Apply > Please be aware that the use of the OpenAI api can attract additional cost as it may require a subscription to OpenAI. > In my experience the cost is very low. # Obsidian - Create Random Notes with ChatGPT Templates Imagine a world where you don't need random tables anymore! Instead you can create templates that work with ChatGPT to generate random notes. Things like shops, random encounters, loot, and it can even work with the TTRPG system you are playing! In this video we take another look at Text Generator except this time.... we dive into how to use Templates! ![](https://youtu.be/X9tlAZC6DSU) ## Installation Install the Text Generator plugin. Crate an Open-AI account: https://auth0.openai.com/u/signup/ Don't forget to set your personal billing limit: https://platform.openai.com/account/billing/limits - *If you don't use this your charges may go up to $120 a month!* Create an API Key: https://platform.openai.com/account/api-keys Copy the API key for the next step. ## Plugin Settings In the Text Editor plugin settings check the following: - API Key - Paste your API Key from here: https://platform.openai.com/account/api-keys - Model - Set to gpt-3.5-turbo - Max Tokens - I set to 650. Lower settings seem to result in incomplete notes. - Temperature - 0.8 - The higher this is the more random your results are. - Prompts Templates Path - This is where you set which folder you are going to put the templates in. - Calculate-Tokens = Enabled - Calculate-Tokens-For-Template = Enabled ## Hotkeys Make sure you set a hotkey to allow you to trigger the templates. Settings > Hotkeys > Text Generator: Templates: Generate & Insert (I set this to Ctrl+U) ## Templates Here are the templates used in this video. To install them you simply need to copy them into the folder that is setup in the Text Generator settings as the template folder. ### Templates [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Adventure Opportunity|Generate Adventure Opportunity]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Apothecary|Generate Apothecary]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Armory|Generate Armory]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Dungeon Room|Generate Dungeon Room]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Encounter|Generate Encounter]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Fungus|Generate Fungus]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate General Store|Generate General Store]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Inn|Generate Inn]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Job Board|Generate Job Board]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Pocket Search|Generate Pocket Search]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Spell Book|Generate Spell Book]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Weaponry|Generate Weaponry]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/Generate Magic Store|Generate Magic Store]] [[Convert Spell]] ### Mything GM Emulator Templates [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/PBE Games - Generate Vehicle|PBE Games - Generate Vehicle]] [[Obsidian TTRPG Tutorials/Plugin Tutorials/Text Generator/PBE Games - Magic 8 Bal|PBE Games - Magic 8 Bal]] ### Tips for Creating Templates Start with a prompt that sounds like it should do what you want. Then trigger the template and review the results. If something looks wrong, think about how you can explain it to ChatGPT to avoid doing that wrong thing again. Basically rinse and repeat this process until you start seeing results you like. You can highlight text when you trigger a template and the template can use this information. Simply reference it in your template as {{context}}.