Giter Site home page Giter Site logo

langchain-marketing-assistant's Introduction

How to Automate Youtube and Blog Content with LangChain & OpenAI: A Step-by-Step Guide

This repo contains the code for AI-powered Marketing Assistant that uses LangChain and OpenAI to streamline your content creation process. Using LangChain you will create a SequentialChain that consists of a series of chains - a blog post chain, a YouTube script chain, and a YouTube visuals chain.

The detailed step-by-step guide can be found in either our YouTube or Medium article below.

YouTube https://www.youtube.com/@principlesofai/videos

Medium https://medium.com/@wayne923/fc6ed231ffa6

alt text

Overview of the Code

The code consists of an app.py file that is used to set up and run the AI-powered marketing assistant.

The app.py includes:

  • Setting up the environment
  • Building Blocks of LangChain
  • Mastering the Basics of Chains in LangChain
  • Integrating the assistant with Streamlit to build a Web App

The .env file is used to securely store your OpenAI API key.

Example of what you will learn

# LLMChain Example

# Model
llm = OpenAI(temperature=0.9)

# Prompt
blog_prompt_template = PromptTemplate(
    input_variables = ['product_description'],
    template = 'Write a blog post on {product_description}'
)

# Chain
blog_chain = LLMChain(llm=llm, prompt=blog_prompt_template, verbose=True)

# Run
product_description = 'best eco-friendly coffee'
blog_chain.run(product_description)

Follow me to stay updated

YouTube - www.youtube.com/@principlesofai

Instagram - www.instagram.com/principlesofai

LinkedIn - www.linkedin.com/in/wayn9/

langchain-marketing-assistant's People

Contributors

wayne923 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.