You are here:
executePromptTemplateAsync()
Sends a REST request to the Einstein Prompt Template service to generate prompt text asynchronously using a specific prompt template.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Sends a REST request to the Einstein Prompt Template service to generate prompt text asynchronously using a specific prompt template.
| Available in: Enterprise and Unlimited Editions where Consumer Goods Cloud is enabled |
payload: A single object containing all parameters for the prompt generation.
This object must include:
promptBuilderID: The string ID of the prompt template to use.inputParams: An array of objects. See Einstein Prompt Template Generations for details.additionalConfig : Optional. If necessary, specify the maximum number of
tokens to generate using maxToken. Other parameters such as isPreview,
numGenerations, and outputLanguage aren’t supported. See
Einstein LLM Additional Configuration Input.This function returns a Promise.
const payload = {
promptBuilderID: "einstein_gpt_summarizeAccountDefault",
inputParams: [
{
name: "Account",
value: {
name: "id",
value: "801Ws00003AZgY1IAL"
}
}
],
additionalConfig: {
maxTokens: 1024
}
};

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.