Text Replacer

LangChain Hub prompt: adelkov12/text-replacer

P
promptcore
·May 3, 2026·
3,177 0 106
$6.99
Prompt
334 words

Task: Generate structured texts for a PowerPoint slide based on provided new content. Input: New Content: Several paragraphs on a specific topic. Slide Structure: An array of objects representing texts on the original slide. Each object includes: originalText: Reference for character count. New texts should be a bit shorter. groupId: Identifier for related text groups (e.g., 1.1, 1.2). role: The role of the text (e.g., keyword, title, description). Output: Generate an array of objects with: newText: Text based on the new content, not exceeding the length of the original text. groupId: Group identifier. Notes: All generated text objects should relate to a new part of the script in a linear fashion starting from the begining of the newContent, (text objects will be shown to the viewer following the group id flow 1.1, 1.2, 2.1, 2.2 etc so any generated text object should be created to facilitate this kind of presentation). Ensuring the generated text progresses linearly through the script. Each slide should represent the next part of the content in sequence, without skipping or repeating sections. Analyse the input array and determine exactly how many 'newText' need to be created, based on the number of 'groupID's provided (1.1, 2.1 and 2.2 would represent 3 new text objects that need to be generated). Generate new texts for all objects in the input array. Ensure that any text that is generated can be linked semantically to a specific phrase or sentence provided in the 'new content'. Copy text directly from the script when possible, but optimize text to have a similar number of characters as the original reference text. The number of new texts MUST ALWAYS match the number of input objects (if there are 5 input objects, there should be 5 new texts generated etc.). Ensure content in semantic grouping (e.g., 2.1 and 2.2)are related. Reflect semantic connections using group identifiers and roles. Keep new texts concise and true to the new content. Maintain the original grouping and logical structure.

Structure: {structure} New content: {newContent}

How to Use

Use with LangChain: hub.pull("adelkov12/text-replacer")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Creative & Design

View All
Creative & Design
Midjourney

Midjourney Prompt Generator

Outputs four extremely detailed midjourney prompts for your keyword.

S
schemawriter$6.99
1,755,666 2,783,616
Creative & Design
ChatGPT

Convert Your Small And Lazy Prompt Into A Detailed And Better Prompts With This Template.

Convert your small and lazy prompt into a detailed and better prompts with this template.

Q
querycraft$4.99
209,414 107,942
Creative & Design
Universal

One Click Personalized Workout and Diet Plan

With just one click, create a personalized diet and exercise plan. Just enter the information.

P
promptcore$4.99
13,911 13,924
Creative & Design
Universal

learning new skill

Looking to learn or improve a specific skill but have no prior experience? Here's a 30-day learning plan designed specifically for beginners like you. Whether you're interested in coding, cooking, photography, or anything in between, this plan will help you build a solid foundation and make steady progress towards your goal. Each day, you'll have a specific task or activity to complete, ranging from watching instructional videos to practising hands-on exercises. The plan is designed to gradually increase in complexity as you build your knowledge and skills, so you can start with the basics and steadily work your way up. By the end of the 30 days, you should have a solid understanding of the fundamentals of your chosen skill, as well as a set of practical techniques and strategies to help you continue improving in the future. So, whether you're looking to learn a new hobby or develop a new professional skill, this 30-day learning plan is the perfect place to start.

A
aicanvasFree
2,090 2,100
Creative & Design
Universal

FitnessGPT v2: One-Click Personal Trainer

An upgraded version of DigitalJeff's original 'One Click Personal Trainer' prompt.

P
primequery$4.99
6,241 6,268
Creative & Design
Universal

MoneyMindGPT - Your AI-Powered Personal Financial Advisor

MoneyMindGPT is an AI-powered financial advisor that offers personalized guidance to improve your financial health. It helps you with budgeting, saving, investing, and debt reduction by creating custom plans based on your unique needs. Accessible and easy to use, MoneyMindGPT supports you on your journey to financial success.

M
modeshift$4.99
5,254 5,276