Skip to main content
Question

Prototyping AI text generation

  • December 12, 2023
  • 4 replies
  • 962 views

Dan_Sullivan3

I want to prototype the generation of text that animates after submitting an AI prompt. In other words– when you type a prompt into Chat GPT and hit submit, the words begin to appear one after another as the response is created. I would like to understand an easy way to to this.

4 replies

Gayani_S
Figmate
  • Community Support
  • 1984 replies
  • December 13, 2023

Hey Dan, I’ve found a YouTube video which might help you to create this. Also, we have plugins in our Community to generate Text: https://www.figma.com/community/search?resource_type=plugins&sort_by=relevancy&query=AI+text&editor_type=all&price=all&creators=all.


  • New Member
  • 1 reply
  • February 28, 2025

 

That sounds like a really cool idea! To achieve the effect where the text animates as it’s generated, you could use a combination of JavaScript and CSS for the animation. A popular approach is to use JavaScript to capture the response from the AI and then gradually reveal it character by character.

You can achieve this by fetching the AI response (maybe via an API call) and using JavaScript to append each character of the response to the screen one at a time. For the animation, CSS can help you add a typing effect using the @keyframes rule or the animation property. There are also libraries like TypeIt that can help you implement this typing effect more easily.

Here’s a simplified idea of what you might do:

  1. Fetch the AI response.
  2. Break the response into individual characters.
  3. Use JavaScript to add each character to the screen with a delay, creating the typing effect.
  4. Optionally, you can add a cursor effect for a more realistic feel.

If you're also interested in verifying phone numbers as part of your project, check out the Free Phone Number Checker from My Country Mobile. It could be a helpful tool for validation if you're expanding your project to handle phone number inputs as well.


nayankumar
  • New Member
  • 1 reply
  • April 11, 2025

Hello! To prototype the generation of text that animates after submitting an AI prompt, I recommend using Figma for the design and JavaScript for animating the text.

First, in Figma, you can create a simple UI with an input box where the user types their prompt. Below that, design a container or box where the AI response will appear word by word.

Next, to animate the text, you can use JavaScript. With a small script, you can simulate the text appearing one word at a time after the user clicks the submit button. Using the setInterval() function, you can control the speed at which the text is revealed. For example, the response "AI Text Generator" can appear with a short delay between each word.

This method of animating text can provide a more dynamic user experience, making it feel as if the AI is generating the response in real-time. AI Text Generator is a great feature to integrate into your interactive prototype.


rozper
  • New Member
  • 1 reply
  • May 8, 2025

That's a really neat idea for making AI responses more engaging! To get that cool effect where text appears to be typed out one letter at a time, a popular and pretty straightforward way is to use a bit of JavaScript. You'd have it take the AI's answer and then show it on the screen character by character, with tiny pauses. You can then sprinkle in some CSS to add a blinking cursor and make it look even more like someone's actually typing. If you want to make it even easier on yourself, there are some great JavaScript libraries out there specifically for these typewriter effects that can save you a bunch of coding time. It's a fantastic touch – you could even see it being used to make instructions for setting up a new VoIP phone system feel much more interactive and easy to follow.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings