Introduction
Spin Syntax, also known as Spintax, helps you create multiple variations of content by randomly selecting different phrases. This feature is useful for generating unique content quickly, improving your SEO by avoiding duplicate content.
How to Add Spin Syntax
Let’s learn how to write spin syntax for your content.
Basic Usage
To create variations, wrap your options in square brackets []
and separate them with a vertical bar |
. For example:
[Hello|Hi|Hola]
Each time this is used, one of the options (Hello, Hi, or Hola) will be randomly selected.
A full sentence might look like this:
[Hello|Hi|Hola], How [have you been|are you doing]?
This will generate sentences randomly like:
- "Hello, how have you been today?"
- "Hi, how are you doing today?"
- "Hola, how have you been today?"
Using Spin Syntax with Variables
You can combine Spin Syntax with dynamic variables to create even more personalized content. For example:
[Hello|Hi|Hola], I’m in {{City}} today.
The {{City}}
variable will be replaced with the value from your dataset (e.g., Tokyo, Paris), and the sentence will change based on the selected variable and the Spin Syntax.
Using Spin Syntax Within a Prompt
You can also use Spin Syntax inside custom prompts to create dynamic AI-generated content.
prompt("Write a summary about the food culture of {{City}} featuring [local dishes|traditional foods].")
In this case, the AI will generate unique content about the food culture of each city, using either "local dishes" or "traditional foods" based on the Spin Syntax.
Regenerate Content with Spin Syntax
To quickly apply Spin Syntax to your content, click the refresh icon next to your input field. Before confirming, you can select the number of variations you want to generate for your content. The system will automatically add the appropriate number of variations where relevant in your text.
Once you've chosen the number of variations, confirm the changes. If you'd like to undo any adjustments, simply press CTRL + Z.
Troubleshooting
Spin Syntax Not Working
Issue:
Spin Syntax isn’t generating content as expected.
Solution:
- Verify Brackets: Double-check that all opening square brackets “[” have a corresponding closing bracket “]”. A missing bracket can cause Spin Syntax to fail.
- Check for Spaces: Make sure there are no spaces before or after the vertical bar “|”. Spaces can break the syntax and prevent proper content generation.
- Check Variable Brackets: If you're using variables in your Spin Syntax, ensure that the variables are correctly enclosed in double curly braces {{ }}. Missing or misplaced brackets around variables will cause errors in content generation.
Contact and Support
For further assistance, feel free to reach out to our support team. Contact us at contact@seomatic.ai or via chat.