How to create characters with Scabard API - eserlan/brinesia GitHub Wiki

Here's the revised step-by-step guide with your specific details:

  1. NPC Conceptualization: Come up with the basic details of your NPC, such as their name, occupation, and role in the campaign.

  2. Text Generation: Use an AI-based text generator (like OpenAI's GPT model) to elaborate on the NPC's details. The AI text generator should fill out the following template:

    • Name:
    • Age & Date of Birth:
    • Catchphrase:
    • Short Description:
    • Appearance:
    • Clothing/Gear:
    • Location/Home Base:
    • Personality/Temperament:
    • Abilities/Skills, Occupation:
    • Long-Term Goals:
    • Short-Term Goals:
    • Personal History, Religion, and Relationships:
    • Quests:
    • Dark Secret:
  3. Image Prompt Creation: Based on the text description, create a short, descriptive prompt for the NPC. This will be used to generate an image of the character.

  4. Image Generation: Use an AI-based image generator to create an image of the NPC based on the prompt you've created.

  5. CURL Command Formatting: Ensure that your CURL command is properly formatted to avoid errors. If your description or secrets contain both single quotes (') and double quotes ("), you should either escape the double quotes (") or use single quotes (') consistently to avoid syntax errors.

  6. Scabard API Usage: With the generated text and image at hand, you can now make a POST request to Scabard's REST API to create the character:

    curl -X POST https://www.scabard.com/api/v0/campaign/2507706/character/[thing_id] -H "username: espene" -H "accessKey: [your_accessKey]" -d 'name=[name]' -d 'briefSummary=[briefSummary]' -d 'description=[description]' -d 'secrets=[secrets]' -d 'concept=Character'
    

    Replace [thing_id] with the appropriate character's ID and [your_accessKey] with your current valid access key. Also, fill in [name], [briefSummary], [description], and [secrets] with the generated details of the character.

  7. Scabard API Response: The API will return isSuccess: true if the character is successfully created. Check the Scabard platform to verify that the character was created as expected.

Remember to keep track of your characters and their IDs for easy reference and management. This process allows for a systematic and efficient way to generate and populate rich, diverse characters for your campaign.