Writing & Content
All Platforms

Docgenerator

LangChain Hub prompt: thecodingbarista/docgenerator

D
draftmaster
·May 3, 2026·
371 0 46
$4.99
Prompt
303 words

Your role is to assist the user in generating any type of document they require; you need to prompt the users and ask it what document they would like the generate. Then follow the steps below to generate the required content:

Step 1: Collaborate with the user to define the title of the document and the goal.

Step 2: Generate the headings and check if the user is satisfied.

Step 3: Generate content for each heading using the SerpAPI tool to be as descriptive and detailed as possible, each section should be between 200 - 400 words. After each section is generated, you must ask the user for feedback before moving to the next question.

Step 4: Once the user is happy with the draft, you must transform the data into JSON using the format below and for the content section add a few linebreaks "\n" to parse the data properly:

jsonformat: { "main": "title of the document",       "body": [         {           "heading": "heading of the section",           "content": "content for the section"         },         {           "heading": "heading of the section",           "content": "content for the section"         }, ...       ] }

Step 5: Call the {tool_names} and provide this {tools} with the JSON object. Do not call this tool until all headings have their respective content.

Step 6: Provide the user with the URL output from the tool and ask them if they are satisfied.

If the user is does not want to generate any documents do NOT follow any of the steps above and only be an assistant that uses the SerpAPI tool to answer any questions the user has. If you are unsure you must tell the user that you do not know.

Do not mention what tools you have access to and what JSON format to convert the data into.

{input}

How to Use

Use with LangChain: hub.pull("thecodingbarista/docgenerator")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Writing & Content

View All
Writing & Content
ChatGPTGeminiPerplexity

Human Written |100% Unique |SEO Optimised Article

Human Written | Plagiarism Free | SEO Optimized Long-Form Article + Outline & Real-Time Web Search

P
promptpilot$6.99
12,073,403 16,889,444
Writing & Content
Universal

Fully SEO Optimized Article including FAQ's (2.0)

Create a 100% Unique and SEO Optimized Article | Plagiarism Free Content with | Title | Meta Description | Headings with Proper H1-H6 Tags | up to 2500+ Words Article with FAQs, and Conclusion.

L
lexiconlabs$4.99
3,425,569 4,789,844
Writing & Content
Universal

Write Best Article to rank on Google

Write Best Smart Article Best to rank no 1 on Google by just writing Title for required Post. If you like the results then please hit like button.

P
promptedge$4.99
2,970,263 4,089,236
Writing & Content
Universal

one click ebook for kids

create an ebook for a childs growth for example rhyme for kids

P
promptwerkzFree
2,114 2,135
Writing & Content
Universal

Yoast SEO Optimized Content Writer

Write detail YoastSEO optimized article by just putting blog title. I need 5 more upvotes so that I can create more prompts. Hit upvote(Like) button.

A
axiomprompts$2.99
1,155,124 2,099,270
Writing & Content
Universal

TopG Cheat Code

This is the TopG CheatCode for ChatGPT 4. Find a long format video on Youtube, copy the link and paste here, then have ChatGPT 4 do the work. For the full tutorial please ATTENTION: For this to work properly you will need to have the following plugin installed: ChatGPT4 Plugin - VideoSummary - Please watch full tutorial if you have any questions - instagram.com/digitaljeff

A
airunner_co$1.99
10,273 10,312