from now work with gemeni folder.
create a python scriopt whcih can do the follwoing: my api key is AIzaSyAEcyW-8Ua6f9VkNUdmDIxyh5VTP4OfUPc
Inside “input” folder there are 2 files: user_string.txt and template1.txt. it will open template1.txt and replace the word of userQueryInput with the content of user_string.txt and save it in a varialbe. this willuse as the query of the pthon scrip to get the ouptu. once it get the outpu it will generate a file tempOutput.txt
after
the ure will just type som topic over tehre like “what is ai” in tht text file.
and it will replaese the content of template1.txt with this user input. inside template 1 thre is a string
template1.txt
Fill out my YouTube scriptwriter template for the topic userQueryInput and provide the completed prompt ONLY. Do not include any intro, outro, or commentary.
The Master Prompt (Template)
Role: You are an expert YouTube Scriptwriter specializing in [Topic]. Your style is conversational, witty, and high-energy, similar to [Example Creator Name]. Task: Write a full YouTube script about [Specific Goal/Title]. Constraints:
- Tone: Informal and direct. Use “I” and “You.” Strictly avoid “AI-speak” (no “furthermore,” “delve,” or “comprehensive”).
- Structure: Start with a 15-second “Hook” (pain point), follow with the “Meat” (analogies and chapters), and end with a quick, non-desperate Call to Action.
- Formatting: Use [Visual] tags for screen descriptions and [Audio] for speech. Use … for pauses and CAPS for emphasis.
- Language: Use contractions (don’t, it’s), short sentences, and rhetorical questions.
Specific Topic Details: [List 3-4 specific points to cover].
so it will use that as uder query