TinyTechGuides

TinyTechGuides

Marketing Prompts

XML and Hashtag Prompt Formats

Cut, paste, and save in your personal prompt library

David Sweenor's avatar
David Sweenor
Jan 17, 2025
∙ Paid

The XML and Hashtag tags were discussed in:

B2B Prompt Engineering for PMMs

B2B Prompt Engineering for PMMs

David Sweenor
·
January 14, 2025
Read full story

XML-style tags

XML style tags are essentially: <tag/> content </tag>.

For example,

<role>

[Specify the role or perspective the LLM should adopt. Example: "Data scientist," "SEO Expert."]

</role>

<context>

[Provide background information, requirements, or constraints relevant to the task. Include details like the industry, goals, or audience.]

</context>

<task>

[Clearly define the specific request. Include any steps or sub-tasks needed.]

</task>

<output>

[Describe the desired format of the response: "Provide a bullet list," "Create a table," "Write in paragraphs."]

</output>

<tone>

[Define the desired tone: "Technical," "Conversational," "Formal," "Persuasive."]

</tone>

<validation>

(Optional) [Specify how the output will be evaluated for success: "Should include 3-5 actionable points," "Ensure all legal constraints are addressed," "Include only verifiable data."]

</validation>

User's avatar
Join David Sweenor’s subscriber chat
Available in the Substack app and on web

B2B Marketing Prompts by TinyTechGuides is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

User's avatar

Continue reading this post for free, courtesy of David Sweenor.

Or purchase a paid subscription.
© 2026 TinyTechMedia LLC · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture