Create Your First Prompt With AI21
A simple way to start creating prompts on the Mantium App
For an explanation of terms, check out the glossary.
Getting Started
- If you do not already have an account, register on the Mantium platform.
- In order to create prompts with AI21 as a provider, you must add your AI21 API Key into the Mantium platform. If you don’t have an AI21 API key, click here to learn how to obtain one.
- Once you are logged into your Mantium account, Navigate to
Integrations
>AI Providers
, then paste your API key into the AI21 form.

Use Case
Oftentimes when we encounter a new word in a sentence, we deduce its meaning by the context in which it is used. To reduce the time it takes to learn the meaning of a word, it could be useful to have a “Word Explainer” prompt that explains the meaning of a particular word in-line with how it is used in a sentence.
As a simple example, in the two sentences below, the meaning of the word “bank” is different in each:
- I am going to the bank of the river.
- I am going to submit my loan application at the bank.
The meaning of the same word changes depending on which sentence it is used in.
We can build a prompt using AI21’s completion endpoint to clarify the meaning of a word based on its context.
Prompt Creation
When you are ready to create your prompt, click AI Manager
> Prompts
> Add New Prompt
.

Add new prompt
Then, fill out the following:
- Name of Prompt: Word Explainer
- Description: Explain the meaning of a word in a sentence with AI21 Complete.
For deploying your prompt publicly at the end of this tutorial, you can add a default security policy configured by Mantium. Click Add Security Policies
under Security Policies and drag Default Policies
from All Policies to Selected Policies. Click Done
to save - you will know the policy has been applied when its name is visible under Security Policies.
Provider Settings
- Provider: AI21
- Endpoint: Complete
- Model: j1-jumbo
Prompt Body
When pasting this text into the prompt body, please be sure to include the line break at the end of the text - there should be one intentionally empty line below Meaning: a sudden decrease
.
What does the word "link" mean in the following sentence?
Sentence: The excavation machine malfunctioned due to a broken link.
Meaning: a ring or loop in a chain.
What does the word "bank on" mean in the following sentence?
Sentence: I was banking on my team winning the next game as well.
Meaning: to depend on something.
What does the word "drop" mean in the following sentence?
Sentence: the drop in subscriptions in May was cause for alarm.
Meaning: a sudden decrease
Prompt Settings
Basic Settings
- Max Tokens: 20
- Temperature: 0.7
- Top P: 1
- Number of Results: 1
- Top K Return: 0
- Stop Sequences: \n
Advanced Settings can be left blank for now.
Test Prompt
Because these models are stochastic in nature, the resulting output may vary even when using the same input, but we have included a text snippet to run as a test. Copy and paste this sample text into the input field (please be sure to include space after Meaning:
):
Test Prompt Text
What does the word "bank" mean in the following sentence?
Sentence: I am going to submit my loan application at the bank.
Meaning:
Feel free to click Test Run
multiple times to see if there is a variance in results!
Click Save
when you are ready to save your prompt.
Sample Response
An example response could look like the following:
a financial institution, usually a financial institution where money is kept and lent to people
One-Click Deploy
Mantium enables sharing your prompt using the One-Click Deploy feature, located in each prompt's drawer view. From your list of prompts, click on the Word Explainer
prompt, then click Deploy
.

Then, add the following configuration settings:
- Name: Word Explainer
- Description: Explain the meaning of a word in a sentence
- Author: Your Name
- ✅ Add Input Field
- Public
- Live
- ✅ I have followed my provider's go live requirements
Deploying a prompt will create a single-page application with a unique URL that can be shared if the prompt is deployed as Public.

To interact with this prompt, copy the text below and replace the appropriate fields with a sentence and the word from the sentence that you would like to define. After this, click Execute
in the deployed prompt to get the results.
What does the word "{word}" mean in the following sentence?
Sentence: <Insert a sentence utilizing {word} here>
Meaning:
To test out a pre-configured version of this prompt, click here!
Updated about 1 year ago