Code Monkey home page Code Monkey logo

llmtobraze's Introduction

LLM to Braze

LLM to Braze is a Python application that integrates OpenAI's Large Language Model (LLM) with the Braze customer engagement platform to generate personalized email content for individual users based on their Braze profile data.

Features

  • Retrieves user data from Braze using the Braze User Export API
  • Utilizes OpenAI's LLM to generate personalized email content based on user data
  • Sends personalized emails to users using the Braze Messaging API
  • Supports the use of email templates with editable sections for personalized content

Requirements

  • Python 3.x
  • OpenAI API credentials
  • Braze API credentials

Installation

  1. Clone the repository: git clone https://github.com/your-username/llm-to-braze.git Copy code
  2. Install the required dependencies: pip install -r requirements.txt Copy code
  3. Set up your API credentials:
  • Replace "your_openai_api_key" with your actual OpenAI API key in the code.
  • Replace "your_braze_api_key" with your actual Braze API key in the code.
  • Replace "your_app_id" with your actual Braze app ID in the code.

Usage

  1. Prepare your email template:
  • Define your email template in the email_template variable in the code.
  • Use the <LLM Editable> tag to indicate the portion of the email that should be personalized by the LLM.
  1. Specify the user IDs:
  • Update the user_ids list in the main function with the desired user IDs for which you want to generate personalized emails.

llmtobraze's People

Contributors

richardaragon 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.