File size: 647 Bytes
8bc7dc5
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from langchain.prompts import PromptTemplate
from langchain.chains import LLMChain

def landing_page_gen(brand, customer, action, llm):
    
    landing_page_prompt = f"Generate a YouTube video idea that will provide a behind-the-scenes look at my {brand} and persuade my {customer} to take {action} with a sense of authenticity and relatability."
    landing_page_promptTemp = PromptTemplate(
    input_variables=["text_input"],
    template="{text_input}")
    landing_page_extraction_chain = LLMChain(llm=llm, prompt=landing_page_promptTemp)
    landing_page = landing_page_extraction_chain.run(landing_page_prompt)
    
    return landing_page