Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Learn more about Partner AddOns that are available within the Beefree SDK Developer Console, and how to integrate them into your application.
Partner AddOns are available for Beefree SDK paid plan types.
Partner AddOns can easily be integrated with your application in a matter of minutes by installing them inside of the Developer Console. You can reference available Partner AddOns inside of the Partner AddOn Directory. If the AddOn with the functionality you are looking for is not offered within the Partner Directory, you also have the option to create your own Custom AddOn.
At a high-level, these AddOns enable you to add extended functionality and capabilities to your application. These extended functionalities empower you to customize your end users' experience based on their interests and the desired tasks they are trying to perform with your app. The AddOns work as additional features you can opt in for on top of the base features that come with your Beefree SDK plan type.
You can find the Partner AddOns Marketplace within the Beefree SDK Developer Console.
Take the following steps to access the Partner AddOns Marketplace:
Log in to your Developer Console.
Navigate to the application you'd like to add a Partner AddOn to.
Click on the Details button.
Navigate to AddOns and click View more.
You'll be redirected to the AddOns page.
Click on the Browse AddOns button.
You'll be redirected to the Marketplace with the available AddOns.
Note: Partner AddOns are very intutive and quick to install. For steps on how to install a Partner AddOn, navigate to Installing Partner AddOns.
Once you successfully install a Partner AddOn following the steps outlined in Installing Partner AddOns, it will be available to your application's end users. Depending on the AddOn, you may or may not apply configuration settings to manage the functionality of the AddOn. For example, you may want to apply configurations to AI-related AddOns to control tokens and associated costs.
The Alternate Text Generation with AI AddOn enables host application end users to instantly generate alternate text for images using AI. This feature is only available for images.
Visit the Alternate Text Generation with AI Knowledge Base article to learn more about the key benefits and use cases of this feature. Continue in this article to learn more about how to implement the Alternate Text Generation with AI AddOn in your host application.
Prior to getting started with the configuration, ensure you have the following:
A working subscription with Azure
Superpower or Enterprise plan
This section discusses the steps you need to take to configure alternate text generation in your host application.
To active alternate text generation with AI in your Beefree SDK Developer Console, take the following steps:
Go to the Beefree SDK Developer Console
Enter your application
Click on “AddOns”
Select the “Azure AI Vision – Image Analysis” AddOn
Click “Install”
Once you click “Install”, the “Set Up Content” pop up will appear to configure the AddOn
Toggle “Enable” to on
Insert your Azure API Key and Endpoint
Note: If you do not yet have an Azure API Key and Endpoint, navigate to the Microsoft Azure Configuration Steps of this guide.
Azure Computer Vision is a key component of the Alternate Text Generation with AI AddOn. The steps highlighted in this section will guide you through how to obtain your Computer Vision or Cognitive Services API Key and Endpoint. If you have already obtained both, you can skip this section and navigate to the Limit the Usage section of this guide to learn more about customizing the AddOn for your end users.
Take the following steps to configure Azure Computer Vision and successfully integrate the AddOn into your host application:
Login to the Microsoft Azure Portal
Go to “Azure services”
Click “Create a resource”
Search “Cognitive Services”
Select “Cognitive Services” or “Computer Vision”
Note: Cognitive Services allows you to use other functions of Azure AI, but either “Cognitive Services” or “Computer Vision” will work for configuring the alternate text generation. Ensure you select the feature that is best for your use case.
Click “Create”
It will ask you for “Project Details”
Complete the following information to satisfy the “Project Details” requirement:
Subscription
Resource group
Instance Details
Region
Name
Pricing tier
Note: Version 4.0 is not yet available in all regions, but it is required for this feature to work. If you only have access to the 3.2 version, this feature will not work. Ensure that you have access to the correct version.
Click “Review + create” to create the resource
Azure will create your resource with an endpoint and API key
Input in the endpoint in the provider url field within in the Beefree Developer Console
Input in the API key within the API key field within in the Beefree Developer Console
Note: Once you complete these steps, wait at least 15 minutes for the resources to become available. After 15 minutes, you will be able to move forward with using your API Key and Endpoint with the feature.
For more information, visit the Microsoft Azure Computer Vision documentation.
handle
String
'ai-alt-text
'
Represents the identifier for the specific add-on handling alt text generation.
infoMessage.detail.consumedImages
Number
5
Indicates the number of images processed by the bulk alt text generation call.
imagesCounter
Number
10
Keeps a running total of the number of images that have been processed for alt text generation.
imagesAvailable
Number
100
Indicates the total number of images available for alt text generation based on the user's subscription or quota.
isIconDisabled
Boolean
true
Determines whether the icon for the add-on is disabled, based on whether the imagesCounter
has reached the imagesAvailable
limit. Default value is false
.
isUpsellEnabled
Boolean
true
Determines whether upsell options or notifications should be enabled for the user.
refreshedUsageSettings
Object
{ addOns: [...] }
Contains the updated configuration settings for the add-on, including the current usage metrics and state settings.
bee.loadConfig
Function
bee.loadConfig(refreshedUsageSettings)
Responsible for reloading the configuration settings for the add-on to reflect the latest usage metrics and states.
After you complete the configuration, the Alternate Text Generation with AI tool will be available to your end users. At this point in the process, the tool is offered for free to your end users. Take the steps outlined in this section to limit the usage of this feature for your end users.
The onInfo
call in the following code snippet updates the usage limits for the Alternate Text Generation with AI feature. When AI-generated alternate text is used, the infoMessage.detail.consumedImages
field indicates how many images were processed. This number is added to imagesCounter
, which keeps track of the total images used so far. The backend processes images in bulk, so imagesCounter
reflects the cumulative count of consumedImages
from a single backend call. The refreshed settings ensure that the isIconDisabled
property is updated if the image usage limit (imagesAvailable
) is reached, and the settings are reloaded with bee.loadConfig(refreshedUsageSettings)
.
If you’d like to limit the usage of the Alternate Text Generation with AI tool, take the following steps to configure usage limitations.
Implement the onInfo
call
Sample code onInfo
call:
Confirm the AddOn handle is ai-alt-text
The following sample code shows imagesCounter
and imagesAvailable
, which determine how many images you have used, and the image limit the host application setup for users, respectively.
Note: In this example, the end user can only make five requests in total, after the fifth request, the end user will no longer be able to generate alternate text. The number five is defined in the configuration and can be customized. For example, if imagesAvailable
is set ten, the end user will be able to perform ten requests.
In the AddOn settings, isIconDisabled
is configured to automatically disable the Alternate Text Generation with AI feature when the counter reaches zero. However, through the Token Upselling notification banner, application end users will have the opportunity to purchase more images and regain access to the feature.
To display the widget usage, take the following steps:
The call looks for imagesAvailable
value and imagesUsed
value
To activate the display usage widget, provide the usage data via the AddOn settings. Since the editor doesn’t track usage, you’ll need to refresh the values via the bee.loadConfig
method to keep the display widget data current
Note: If either of the settings imagesAvailable
or imagesUsed
are not sent, the application will not show the consumption.
This section discusses advanced permissions for your application users. You can use the two settings IsIconDisabled
and enabled to configure permissions for your end users. To configure both booleans, take the steps outlined in the subsequent sections.
To disable prompts per user, perform the following:
Set isIconDisabled
to true
Note: The end user will be able to see the button, but will not be able to use the button through setting the isIconDisabled
setting to true
You can reference the difference in appearance in the following images.
Image 1.0 displays an example of the wand when the feature is not active.
Image 2.0 displays an example of the AI wand icon when the feature is active.
To disable the AddOn completely for an end user, perform the following:
Set the enabled
field to false
Ensure you familiarize yourself with the following feature limitations to ensure this AddOn is suitable for your application’s needs:
You can generate the caption for an image multiple times, but you’ll always get the same result for the alternate text
The AI model does not work well with PNG or SVG images with transparent backgrounds, especially when the outline is black
Only available in English
Not available for Multi-language templates
Images must have URLs and be publicly accessible
Only available for static images, not available for dynamic images
Not available for custom AddOn of image type
Unlike the OpenAI AddOn, the Alternate Text Generation AddOn does not charge by tokens. Rather, the AddOn charges for each image caption you generate. Reference the Microsoft Azure Pricing page for additional information.
If you want to know if you are being charged, and you have the usage widget enabled, you will only be charged if the counter goes down.
Note: If an error occurs after the icon for the Alternate Text Generation AddOn is clicked by an end user, and text is not generated, you will not be charged. You will only be charged for instances when a caption is successfully generated.
In the event an error occurs, the end user will see an alert and you will receive a message from the Azure API with additional details regarding the error.
For more information on potential errors and error codes, reference the Azure Cognitive Services REST API reference or the Computer Vision REST API reference – Azure Cognitive Services depending on which service you opted in for to configure this feature.
The AI Alternate Text Generator is compatible with token upselling. The token upselling feature notifies the end users when their token usage is running low and when it is completely out. Both notifications include an option for the end user to purchase more tokens. The appearance of these notifications are customizable. Read the Token Upselling documentation to learn more about configuring token upselling within your host application.
Q: Will Azure keep the photos used with this feature?
A: The following answer is directly from the Azure Data and privacy for Image Analysis website:
The images you submit to Image Analysis service are processed in real time, and the input images and results are not retained or stored in the service after processing.
For more information on image processing and data security, refer to the Azure AI services security documentation.
Visit our Partner AddOn directory for a list of available and upcoming AddOns.
You can use ready-to-go AddOns to extend the functionality of Beefree SDK (you can also build new AddOns).
To browse and install existing AddOns, log into the Beefree SDK Console and click on Details to navigate to the application details page.
In the lower part of the page, locate the Application configuration section and click on AddOns.
You will be taken to a page that lists the AddOns that have been installed for this application. If you are just getting started, the list will be empty.
Click on Browse Partner AddOns to get the list of ready-to-install AddOns. We call them Partner AddOns because they were developed by companies that partnered with us to extend Beefree SDK’s core functionality.
You will deal directly with those companies with regard to signing up for an account, cost, support, etc.
You will instead click on Create a Custom AddOn if you want to build a new AddOn for Beefree SDK.
When you click on the Browse Partner AddOns button, a list of AddOns is displayed. You can browse them and select what you need to install.
After installing a Partner AddOn, you will need to configure it by clicking on the Edit action. A form will be displayed.
At the top of the form you will find the AddOn name and some links to the AddOn documentation. If any signup is required, that is the company that you will need to contact.
Below that, you will see the following form fields:
API Key Shown if this is an AddOn where a signup is required (you will be provided with an API key once you have signed up). Contact the provider of the AddOn if that is the case, so that you can learn about signing up, costs involved, the type of support they provide, etc.
Handle A unique identifier for this AddOn. You will use this unique identifier to pass information to the AddOn from your application, if and when needed.
Enabled A toggle element to enable and disable the AddOn. When toggled OFF, the AddOn is not visible to end users of the builder in your application.
Icon If you want to customize the icon associated with the tile shown in the builder Content tab, you canupload an image from your local PC. Choose an image that is small in size: we recommend a 64 x 64 pixel SVG file.
Labels
Title: This is the name that will be used for the tile in the builder’s Content tab (e.g. “Countdown timer”).
Call-to-action button: The label for the call-to-action button (e.g. “Select a Countdown Timer”), which is shown to end users on the button to configure the AddOn.
Placeholder text: The message shown to end users in the builder stage when the tile is first dragged and dropped into it.
With the following setup…
… you would get the following outcome:
It displays when the AddOn is added to the editing stage and invites the user to take the next step.
When the AddOn content is selected, the same button is displayed in the content properties.
Visit our AddOns Configuration to learn more about how to configure custom and partner addons.
The Stability AI AddOn is only available for Superpowers and Enterprise plans.
The Stability AI AddOn converts text to images. This feature allows your end users to submit descriptions of what they would like to see in their AI-generated images, and to also submit negative prompts of what they do not want to see in their image. Once they submit the prompt and negative prompt, they'll receive an AI-generated image that they can use directly within their designs. Visit the AI-generated white label end user guide to learn more about how this feature works for your application's end users.
This section discusses the prerequisites and steps you need to take to get started with this feature.
Prerequisites
Stability AI API key
Stability AI addOn installed in the Beefree SDK Developer Console
Take the following steps to activate this feature:
Log in to the Beefree SDK Developer Console.
Navigate to the application you'd like install the addOn in.
Install the Stability AI addOn.
Provide the requested details.
Save your changes.
The addOn is now activated.
The Stability AI text-to-image AddOn uses a new handle.
This handle is ai-image-generation
.
Consider the following settings when configuring this feature in your code:
imagesAvailable
number
Images available.
If not provided images are not counted and the user can generate an infinite number of images.
imagesUsed
number
The images used.
isGenerationDisabled
boolean
Disable the generation.
False by default.
upsellTrigger
number
Represents the number of remaining images that will show the upsell CTA.
Default is 3.
isUpsellEnabled
boolean
Enable or disable the upsell.
Default is false.
folderName
string
The name of the folder where the images will be saved.
Default is “AI Generated Images".
This section includes sample code you can use to configure this AddOn.
These AddOns need to be installed from your Beefree SDK Console. Some of them are offered by third-party providers, and they might require an active subscription with those providers in order to be used.
The Custom AI Writing Assistant AddOn enables host applications to integrate their own LLM models with Beefree SDK. This allows host applications to provide their end users with advanced AI writing capabilities that are specific to their domains. Using the Content Dialog, this AddOn employs the same entry points as the AI writing assistant, allowing full control over the AI experience within your application. Once your Custom AI Writing Assistant AddOn is fully configured, the Content Dialog displays the modal you created within the user interface when end users click the Write with AI button in the sidebar.
How do I enable the Custom AI Writing Assistant AddOn? | Terms of Services
The Stability AI AddOn converts text to images. This feature allows your end users to submit descriptions of what they would like to see in their AI-generated images, and to also submit negative prompts of what they do not want to see in their image. Once they submit the prompt and negative prompt, they'll receive an AI-generated image that they can use directly within their designs.
How do I enable the Stability AI AddOn? | AI Providers and Data Security | Terms of Services
Through this AddOn and Multi-language templates, you can empower your end users to create up to six different language versions of a single design. Once your end users create their new language versions, they can click the Translate button to automatically translate all the translatable content within their designs.
How do I enable the DeepL AddOn? | AI Providers and Data Security | Terms of Services
Empower users to generate text quickly with AI. With this AddOn, your end users will see a new “Write with AI” button for Title, Paragraph, List, and Button content blocks. Beefree SDK processes your end users' prompts, sends them to your AI provider, and returns the response to the end user. They can then decide to apply or regenerate the response. By integrating the AI Writing Assistant, you provide your end users with a powerful tool to complete their designs quickly, which helps them maintain a competitive edge. Choose between Azure OpenAI or OpenAI as providers for this feature, our AddOn is quick and simple to integrate.
How do I enable the AI Writing Assistant AddOn? | Developer’s FAQ for OpenAI | Webinar
Generate alt-text descriptions with the power of Computer Vision. Azure AI Vision is a unified service that offers innovative computer vision capabilities. Image analysis pulls from more than 10,000 concepts and objects to detect, and caption images.
For setup, please reach out to support@interactiveoffers.com, and we will provide you with an API key that identifies your application on our network.
Over 600 digital publishers use Interactive Offers to help captivate new audiences and discover new monetization solutions. These programmatic email ad solutions provide a non-intrusive way to engage users with your content while earning revenue from every email you send.
Create urgency with custom-designed countdown timers.
Give your users the ability to design fully customized countdown timers without ever leaving the editor. Create urgency for sales, events, holidays, webinars, and more, with this powerful yet easy-to-use AddOn.
Addon website | About the AddOn | Setup instructions | Privacy Policy | Support
Engage and inform with dynamic content, timers, and millions of visuals.
Email from your platform will come alive with this powerful set of dynamic-content tools and a massive collection of ready-to-use visuals. On-open content transforms the email experience into a live marketing channel, backed by millions of royalty-free visuals to grab inbox attention with eye-catching emails.
Addon website | Privacy Policy | Support
Boost clickthrough rates with dynamic countdown timers.
Sendtric countdown timers are perfect for your customers to create urgency in their campaigns. With our robust architecture and limitless customization options, our timers can be used for a variety of use cases such as sales, events, deadlines, new account sign-ups, abandoned cart reminders, and much more.
Addon website | About the AddOn | Privacy Policy | Support
Capture your customer’s attention and stand out from the competition with the use of autoplay video in email.
It works with all email clients and devices. Get up to 90% of views on your opened emails, against only 16% that can be achieved including a static picture linked to YouTube. Autoplay video in email is the best solution to quickly spread your message and get millions of video views.
Addon website | About the AddOn | Privacy Policy | Support
The GIFs by GIPHY AddOn gives your customers the best source for GIFs, ready to use in their emails and pages, without leaving the application. This AddOn is developed by Beefree SDK and powered by GIPHY.
Once installed and configured, they will see a new content tile in the builder. Once dragged into the email or page, a click on a button in the stage area will launch a GIPHY search dialog. Clicking on a GIF will import it instantly into the email or page.
Addon website | About the AddOn | Privacy Policy | Support
The Stickers by GIPHY AddOn gives your customers the best source for stickers, ready to use in their emails and pages, without leaving the application. This AddOn is developed by Beefree SDK and powered by GIPHY.
Once installed and configured, they will see a new content tile in the builder. Once dragged into the email or page, a click on a button in the stage area will launch a GIPHY search dialog. Clicking on a sticker will import it instantly into the email or page.
Automatically translate content for different language templates using the DeepL addOn.
The DeepL AddOn is only available for Superpowers and Enterprise plans.
The new DeepL addOn available in the Developer Console empowers your end users to translate all the translatable content within their designs using the new translate button. This feature requires that you have Multi-language templates configured for your application, and that you have a DeepL API key. Once you configure both within your host application, your end users will be able to automatically translate the translatable content within the different language versions of their designs. Also, now your end users can have up to six different language versions of their designs. Visit the Automatic Translations white label end user documentation to learn more about how this feature works for your application's end users.
The following content types qualify as translatable content:
Button: label
- The text displayed on the button.
Paragraph: html
- The HTML content of the paragraph.
Heading/Title: text
- The textual content of the heading or title.
List: html
- The HTML content of the list.
Image: alt
- The alternative text for the image.
Video: thumbAlt
- The alternative text for the video's thumbnail.
Icon: text
, alt
, title
- The textual content, alternative text, and title of the icon.
Menu: text
, title
- The textual content and title of the menu.
Title
Description
Subject
Preheader
The HTML translatable property refers to the text within the HTML tags of the element itself. For the "Button" module, the translatable property is "label," which specifies the text displayed on the button. In the "Paragraph" module, the translatable property is "html," indicating the HTML content within the paragraph tags. For "Heading/Title," the property is "text," representing the textual content of the heading or title. The "List" module also uses "html," referring to the HTML content within the list tags. The "Image" module has the "alt" property, which provides alternative text for the image. In the "Video" module, "thumbAlt" denotes the alternative text for the video's thumbnail. The "Icon" module includes "text," "alt," and "title," covering the textual content, alternative text, and title of the icon, respectively. Lastly, the "Menu" module uses "text" and "title" for its textual content and title.
The following video shows a template with Heading, Paragraph, and List modules. When the Translate button is clicked, the text within the translatable properties for those modules are translated. The following section displays a JSON example with a translation in Spanish.
This section discusses the prerequisites and steps you need to take to get started with this feature.
Ensure the Multi-language templates feature is toggled on inside of the Developer Console.
Note: DeepL offers a free tier for their plans. You can obtain an API key from DeepL for free to get started with this feature.
Take the following steps to activate this feature:
Log in to the Beefree SDK Developer Console.
Navigate to the application you'd like install the addOn in.
Install the DeepL addOn.
Provide the requested details.
Save your changes.
Activate this feature by adding the new configuration parameter templateLanguageAutoTranslation
and setting it to true
.
The following code sample displays an example of the templateLanguageAutoTranslation
, templateLanguage
, and templateLanguages
parameters.
If you have a custom top bar in your application, take the following additional steps:
Describe how to translate a template:
translateTemplate
→ bee.translateTemplate({ language: 'it-IT' })
Describe how to reset a translation:
resetTemplateTranslation
→ bee.resetTemplateTranslation({ language: 'it-IT' })
A function to translate the template to a specified language using the Beefree SDK.
React Translate a Template example
JavaScript Translate a Template example
HTML example
A function to reset the translation of the template to its original state using Beefree SDK.
React Reset a Translation example
Reset a Translation JavaScript example
HTML example
If errors occur, onWarning
or onError
will be triggered. If the request completes successfully there’s no direct feedback.
The following errors are returned by the backend service when something goes wrong during the translation.
6001
Unauthorized
401
6050
Generic Error
500
6100
Bad Request
400
E.g. 'sourceLanguage' and 'targetLanguage' must be defined
6150
Validation Error
400
E.g. language X is not supported
6200
Bump service error
[error returned by the Bumper]
E.g. Error while computing the fields to translate
6250
Bump service error
500
E.g. Error while applying the translation
6350
Provider service error
500
[error returned by DeepL]
Learn more about how to configure and use our Azure AI Vision - Image Analysis AddOn.
Learn how to configure OpenAI as a provider for the AI Writing Assistant AddOn.
The AI Writing Assistant AddOn is only available for and plans. The AI Writing Assistant and OpenAI provider are available for Email, Page, and Popup builders.
This page discusses how to configure OpenAI as a provider for the within the Beefree SDK Developer Console. If the AI Writing Assistant AddOn is already enabled for your application, and you'd like to switch providers, take the steps outlined in the section of the to enable OpenAI as your new provider.
Prior to getting started, ensure you have the following:
An OpenAI account and API Key.
The AI Writing Assistant AddOn enabled in the .
Beefree SDK .
Take the following steps to configure this provider:
Log in to the .
Navigate to the application with the AI Writing Assistant enabled.
Click Details.
Navigate to the AddOns under Application configuration section.
Click View more.
Click the Manage Providers tab.
Click Add provider.
Complete the required information.*
Click Save to save your provider configuration.
Consider the following shared logic when integrating the AI Writing Assistant AddOn and OpenAI as a provider:
Learn how to configure Azure OpenAI as a provider for the AI Writing Assistant AddOn.
The AI Writing Assistant AddOn is only available for and plans. The AI Writing Assistant and Azure OpenAI provider are available for Email, Page, and Popup builders.
This page discusses how to configure Azure OpenAI as a provider for the within the Beefree SDK Developer Console. If the AI Writing Assistant AddOn is already enabled for your application, and you'd like to switch providers, take the steps outlined in the section of the to enable Azure OpenAI as your new provider.
Prior to getting started, ensure you have the following:
Beefree SDK .
An Azure OpenAI account, API Key, URL Provider, and Deployment ID.
The AI Writing Assistant AddOn enabled in the .
Take the following steps to configure this provider:
Log in to the .
Navigate to the application with the AI Writing Assistant enabled.
Click Details.
Navigate to the AddOns under Application configuration section.
Click View more.
Click the Manage Providers tab.
Click Add provider.
Complete the required information.*
Click Save to save your provider configuration.
Consider the following shared logic when integrating the AI Writing Assistant AddOn and Azure OpenAI as a provider:
Read this technical documentation to learn more about how to configure bulk Alt text generation with AI.
Bulk Alt text Generation with AI is a feature that works as an extension to our existing . The new functionality enables you to provide your end users with an easy method to create alt text captions across multiple image module types simultaneously using artificial intelligence. Through this feature, your application end users will be able to boost the accessibility of their content while also saving a significant amount of time.
While this feature works for multiple image modules, it does not work for dynamic images.
Prior to configuring this feature, ensure that you have the following:
Superpowers or Enterprise account
Enabled Azure Vision AddOn in your Developer Console
If you have a default alt text set, the image won't be included among the ones that need an AI-generated alt text. If you have a default value set in your defaultContents
, this will require the end user to delete the default text before being able to generate the new alt text with AI. To avoid this behavior, and for this feature to work best, we recommend you do not set a default value for alt text in your beeConfig
.
If you do have a default value set, you can delete it one of the following ways:
Set the alt property as an empty string
Delete the line of code from your defaultContents
The following code shows an example of the alt
property within the defaultContents
. In the scenario presented in the following code, we recommend deleting the Default alt
value set within the alt
property.
The following code shows an example of the alt
property set as an empty string. This is how we recommend you set your code for this feature to work best.
Note: You can still use the defaultContents
alt
value and the AI-generated Alt text in Bulk at the same time. However, it will require the end user to delete the default alt text prior to using the AI-generation tool for that particular image module.
The type of images they can create alt-text for are the following:
Images
Stickers
Icons
GIFs
Custom AddOn Images
This feature is not compatible with Multi-language Templates, and is currently only available in English.
If you experience any issues with setting up this AddOn, take the following measures to troubleshoot your configuration:
Ensure your Azure API key is connected correctly within your Beefree SDK Developer Console.
Ensure your custom endpoint is set up correctly in the SDK console.
As you configure this feature, ensure you consider the following:
Learn more about available providers for the AI Writing Assistant AddOn.
The provides your application's end users with access to the the Write with AI button for text-based content blocks within the builder. When your end users click this button, a modal appears prompting them to submit a prompt to the AI Assistant. This is the portion of their journey that interacts with the provider that you configured within the . Beefree SDK offers a variety of providers as options for enabling the AI Writing Assistant AddOn for your application's end users. These providers each include their own set of benefits, and ultimately, the one you select for your configuration should be the provider with the set of benefits that most closely aligns with the goals you have for your application.
This page outlines and discusses each of the available provider options, and their corresponding set of benefits.
This section discusses each of the available providers.
is a versatile and widely recognized provider in the AI space. By integrating OpenAI into your application through the , your end users gain access to advanced generative text capabilities powered by GPT models. These models are known for their ability to create natural-sounding, coherent text across various use cases, such as marketing copy, email drafts, and creative writing. OpenAI's API also supports a high level of customization, allowing you to fine-tune the model's behavior to align with your application's goals.
Access to industry-leading GPT models for advanced text generation.
Broad support for a variety of languages and writing styles.
Extensive documentation and community resources to support implementation.
Highly scalable infrastructure capable of handling large user bases.
combines the power of OpenAI’s GPT models with Microsoft’s Azure cloud platform. This integration provides robust enterprise-level security, compliance, and availability while delivering powerful AI capabilities to your application's end users. With Azure OpenAI, you also benefit from seamless integration with other Microsoft services, making it ideal for organizations already using the Azure ecosystem.
Enterprise-grade security and compliance standards, including regional data hosting options.
Integration with other Azure tools and services for enhanced functionality.
Flexible scaling to accommodate varying levels of user demand.
Support for high-availability setups, ensuring consistent performance.
A strong emphasis on safety, ethical considerations, and AI alignment.
Excellent for conversational use cases and creative writing needs.
Simplified integration process with clear documentation and support.
Scalable solutions that maintain consistency and reliability.
The AI Writing Assistant AddOn is only available for and plans.
Use this AddOn to enable the AI Writing Assistant for your end users. This AddOn allows users to generate text within their designs using AI, helping them complete their designs faster and more efficiently. This AddOn integrates with OpenAI, Azure OpenAI, or Anthropic as the providers for this feature.
With this feature, your end users will see a Write with AI button for Title, Paragraph, List, and Button content blocks. Beefree SDK processes your end users' prompts, sends them to your AI provider, and returns the response to the end user. They can then decide to apply or regenerate the response.
By integrating the AI Writing Assistant, you provide your end users with a powerful tool to complete their designs quickly, which helps them maintain a competitive edge. This AddOn is quick and simple to integrate.
The following image provides an example of how the AI Writing Assistant looks to your end user:
Azure OpenAI, OpenAI, or Anthropic account and credentials.
AI Writing Assistant AddOn enabled in the Developer Console.
Take the following steps to switch providers:
Log in to the Beefree SDK Developer Console.
Navigate to the application you'd like to use.
Navigate to the application's AddOns section.
Click on the Edit button for the AI Writing Assistant AddOn .
Click Manage providers.
Click Add provider.
Complete the required information*.
Click Save.
*The following information is required for each provider.
When managing your providers, you will have the following options:
Edit
Deactivate
Delete
Azure OpenAI, OpenAI, and Anthropic are the only provider options for the AI Writing Assistant.
Cognitive Vision is the provider for the Alt text generation with AI feature.
In certain scenarios, you may find the need to personalize both the user interface (UI) and the operational features of the AI Writing Assistant AddOn. This is particularly applicable when you want to achieve objectives such as:
Controlling Access to the Prompt: You might want to limit who can access and manipulate the prompt. In a shared environment, for instance, you may want to restrict certain users from altering the prompt, which is crucial for maintaining consistency and avoiding unwanted changes.
Enabling Per User or Per Content Type: You might want to limit who can access the AI so you can up-sell the feature to end-users. Or, you may only want to enable the AI capability for specific content types, such as paragraphs vs. buttons.
Disabling Automatic Suggestions: The AI Writing Assistant AddOn can generate automatic suggestions at the prompt, which may not always be desirable. In such cases, you might want to disable this feature to have more control over the input and output at the prompt.
We’ll cover all of these scenarios in the following sections as we discuss the settings and configuration options available for developers.
Currently, the following settings are supported:
With each prompt response, the addon will report the usage data provided by Azure OpenAI or OpenAI API via the editor’s onInfo
callback without storing or tracking the data.
You can also monitor when the user applies a prompt response.
You may choose to track the end-user’s total usage through the aforementioned onInfo
callback if desired. Additionally, you may choose to show the usage data to the user via the built-in display widget. To activate the display usage widget, provide the usage data via the addon settings. Since the editor doesn’t track usage, you’ll need to refresh the values via the bee.loadConfig
method to keep the display widget data current.
See below for an example of how the UI will render when provided with the optional display usage widget.
To enable the AI Writing Assistant AddOn, but disable the prompt per user, pass the isPromptDisabled
boolean parameter as true
.
The following example will disable the prompts for the user with an uid
of inactive-user
.
To disable the AI Writing Assistant AddOn for a particular user, use the following configuration. Ensure the enabled
parameter is set to false
. To turn the AddOn back on for a user, edit the parameter to true
.
The AI Writing Assistant AddOn is available for the following content blocks:
Title
Paragraph
List
Button
You may utilize the Advanced Permissions configuration to disable AI Writing Assistant AddOn per content type.
The following example will disable the addon for the paragraph block:
The AI Writing Assistant AddOn includes preset prompt suggestions to facilitate the content creation process. These appear after the initial draft of your text has been formulated and whenever further refinement is needed. Please note that this function applies only when editing existing text through the AI prompt. The suggestions will not appear for placeholder text.
Here’s a simplified step-by-step guide on how to use suggestions, as shown below:
Start with your draft text added to the design area.
If you desire to adjust the tone to be more formal, for example, click on the paragraph, list, title, or button you want to modify.
Navigate to the ‘Write with AI’ option.
Click on the area designated for adding prompts.
You’ll notice the prompt suggestions popup.
Select the ‘Make it [desired tone]’ option, making sure to replace [desired tone] with a value (e.g., funny)
Click ‘Generate’.
The AI will then generate a revised version of your content, matching the tone you entered.
Below are the preset prompt suggestions we have identified for the different content tiles, along with their corresponding translation key, in case you’d like to revise the prompt through our custom languages feature.
Prior to configuring the AI Writing Assistant AddOn, consider the following:
Scrolling behavior
This section will discuss how to manage an odd scrolling behavior related to the AI Writing Assistant AddOn. At times, the AI Writing Assistant side panel opens and requires the end user to scroll down to reach the prompting area.
The following image shows an example of this behavior:
If you encounter this behavior, take the following steps to avoid the need for scrolling to access the prompting area:
Navigate to your CSS code.
Change the height of your container using the calc()
function as shown in the following examples:
This sets the height of the element to be the full height of its parent (100%
) minus 100px
, which accounts for an offset such as a footer.
This sets the height of the element to be exactly 100%
of its parent's height with no offset.
The calc()
function allows for mathematical expressions in CSS values, making it versatile for dynamic layouts.
Save your updated CSS.
You can now access the prompting section of the AI Writing Assistant on the front end without scrolling down the side panel.
The following image shows an example of this result:
*Reference the section of the to reference what information is required to configure OpenAI as a provider.
Methods: The methods used for the OpenAI provider are inherited from the . These include functionality for generating content for supported block types (Title, Paragraph, List, Button) and for handling metadata.
Events: The integration supports all events from the , such as tracking user actions and processing content generation requests.
Callbacks: All callbacks associated with the OpenAI provider are inherited from the . They manage notifications for successful or failed content generation attempts.
Billing: Refer to for more information.
*Reference the section of the to reference what information is required to configure Azure OpenAI as a provider.
Methods: The methods used for the Azure OpenAI provider are inherited from the . These include functionality for generating content for supported block types (Title, Paragraph, List, Button) and for handling metadata.
Events: The integration supports all events from the , such as tracking user actions and processing content generation requests.
Callbacks: All callbacks associated with the Azure OpenAI provider are inherited from the . They manage notifications for successful or failed content generation attempts.
Billing: Refer to for more information.
To configure Bulk Alt Text Generation with AI for your application, take the Configuration Steps outlined in our .
AI Alt Text Generation in Bulk is compatible with . Through Token Upselling, you can configure your application to verify that end users have enough tokens to generate alt-text for multiple images at once.
If they do not have sufficient image tokens in their account, you can redirect them to prior to performing the bulk generation.
Repeat the configuration steps outlined in .
You will be billed through your Microsoft Azure account for AI generation-related features. Ensure you for details on pricing.
offers a unique approach to generative AI through its focus on safety and alignment in AI systems. Its Claude models prioritize creating helpful and ethical responses, making it an excellent option for applications where responsible AI use is a priority. Anthropic’s models are designed to work well with conversational and creative writing tasks, ensuring that your end users receive thoughtful and high-quality suggestions.
If the list of providers detailed on this page do not need the requirements you have for your application, Beefree SDK also offers a that allows you to connect your own custom LLM to the Write with AI button on your application's frontend. It also provides you with a mechanism to build a customized modal on the frontend of your application that your end users can interact with to submit their AI prompts to your custom LLM.
Learn more about available settings to customize the .
Learn more about how to enable the .
Learn more about .
Learn more about and implementing a system for your end users to purchase more tokens to keep leveraging AI benefits within your application.
Visit our to learn more about how this feature works on the frontend for your application's end users.
This section discusses the prerequisites and steps you need to take to get started with this feature. You can watch the following for visual steps on how to activate the AddOn and add or change providers. Or, you can continue reading the documentation in this section for a step-by-step breakdown of how to activate the AddOn and add or change providers.
You can also manage your existing providers within the Developer Console. By taking the same steps mentioned in the and navigating to your application's AddOns, you can manage your configured providers.
For provider-specific information and configuration instructions, reference the .
Monitoring Token Usage for Cost Management: By tracking the number of tokens being used, you can effectively manage and regulate your expenses related to using the AI Writing Assistant AddOn. This becomes important when your usage is high, and you must keep a budget check. Learn more about configuring .
Token Upselling: The AI Writing Assistant AddOn can be configured to guide your end users to purchase additional tokens when they run out of available tokens. This feature is called .
Note: All settings are optional and may be refreshed, in real-time, via the instance method (e.g. bee.loadConfig(settings)
) during the active session.
Visit our to learn more about the flow of your end user's information from prompt creation to generated response.
Name
API Key
Type
Name
API Key
URL Provider
Deployment ID
Type
Name
API Key
Type
tokensAvailable
number
Display only value for the optional Display Usage Widget: The total tokens available for the user to consume during the session. If provided, tokensUsed
and tokenLabel
are required.
tokensUsed
number
Display only value for the optional Display Usage Widget: The number of tokens that the addon user has consumed during the current session. If provided, tokensAvailable
and tokenLabel
are required.
tokenLabel
string
Display only value for the optional Display Usage Widget: The API reports token usage, but the host app may refer to tokens as words or any other nomenclature that makes sense to its users. Required when providing usage limits via tokensAvailable
and tokensUsed
parameters.
isPromptDisabled
boolean
Set to true to lock the prompt. The chat interface will be disabled but allow previous answers to be applied.
isSuggestionsDisabled
boolean
Set to true to hide the suggestions popup. Set this to false
to disable the prompt presets.
isUpsellEnabled
boolean
A boolean that confirms whether or not the Token Upsell feature is enabled.
metadataGeneration
boolean
A boolean that confirms whether or not the AI-Generated Meta Tag fields feature is enabled
submitOnEnterKey
boolean
This boolean is set to false
by default. If you change it to true
, it enables submitting the prompt by hitting the Enter button on the keyboard.
Spell-check the content
mailup-bee-common-component-ai.suggest-check-spelling
Correct grammar mistakes in the content
mailup-bee-common-component-ai.correct-grammar
Translate content to [language]
mailup-bee-common-component-ai.translate
Make it [tone] without changing the format
mailup-bee-common-component-ai.adjust-tone
Use Active Voice
mailup-bee-common-component-ai.use-active-voice
Summarize the content
mailup-bee-common-component-ai.summarize-text
Convert the content to the third person without changing the format
mailup-bee-common-component-ai.convert-third-person
Translate content to [language]
mailup-bee-common-component-ai.translate
Make it [tone]
mailup-bee-common-component-ai.make-it-tone
Use Active Voice
mailup-bee-common-component-ai.use-active-voice
Spell-check the content
mailup-bee-common-component-ai.suggest-check-spelling
Correct grammar mistakes and return the content
mailup-bee-common-component-ai.correct-grammar-list
Translate content to [language]
mailup-bee-common-component-ai.translate
Make it [tone] without changing the format
mailup-bee-common-component-ai.adjust-tone
Use Active Voice
mailup-bee-common-component-ai.use-active-voice
Capitalize all letters
mailup-bee-common-component-ai.capitalize-text
Capitalize the first letter of each word
mailup-bee-common-component-ai.capitalize-all-words
Make it [number] words long
mailup-bee-common-component-ai.characters-length
Make it [tone] without changing the format
mailup-bee-common-component-ai.adjust-tone
Translate it to [language]
mailup-bee-common-component-ai.translate-heading
Learn how to configure Anthropic as a provider for the AI Writing Assistant AddOn.
The AI Writing Assistant AddOn is only available for Superpowers and Enterprise plans. The AI Writing Assistant and Anthropic provider are available for Email, Page, and Popup builders.
This page discusses how to configure Anthropic as a provider for the AI Writing Assistant AddOn within the Beefree SDK Developer Console. If the AI Writing Assistant AddOn is already enabled for your application, and you'd like to switch providers, take the steps outlined in the Switch Providers section of the AI Writing Assistant page to enable Anthropic as your new provider.
Prior to getting started, ensure you have the following:
The AI Writing Assistant AddOn enabled in the Beefree SDK Developer Console.
An API Key for Anthropic
Note: Refer to Anthropic’s documentation for instructions on creating an account and generating your API key.
Take the following steps to configure this provider:
Log in to the Beefree SDK Developer Console.
Navigate to the application with the AI Writing Assistant enabled.
Click Details.
Navigate to the AddOns under Application configuration section.
Click View more.
Click the Manage Providers tab.
Click Add provider.
Complete the required information.*
Click Save to save your provider configuration.
*Reference the Required Provider Information section of the AI Writing Assistant AddOn page to reference what information is required to configure Anthropic as a provider.
Consider the following shared logic when integrating the AI Writing Assistant AddOn and Anthropic as a provider:
Methods: The methods used for the Anthropic provider are inherited from the AI Writing Assistant AddOn. These include functionality for generating content for supported block types (Title, Paragraph, List, Button) and for handling metadata.
Events: The integration supports all events from the AI Writing Assistant, such as tracking user actions and processing content generation requests.
Callbacks: All callbacks associated with the Anthropic provider are inherited from the AI Writing Assistant. They manage notifications for successful or failed content generation attempts.
Billing: Refer to Anthropic’s pricing documentation for more information.
How to enable AI-generated Titles and Descriptions for Page Builder, and Subject and Preheaders for Email Builder.
This is available for Superpowers or Enterprise plan subscriptions.
Read this technical documentation to learn more about how to configure AI generated titles, meta descriptions for pages, preheaders, and subject lines for emails within your host application.
AI addresses common issues in crafting effective subject lines, pre-headers, and titles, such as vague messaging, lack of urgency, and limited personalization. By utilizing AI, users can generate compelling copy for email campaigns and landing pages. The key benefits include optimizing title formats for character count and mobile responsiveness, avoiding common mistakes, and expediting the copy creation process. This tool aims to enhance efficiency in marketing endeavors by providing a solution to errors commonly encountered in title and subject line composition. The feature is applicable to both Page and Email applications within the builder.
Beefree SDK Superpowers or Enterprise plan subscription
OpenAI API Key
Activated OpenAI AddOn within your Beefree SDK Developer Console
Learn more about how activate this feature for email and page builder respectively.
To activate AI Generated Meta tag fields for your email builder application, take the following steps:
Sign into your Beefree SDK Developer Console
Navigate to your application’s settings
Toggle on Enable Subject - Meta tag
Toggle on Enable Preheader - Meta tag
To activate AI Generated Meta tag fields for your page builder application, take the following steps:
Sign into your Beefree SDK Developer Console
Navigate to your application’s settings
Toggle on Enable Title - Meta tag
Toggle on Enable Description - Meta tag
This section outlines the steps for configuring this feature within your host application.
To configure AI Generated meta tag fields within your host application, take the following steps:
Enable the “ai-integration
” AddOn
Add the metadataGeneration
parameter
Set the parameter to true
is your configuration code
The following code displays an example of the enabled feature.
To disable the AI Generated Metadata feature, set metadataGeneration
to false
in your code.
The following code sample displays the disabled feature.
AI Generated Titles, Descriptions, Preheaders, and Subject Lines is compatible with Multi-language templates.
To use both Multi-language templates and AI-Generated Titles, Descriptions, Preheaders, and Subject Lines, take the following steps:
Perform the Multi-language Configuration Steps
Perform the AI-Generated Titles, Descriptions, Preheaders, and Subject Lines Configuration steps
Test the AI-generated content in a few different languages
Confirm everything works as intended
If AI-driven generation fails, check the OpenAI AddOn configuration. Ensure your OpenAI API key is working properly, and that the AddOn is configured correctly within your Beefree SDK developer Console.
Customers will be billed through their OpenAI accounts for AI generation-related features. This is done through connecting their OpenAI API key in the Beefree SDK Developer Console.
Learn how to provide your end users with the option to tailor the AI Writing Assistant's responses by adding a brand tone.
The AI Writing Assistant AddOn and Brand Tone feature are only available for Superpowers and Enterprise plans.
The Apply a Brand Tone feature is an optional enhancement to the AI Writing Assistant AddOn. This feature allows your application's end users to define which brand tone they want the AI Writing Assistant to use when generating text. This definition provides OpenAI with additional brand tone context it considers when generating text to return to your end user. The result is more precise, accurate, and useable copy for your application's end users.
By configuring the AI Writing Assistant to reflect a specific brand tone, you empower end users to create designs that consistently align with their brand identity, reducing the need for manual adjustments to the AI's responses. This feature can improve workflows through organic and beneficial adoption of the AI Writing Assistant, positioning your application as a powerful tool.
To learn more about the end user experience and what it looks like to utilize this feature on the frontend, visit the Apply a Brand Tone white label end user documentation. The markdown file is also available in our white label docs repository.
Note: OpenAI is currently the only compatible provider with this feature.
Prior to getting started, ensure you have the following:
The AI Writing Assistant AddOn enabled in the Beefree SDK Developer Console.
OpenAI API Key
This section will walk you through how to add the Apply brand tone option to the AI Writing Assistant integrated within your host application.
At a high-level, this section will cover how to take the following steps and successfully integrate Brand Tone:
Note: Ensure you have the AI Writing Assistant AddOn configured and implemented prior to integrating the Brand Tone option. For details steps on how to configure this AddOn, visit the AI Writing Assistant documentation.
Take the following steps to configure the AI Writing Assistant to include Brand Tone:
Add the ai-integration
AddOn to your beeConfig
object under the addOns
array.
Add the isBrandTonesEnabled
setting and set the boolean to true
. This is the only required setting to enable this feature.
(Optional) Customize the settings for the Brand Tones feature to allow users to add, edit, delete, or select tones based on your application’s needs.
The following code snippet provides an example configuration for integrating the AI Writing Assistant AddOn with the settings for managing Brand Tones:
You can control the different settings for the Brand Tone using the following booleans. You can use these boolean flags to allow or restrict user actions.
For example:
Set isBrandTonesEnabled: true
if you want to enable the Brand Tones feature.
Set canDeleteBrandTones: false
to prevent end users from deleting existing tones.
The following table provides details about each setting and how you can customize them.
isBrandTonesEnabled
Boolean
true
Determines if the Brand Tones feature is enabled for the user.
canAddBrandTones
Boolean
true
Allows users to add new Brand Tones to their account.
canDeleteBrandTones
Boolean
false
Allows users to delete existing Brand Tones.
canEditBrandTones
Boolean
true
Allows users to edit existing Brand Tones.
canSelectBrandTones
Boolean
true
Allows users to select from available Brand Tones for use in their session.
This section explains how to add hooks for data storage and management.
Hooks allow your application to store and manage Brand Tone data. By defining the brandTone
hook, you ensure communication between your system and Beefree SDK, enabling users to create and manage Brand Tones effectively.
1. Define the Hook
Add the brandTone
hook to your beeConfig
object. This hook handles all Brand Tone-related actions like retrieving, saving, and deleting tones.
Sample Code:
2. Implement the Handler Logic
The brandTone
hook supports various actions.
The handler receives the resolve
and reject
methods to fulfill the Promise for the requested data or action. Use reject
only for issues encountered on your application's side, such as errors in data retrieval. Always call resolve
after processing the data within your system.
Alongside resolve
and reject
, the handler also receives an object containing action
and data
properties. The action
determines the specific scenario in the Brand Tones flow, while the data
is used to store any necessary changes.
Refer to the table below for details on when and how each action will be triggered.
get
Will be requested as soon as the AI Side Panel opens and after successful operations (e.g. edit, delete, save). It asks for a saved Brand Tones list that you’ll likely retrieve from your system.
none
Array of Brand Tone (in the exact form you received that in save
action)
save
Will be requested when the user clicks on “Save” in the Modal to create a Brand Tone. This is where you store data in your system.
brandTone
object
none
(just a resolve()
to confirm save action succeded)
edit
Will be requested when the user clicks on “Save” in the Modal to edit an existing Brand Tone. This is where you update data in your system.
brandTone
object
none
(just a resolve()
to confirm edit action succeded)
delete
Will be requested when the user clicks on “Delete” in the Modal to manage existing Brand Tones. This is where you remove the brand tone data from your system.
brandTone
object
none
(just a resolve()
to confirm delete action succeded)
getSelected
Will be requested as soon as the AI Side Panel opens and after successful operations (e.g. edit, delete, save).
It asks for the id
of the Brand Tone to pre-select on the Brand Tones select.
none
string
(the id
of the Brand Tone)
saveSelected
Will be requested when the user selects the Brand Tone from the select and after successful operations (e.g. edit, delete, save).
This is to preserve the user selection between different sessions.
string
(the id
of the Brand Tone the user just selected)
none
(just a resolve()
to confirm saveSelected action succeded)
The Brand Tone feature is available only through the AI Writing Assistant AddOn with OpenAI as the provider.
Configuring hooks for data storage is required to enable this feature successfully.
Thoroughly test your implementation to ensure smooth communication between the SDK and your system.
This document discusses the data flow of your API key from the moment you activate an AddOn with AI functionality within your Beefree SDK Developer Console. In this document, you learn more about Beefree SDK’s security practices, frameworks, and protocols in reference to protecting your sensitive data assets.
The following diagram provides a visualization of the data flow for your AI AddOn API key. In the following diagram, OpenAI is shown as an example. However, this same flow applies to other AI provides available through Beefree SDK AddOns.
These providers include:
Azure OpenAI
Azure Cognitive Vision
DeepL
Stability AI
Anthropic
This data flow diagram illustrates the flow of data and the key components involved in securing the API key from developer input to end user interaction.
The following list shows each component within the data flow diagram along with the component’s description.
Developer Console: This is where the developer inputs the API key, initiating the process.
AI AddOn: This is where the developer enters their API key that they received from their AI Provider, and activates the AddOn for their host application.
Data Store: The encrypted API key is stored securely in the data store.
End User: The end user interacts with the host application.
HA AddOn: The frontend user interface of the AI AddOn that the end user engages with.
Proxy: The proxy receives and forwards requests to the API, and sends responses to the AI AddOn within the host application.
AI Provider: The AI Provider processes requests and provides responses.
The flow and management of your API key is designed to ensure its security. Security measures are implemented as soon as you enter your API key into the Developer Console. Once you enter your API key, it is immediately encrypted over TLS. From there, the encrypted API key is securely stored in the Beefree data store. Your API key remains encrypted both at rest and during transit.
When the end user types a prompt into the AddOn, their prompt is forwarded through a proxy. The proxy receives the request, retrieves the API key, and forwards both the API key and the prompt to the AI Provider. The AI Provider processes the request and forwards the response to the proxy. The proxy then delivers the response to the AI AddOn, which displays the response in your application’s frontend to the end user.
Note: The proxy does not log any personal data and only facilitates secure communication from request to response. Throughout this process, the API key remains in the backend, preserving its security and ensuring no personal data is processed by the application. This approach is GDPR compliant.
For additional information, we recommend you reference our Terms of Service and our AIF third-party providers' policies.
Learn how to connect your large language model (LLM) and create your own AI Writing Assistant with Beefree SDK.
This AddOn is available on Beefree SDK Enterprise and VPC plans.
The Custom AI Writing Assistant AddOn enables host applications to integrate their own LLM models with Beefree SDK. This allows host applications to provide their end users with advanced AI writing capabilities that are specific to their domains. Using the Content Dialog, this AddOn employs the same entry points as the AI writing assistant, allowing full control over the AI experience within your application. Once your Custom AI Writing Assistant AddOn is fully configured, the Content Dialog displays the modal you created within the user interface when end users click the Write with AI button in the sidebar.
This AddOn is compatible with the following modules:
Title
Paragraph
List
Button
With this AddOn, you can deliver a centralized assistant experience that caters to your specific application needs. By integrating your own LLM model, you reduce irrelevant content in AI-generated outputs and ensure consistency in how the AI generates content, all while aligning it with your brand’s voice and tone. This increased level of control helps increase AI adoption and usage across your customer base, because your end users are engaging with an AI tool that feels familiar and reliable.
Integrating your custom LLM also allows for continuous improvement, because the model can be trained and refined based on user feedback and real-world interactions. This results in more accurate suggestions, higher relevance, and greater user satisfaction, empowering your end users to create better content with minimal effort.
The following video displays an example of a Content Dialog with a custom built user interface that is connected to the Custom AI Writing Assistant AddOn.
Prior to getting started with the configuration, ensure you have the following:
Enterprise plan
A custom LLM service to call from within the Content Dialog
Access to the Developer Console
This section outlines the steps you need to take to integrate the Custom AI Writing Assistant AddOn into your web application.
These steps are the following:
Take the following steps to install and enable the AddOn:
Log in to the Beefree SDK Developer Console.
Click on the Details button corresponding to the application you'd like to configure the AddOn for.
Go to the AddOns section and click Browse AddOns.
Search for and select the Custom AI Writing Assistant AddOn.
Once selected, click Install.
After installation, toggle the Enable button and save your changes.
Note: You can revisit this page in the future by clicking Edit in the AddOn card to turn the AddOn on or off as needed.
Once you activate the Custom AI Writing Assistant AddOn with your own LLM, you cannot activate the AI Writing Assistant AddOn, which uses either OpenAI or Azure OpenAI models. Only one of these two AddOns can be active.
To use the Custom AI Writing Assistant AddOn, you need to configure the Content Dialog. This is important for defining how your custom LLM is called and how the response is handled.
The following code snippet displays an example configuration:
Args Parameter Details The args
parameter contains the following:
moduleUUID
Unique identifier for the module
moduleType
Type of the module (e.g., TITLE, PARAGRAPH, LIST, BUTTON)
moduleContent
Current content of the module unless it matches the default content. If it does, the value will be an empty string.
Configure Resolve The content dialog must resolve an object corresponding to this interface:
Handling Lists: If you are working with a list, ensure the generated text separates each item with a line break. The text will then be split on each line break to construct the list in the stage. The syntax for a line breaks is \n
.
You can control the visibility and state of the Write with AI button using Advanced Permission settings. For example, disabling the AddOn will hide the button, while turning the button off will keep it visible but non-functional.
The following code snippet displays an example configuration for Advanced Permissions:
You can disable the Custom AI Writing Assistant for specific content blocks using Advanced Permissions. As a reminder, this AddOn is compatible with the following content blocks:
You can use Advanced Permissions to disable access to a specific block using the following:
To hide the AddOn for a specific module, the show
property should be set to false
.
The table below outlines the settings available for the ai-integration AddOn in the Beefree SDK:
enabled
boolean
true
If false
, the “Write with AI” button is hidden
isButtonDisabled
boolean
false
If true
, the “Write with AI” button is visible but disabled
After your activate and configure this AddOn, a Write with AI button will appear to your application's end users for the applicable content blocks.
The following video displays how the Write with AI button inside the Content Properties once a content block is dragged and dropped onto the stage.
The following section provides an example of changing the Write with AI button text to "Generate copy". You can follow the same approach in the following example, but replace "Generate copy" with the text you'd like to use for your label.
To change the "Write with AI" button label to "Generate copy" using the mailup-bee-common-component-ai.config-label
, follow these steps:
Set up the BeeFree SDK: Initialize your beeConfig
object as usual.
Add the translations object: In your beeConfig
, include the translations
object where you will specify the label override.
Override the label: Inside the translations
object, add the "mailup-bee-common-component-ai.config-label"
key and set its value to "Generate copy"
.
This will update the button text from "Write with AI" to "Generate copy."
Consider the following when using the Custom AI Writing Assistant AddOn:
You can reference the AI Writing Assistant End user documentation as an example of how engaging with AI features looks like for end users.
We are committed to maintaining the highest standards of security to protect your data at every level. For more information on our security practices, visit our GDPR and Cybersecurity page.
The Token Upselling feature is a notification banner that you can integrate within your OpenAI AddOn. This notification banner informs your application end users of when their available tokens are running low and when they are completely out. Both notification banners display an option for the end user to purchase additional tokens. These notification banners support a healthy token management workflow, and help avoid any potential interruptions in the end user’s workflow through transparently informing them about their available tokens.
The following notification banner will appear to an end user when their tokens are running low. “Running low” is defined as when an end user has a remaining token balance equal to or less than 20 percent of their initial token count.
Note: You can edit the notification banner trigger to a remaining percentage other than the default 20 percent. Reference the Customize Notification Trigger to learn more about how to change this percentage.
The following notification will appear to an end user when they no longer have any remaining tokens. This is triggered when tokenCounter
is greater than or equal to tokensAvailable
. For reference, tokenCounter
refers to the amount of tokens an end user has used since their initial token balance.
The text inside the banner notifications is customizable. Reference the Customize Notification Banner Text section to learn more about customizing the notification banner text within your application.
Read this article to learn more about configuring token upselling within your host application.
Prior to getting started with the configuration, ensure you have the following:
Superpower or Enterprise plan
An OpenAI AddOn within your application
This section discusses the configuration steps you need to follow to integrate the Token Upselling feature into your web application.
To integrate the Token Upselling feature into your application, take the following steps:
To enable Token Upselling, you need to pass your configuration code to the AI Integration AddOn within the Developer Console.
When you pass your code, ensure you define the following variables:
tokenCounter
: Counts how many tokens an end user has used in total
tokensAvailable
: Displays how many remaining tokens an end user had
isUpsellEnabled
: A boolean that confirms whether or not the Token Upsell feature is enabled
Note: If you do not provide tokenCounter
and tokensAvailable
, the end user will have unlimited access to the AI functionality within your application.
The purpose of the following code is to initialize and track the number of tokens available and the number of tokens used. It also checks if the upsell feature is enabled.
When you define tokensAvailable
and tokenCounter,
you limit the end user’s token usage.
isPromptDisabled
automatically disables the ai-integration
when the number of tokens used by an end user (tokenCounter
) is greater than or equal to the number of tokens available (tokensAvailable
).
The following code displays an example of the AddOn AI Integration configuration code.
The purpose of the onInfo
callback in the following code snippet is to handle information messages related to the usage of the ai-integration
AddOn. It checks if the code of the infoMessage
is 1000 and if the handle is ai-integration
. If both conditions are met, it updates the AddOn settings and reloads the configuration.
The code works by:
Retrieving the handle from the infoMessage
.
Checking if the handle is ai-integration
.
If the handle is ai-integration
, retrieve the totalTokens
from the infoMessage
.
Updating the tokenCounter
by adding the totalTokens
.
Creating a newConfig
object with the updated tokenCounter
and other settings.
Reloading the configuration by calling bee.loadConfig(newConfig)
.
The purpose of the "upsell" action is to trigger the handler function, which, based on the following code sample, increases the number of tokens available by 1000 and returns an object with updated settings for the ai-integration
add-on.
The handler function is a function that is executed when the upsell
action is triggered. It has two parameters: resolve
and reject
. The resolve
parameter is a function that is called when the handler function successfully completes its task, and the reject
parameter is a function that is called when the handler function encounters an error or fails to complete its task.
Configure the content dialog and upgrade path to enable the token upselling notification banner. This configuration is important because it defines the steps the end user takes to purchase more tokens.
The following code displays an example of how to configure the content dialog.
Ensure you define how your host application will resolve the upsell feature. You can do this by returning the configuration on how to handle the content dialog within the addOn configuration. The code provided in the previous step displays an example of this.
The following table shows a list of what your web application can pass to the Beefree SDK in the addOn configuration of ai-integration.
tokenLabel
string
Default is “tokens”.
isPromptDisabled
boolean
Default is false. If changed to true, it can override tokens balance and disable the prompt.
isUpsellEnabled
boolean
Default is false. If changed to true, it enables the upsell.
tokensCounter
number
Tokens used, if not provided in the configuration, the user has unlimited tokens.
tokensAvailable
number
Tokens available to the end user. If not provided in the configuration, the user has unlimited tokens.
upsellTrigger
number
Default is 80 (%) of tokens available.
isSuggestionsDisabled
boolean
Default is false.
isRegenerateEnabled
boolean
Default is false.
The regenerate button appears after an end user submits their first prompt to OpenAI through the OpenAI AddOn. This button enables the end user to resubmit the same prompt to OpenAI in order to receive a newly generated response. This is helpful when an end user may want a variety of prompt responses to select from. However, each regenerated response incurs additional token usage and costs. This section will discuss how to disable the regenerate button in the event you would like to remove it from your application’s user interface.
Image 1.0 shows the regenerate button as an example at the bottom of an AI generated prompt response.
To achieve this, configure the isRegenerateEnabled setting to false.
The following example displays the sample code for the regenerate button.
The default trigger for the upsell notification banner is when an end user has used 80% of their initial tokens, and only has 20% of their initial tokens available. These percentages are customizable based on your use case. You can edit the notification banner to trigger at any percentage of the initial token count that best works for your host application.
Take the following steps to customize your notification banner trigger:
Pass upsellTrigger
to the initial AddOn configuration
This section discusses how you can customize the notification banner text. For reference, the notification banner has the following default message:
“You’re out tokens. Purchase more”
To edit the notification banner text, take the following steps:
Identify the Template: Locate the notification template you want to customize. In this example, the template is specified with a custom language ID: `bee-common-component-ai.no-token-message`
.
Understand the Template: Read and understand the original template text, which is "You're out of {tokenLabel}. {ctaLabel} to continue." This template includes two placeholders: {tokenLabel}
and {ctaLabel}
.
Understand the Default Behavior: Understand that by default, the template includes a Call-to-Action (CTA) button represented by the `{ctaLabel}`
placeholder.
Determine Your Customization Needs: Decide what changes you want to make to the template.
Options include:
Removing the CTA button entirely.
Changing the CTA button label.
Reordering the text within the template.
Create a Custom Language Entry: If you want to customize the template, create a custom language entry. This entry should have the same custom language ID: `bee-common-component-ai.no-token-message`
.
Modify the Template: Customize the template in your custom language entry according to your needs. For example:
To remove the CTA: "You're out of {tokenLabel}
."
To change the CTA label: "You're out of {tokenLabel}
. Click here to refill."
Implement the Custom Language Entry: In your web application code, replace the default template with the custom language entry you've created. Ensure that you use the correct custom language ID when accessing the text.
You can also configure the Token Upselling feature to guide your application's end user to purchase images. Purchasing additional image tokens allows your end users to continue using features such as Alt Text Generation with AI and Bulk Alt Text Generation.
The following code shows an example of a Token Upselling configuration for both text and image tokens. Purchasing text tokens supports end users as they use features connected to the OpenAI AddOn, and purchasing image tokens supports ends users as they use features connected to the Azure AI Vision AddOn.
AddOns Configuration: This section defines the available add-ons, each with a unique identifier and specific settings related to tokens and images.
onInfo Callback: This function handles info messages (with code 1000) and updates the settings for the relevant add-on based on usage.
Content Dialog (Upsell): This section manages upsell interactions, increasing the available tokens or images and updating the settings accordingly.
This section discusses the Token Upselling feature limitations:
Customization features only extend to the text within the notification banner, and are not available for the design of the notification banner.
The only billing related to this feature is on OpenAI’s end with token purchasing through use of your OpenAI API key.
This section discusses the error handling for token upselling. If an error occurs, end user’s will receive the following message:
“Something went wrong. Retry your request after a brief wait.”
The following image shows an example of how this message will appear within the user interface.
For more information on how the Token Upselling feature will visually look to an end user within the user interface, visit the OpenAI Feature Enhancements article.