Aug 23, 2024

How to Create a Generator from Scratch

Introduction

This tutorial will guide you through the process of creating a generator for social media posts using a specific platform.

Steps

1. Access the Create Generator Page

  • Navigate to the "Create Generator" page on the left sidebar

  • Alternatively, go to your workspace and select "Add a new generator"

2. Set Up the Workspace

  • Name your generator (e.g., "Social Media Post")

3. Add Input Blocks

  • Select a text input block

  • Label it as "Topic" or "Subject"

  • Add a description for the user (optional)

4. Add Layout and Image Blocks

  • Add a layout block

  • Add an image block (using Flux in this example)

  • Set image ratio and size (e.g., 1024x1024)

  • Input image description (e.g., "happy person on a sunny day")

5. Add AI Text Generation Block

  • Select the Claude block

  • Choose Claude 3.5 Sonnet from the dropdown menu

  • Fill in the system instruction field (e.g., "You are a social media post writer")

  • Specify tone, target audience, and post style

6. Configure AI Input

  • Reference the user input using hashtags (e.g., #textinput1)

  • Instruct the AI to create a post based on the input (e.g., "Write a LinkedIn post about this")

7. Set Outputs

  • Click the eye icon to set the Claude block as an output

  • The orange border indicates it's now an output

8. Configure Layout Block

  • Open the layout block

  • Set image dimensions (e.g., 1024x1024)

  • Reference the Flux image block

9. Add Logo Option (Optional)

  • Add a file input block labeled "Logo"

  • Reference the logo in the layout block

  • Position the logo (e.g., bottom left corner, 100x100 pixels)

10. Save and Test the Generator

  • Click "Save" to finalize the generator

  • Test the generator by inputting a subject and uploading a logo

  • Generate the social media post

11. Review and Edit

  • Check the generated text and image outputs

  • Make adjustments as needed

12. Further Customization (Optional)

  • Edit the generator using the edit icon

  • Update image prompts or other settings as desired

Conclusion

You have now created a basic generator for social media posts. Experiment with different blocks and settings to create more complex and tailored outputs.

getting-started-with-your-first-generator