Personalization

Overview

The Gradient Accelerator Block for personalization customizes documents and content to fit the desired tone for a target audience. Personalization can enhance the customer experience in chatbots and marketing copy, allowing users to focus on the information itself or leverage this as inspiration.

Create an account and workspace

If you haven't already, go to gradient.ai, click sign up and create your account. Once you have verified your email, log in to the account. Click "Create New Workspace" and give it a name.

You can see your workspaces at any time by going to https://auth.gradient.ai/select-workspace.

Use the Accelerator Blocks playground

You can easily try out the Gradient Accelerator Block for document summarization via the playground UI.

  1. Log into Gradient and select the workspace you want to use. Select the “Accelerator Blocks” tab from the left sidebar.

  2. Navigate to the “Personalization” block.

    Screenshot 2024-01-23 at 11.02.05 PM.png
  3. Insert the text or content into the input and provide a target audience.

  4. Hit “Submit” and a revised version of the content should be generated below!

Use the SDK

The SDK is best suited for integrating personalization into your application or business workflow.

Follow our SDK Quickstart to get set up. From there, simply provide your the content you want to customize and the target audience.

from gradientai import Gradient

gradient = Gradient()

document = (
    "Harry Potter fans have been eagerly anticipating Hogwarts Legacy "
    + "since the game was first revealed in 2020, and unfortunately, it's "
    + "been a long wait to play the game. Hogwarts Legacy was originally "
    + "supposed to launch in 2021, but then its release date was pushed "
    + "back to 2022. For months, fans have been anticipating a holiday "
    + "2022 release date for the game, but now Hogwarts Legacy has been "
    + "delayed yet again, pushed back to 2023. With Hogwarts Legacy "
    + "getting its own State of Play presentation earlier this year, it "
    + "seemed like the game was on track to meet its planned 2022 release "
    + "date. After all, the Hogwarts Legacy gameplay footage shown during "
    + "the State of Play looked quite impressive, indicating that the "
    + "game's development was going well and nearing its end point."
)
audience_description = "Someone who loves playing action-adventure RPGs."

result = gradient.personalize(
    document=document,
    audience_description=audience_description
)