Text optimization
Provide your draft, target keywords and search settings. Your assistant can estimate the optimization cost and retrieve the result after the run.
In this article
labrika_optimization_estimate
Example requests
How much does optimizing this text cost?
Quote optimization without changing the text length.
Estimate the credits needed to optimize the supplied text for the keywords and region. Repeat with identical inputs while pending is true.
ai-optimization:read
- Required parameters
content, keywords, language, region_code, search_engine- Optional parameters
title, description, h1, adjust_text_length
Recommended length adjustment is on by default. Set adjust_text_length=false in both the estimate and the start request to turn it off.
- Before use
content + keywords + language + search_engine + region_code- How to check the result
pending=false → estimate_id → labrika_optimization_start
Agree on the search engine, country and city first. region_code, region_id and search_engine_id are different parameters; do not substitute one for another. Search Google regions in English on labrika.com.
labrika_optimization_start
Example requests
Prepare optimization using the agreed estimate.
Prepare optimization without changing the text length.
For a paid action, review the quote and select Confirm and start in Labrika. Then ask the chat for its status.
ai-optimization:write
- Required parameters
content, keywords, language, region_code, search_engine, estimate_id- Optional parameters
title, description, h1, adjust_text_length
Recommended length adjustment is on by default. Set adjust_text_length=false in both the estimate and the start request to turn it off.
- Before use
labrika_optimization_estimate → estimate_id; content + keywords + language + search_engine + region_code- How to check the result
-
Preparing a quote does not start the job. Review the amount, currency and selected settings using the Labrika link. Confirm the launch on that page, then check action_id with labrika_action_get.
labrika_action_get → document_id → labrika_optimization_get
Agree on the search engine, country and city first. region_code, region_id and search_engine_id are different parameters; do not substitute one for another. Search Google regions in English on labrika.com.
estimate_id; content + keywords + language + search_engine + region_code + adjust_text_length
labrika_optimization_get
Example requests
Show the optimized text.
Show the text with highlighted keywords.
content contains publishable HTML and annotated_content is the review copy. The mark tag's data-labrika-seo attribute uses keyword for target search terms, hidden-semantic for related phrases, and keyword hidden-semantic for both. In chat, keywords appear in bold and related phrases in italics. content_view defaults to both. For long texts, request plain and annotated separately.
ai-optimization:read
- Required parameters
document_id- Optional parameters
content_view
- Before use
labrika_action_get → document_id- How to check the result
content / annotated_content; content_view=plain / annotated / both
Before publishing, check facts, names, figures and whether the text accurately describes your business. Generated text still needs editorial review.
