GithubHelp home page GithubHelp logo

rp42dev / openai-marketing-assistant Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 81 KB

A toolkit leveraging OpenAI's API for marketing tasks: pinpointing target audiences, crafting persuasive sales letters, and optimizing marketing emails. Boost your campaigns with AI-generated content.

License: MIT License

Python 100.00%

openai-marketing-assistant's Introduction

OpenAI Marketing Assistant

Command line tool to leverage OpenAI's API for various marketing tasks.

Features/Tasks examples

  • Identify Niche Problem and Solution
  • Define Target Audience and Create Avatar
  • Write a Sales Letter in Story Form Using PAS Framework
  • Create a Landing Page for the Product or Service

Prerequisites

  • Python 3.6 or higher
  • OpenAI API key(see OpenAI API for more information)
  • OpenAI Assistant ID token(see OpenAI API for more information)

Usage

  1. Clone the repository:
git clone https://github.com/rp42dev/OpenAI-Marketing-Assistant.git
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables:

Create a .env file in the root directory of the project and add the following environment variables but make sure to replace the values with your own.

Environment variables example

  1. Set up configuration file:

Create a config.json file in the root directory of the project and add the following configuration, use the example below as a guide.

Configuration file example

  1. Run the application:
python main.py

Environment variables example (.env)

OPENAI_API_TOKEN=sk-proj-1234567890...
ASSISTANT_ID_TOKEN=asst_1234567890...

Configuration file example (config.json)

{
    "task_groups": {
        "Market Research and Targeting": {
            "Identify Niche Problem and Solution": {
                "instructions": "Identify a specific problem within a niche and propose a solution that product or service addresses. Provide a brief description of both the problem and how the product or service can solve it."
            },
            "Define Target Audience and Create Avatar": {
                "instructions": "Define the target audience and create a detailed avatar. Include demographics, psychographics, and any other relevant details."
            }
        },
        "Marketing and Promotion": {
            "Write a Sales Letter in Story Form Using PAS Framework": {
                "instructions": "Write a sales letter in the form of a story using the Problem-Agitate-Solution (PAS) framework. The letter should address the target audience's pain points, agitate the problem, and present the product or service as the solution."
            },
            "Create a Landing Page for the Product or Service": {
                "instructions": "Create a landing page for the product or service that includes a headline, subheadline, call-to-action, and any other relevant information. The landing page should be designed to convert visitors into leads or customers."
            }
        }
    },
    "function_groups": {
        "corrections": {
            "Task Correction": {
                "instructions": "Make corrections to the previous response based on user input."
            }
        }
    }
}

Contributing

Contributions are welcome! If you have any ideas, suggestions, or bug fixes, please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

openai-marketing-assistant's People

Contributors

rp42dev avatar

Watchers

 avatar Kostas Georgiou avatar  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.