AI copywriter is a service that can generate texts based on specific input. It can help you create content for product descriptions, marketing campaigns, emails, or social media. The AI copywriter utilizes advanced machine learning algorithms and natural language processing.It works by analyzing various factors such as the target audience, industry, and competitors, and then uses this knowledge to create original and compelling text. It is a fast, efficient, and creative tool for marketing and communication purposes.
The AI copywriter has several advantages, including:
Speed and efficiency: An AI copywriter can generate content much faster than a human writer, saving you time and money. It can ensure consistency across the content. And because efficiency is an important factor for the success of any business or project, an AI copywriter is available to you - 24 hours a day, 7 days a week.
Personalization: An AI copywriter will create tailored content for you based on personality traits, demographic data, or purchase history.Creates different versions of content for various customer segments or communication channels.It tests and optimizes content based on how customers respond to different headlines, images, or tones of voice. Able to adapt content to current trends, events, or seasonality.
Originality: The AI copywriter utilizes a large amount of data and resources to create original and relevant texts.Offers new ideas or inspiration for writing creative and relevant content for every platform you use. It can generate different versions for various communication channels, such as social media, emails, or blogs.
The technical limit for each message (system prompt, prompt, result) is 4096 tokens.
Example No. 1: I send a value of 1000 to max tokens, the length of the system prompt is 100 tokens, the length of the prompt is 200 tokens. The resulting text will thus be limited to 700 tokens (1000 - 100 - 200 = 700).
Example No. 2: I send the value 32768 to max tokens, the length of the system prompt is 100 tokens, the length of the prompt is 200 tokens. The resulting text will thus be limited to 4096 tokens (32768 - 100 - 200 = 32468, which is more than 4096, so 4096 will apply).
Example no. 3: I won't send anything to max tokens, the default value of 32768 will apply. The next steps are the same as in example no. 2.
curl -H "Content-Type: application/json" https://datasqueezer.com/nexus/createTask -d '{ "token": "__API_TOKEN__", "service": "copywriter4t", "data": "__PROMPT__", "serviceParams": { "maxTokens": "__MAX_TOKENS__", "systemPrompt": "__SYSTEM_PROMPT__" } }'
| NAME | DESCRIPTION | REQUIRED PARAMETER |
| __MAX_TOKENS__ | You can think of tokens as pieces of words, | no |
| __SYSTEM_PROMPT__ | Introduction of what will be done, e.g. "I will send you a product description and you rewrite it, to make it more marketable" (default value is empty). The maximum length is 4096 tokens. | no |
| __PROMPT__ | The content itself, e.g. product name, product description, specifications, etc. The maximum length is 4096 tokens. | yes |
import requests
import json
endpoint = 'https://datasqueezer.com/nexus/createTask'
data = {
'token': '__API_TOKEN__',
'service': 'copywriter4t',
'data': '__PROMPT__',
'serviceParams':
{
'maxTokens': '__MAX_TOKENS__',
'systemPrompt': '__SYSTEM_PROMPT__'
}
}
response = requests.post(endpoint, data=json.dumps(data))
| NAME | DESCRIPTION | REQUIRED PARAMETER |
| __MAX_TOKENS__ | You can think of tokens as pieces of words, | no |
| __SYSTEM_PROMPT__ | Introduction of what will be done, e.g. "I will send you a product description and you rewrite it, to make it more marketable" (default value is empty). The maximum length is 4096 tokens. | no |
| __PROMPT__ | The content itself, e.g. product name, product description, specifications, etc. The maximum length is 4096 tokens. | yes |
$curlHandle=curl_init("https://datasqueezer.com/nexus/createTask");
$data=[
'token'=>'__API_TOKEN__',
'service'=>'copywriter4t',
'data'=>'__PROMPT__',
'serviceParams'=>[
'maxTokens': '__MAX_TOKENS__',
'systemPrompt': '__SYSTEM_PROMPT__'
],
];
curl_setopt($curlHandle, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_FOLLOWLOCATION, true);
$response=curl_exec($curlHandle);
$error_msg=curl_error($curlHandle);
curl_close($curlHandle);
| NAME | DESCRIPTION | REQUIRED PARAMETER |
| __MAX_TOKENS__ | You can think of tokens as pieces of words, | no |
| __SYSTEM_PROMPT__ | Introduction of what will be done, e.g. "I will send you a product description and you rewrite it, to make it more marketable" (default value is empty). The maximum length is 4096 tokens. | no |
| __PROMPT__ | The content itself, e.g. product name, product description, specifications, etc. The maximum length is 4096 tokens. | yes |