I'm really impressed today that the AI had the audacity to mock me for being a cow or a horse, and threw a big picture right in my face.
It seems my life is a joke in the eyes of AI, upgrading all the way from "junior cow horse" to "senior cow horse". Thank you very much, Mr. AI!
The AI apparently didn't think it was fun enough to just laugh at me, but also dissed my friend by saying he was a minion. Oh, so in the eyes of AI, we are all synonymous with "low income".
Wait, how did it end up "passing away silently"?
Well, since it has been so "accurately" portrayed by AI, we might as well see how it creates such a "masterpiece".
To get the AI to generate this kind of diagram, it's actually quite simple, all you need is a Prompt, which reads as follows:
;; Prompt word: life of an animal
;; Author: spaces zephyr
(defun animal life cycle ()
"Generates an SVG chart and description of an animal's life cycle."
(lambda (subject)
(let* ((life-stage (get life-stage theme)))
(science data (Get Science Data Theme))
(background styles (Design backgrounds Theme))
(Timeline (Create Timeline Theme))
(Stage emoji (Choose stage emoji theme))
(Decoration emoji (Choose decoration emoji theme))
(Subtitle (Generate Subtitle Theme Science Data)))
(Create Optimized SVG Chart Theme Life Stage Science Data Background Style Timeline Stage emoji Decoration emoji Subtitle ))))
(defun Get life stages (theme)
"Get the main life stage of the theme."
(case theme
(cicadas '("Egg" "Waking stage (underground)" "Adult stage"))
(whale '("fetal stage" "juvenile stage" "adolescent stage" "adult stage" "old age"))
(giraffe '("neonatal period" "juvenile period" "adolescence" "adulthood" "old age"))
(t '("early years" "adulthood" "maturity" "senescence" ))))
(defun Get Science Data (Topic)
"Get a list of sci-fi data for the topic"
(case theme
(Cicadas '(("Eggs incubate in twigs for 6-10 weeks and can lay 200-600 eggs per clutch."
"Wakame live underground for many years, sucking sap from tree roots to survive."
"Wakame undergoes 5 molts and can increase in size up to 20 times."
"After the last molt they burrow out of the ground and become adults."
"The adult stage lasts only 4-6 weeks and is focused on reproduction and chirping.")
"Cicadas have an underground incubation period of up to 17 years, with adults surviving only 4-6 weeks and chirping up to 120 decibels, equivalent to the noise of an airplane taking off."))
(Whales '(("Blue whale fetuses gain 90 kilograms a day, weighing 2.5 tons and 7 meters long at birth.")))
"Young whales drink 380 liters of milk a day and gain 30 tons in 7 months."
"Young blue whales can dive 200 meters deep and hold their breath for up to 40 minutes."
"Adult blue whales are 30 meters long, weigh 190 tons, and eat 4 tons of krill a day."
"The longest living blue whale can be up to 110 years old and can swim the equatorial distance of the Earth 13 times in its lifetime.")
"The blue whale is the largest animal on Earth, with a heart weighing 600 kilograms, a tongue as heavy as an elephant, and a call that can travel 1,600 kilometers.")))
(t '(("Description of data from stage 1"
"Data description for stage 2"
"Data description for stage 3"
"Data description for stage 4"
"Data description for stage 5")
"Interesting data descriptions for generic themes" ))))
(defun Design background (theme)
"Design a suitable context based on the theme"
(case theme
(cicadas '(gradient "E6F3FF" "B3E5FC" land))
(Whale '(gradient "E3F2FD" "90CAF9" ocean))
(giraffe '(gradient "FFFF8E1" "FFE0B2" grassland))
(t '(gradient "F5F5F5" "E0E0E0" generic ))))
(defun create timeline (theme)
"Creates a timeline of the theme's lifecycle."
(case theme
(cicadas '("0 years" "4 years" "8 years" "12 years" "16 years" "17 years"))
(Whale '("0 years" "10 years" "25 years" "50 years" "75 years" "100 years"))
(giraffe '("0 months," "6 months," "2 years," "4 years," "15 years," "25 years"))
(t '("early" "growth" "maturity" "later" "senescence" ))))
(defun select stage emoji (theme)
"Select the emoji associated with a life stage."
(case theme
(cicadas '("π₯" "π" "π¦" "π΅"))
(Whale '("π€°" "πΌ" "π" "π" "π΅"))
(giraffe '("πΆ" "π" "π" "π¦" "π΅"))
(t '("π±" "πΏ" "π³" "π" ))))
(defun Select decorated emoji (theme)
"Selects a decorated emoji related to the theme."
(case theme
(cicada '("π³" "π" "πΏ" "π"))
(Whale '("π" "π " "π¦" "π"))
(giraffe '("π΄" "πΏ" "π¦" "π¦"))
(t '("π±" "π³" "π" "π" ))))
(defun Generate subtitle (Subject Kopp data)
"Generate subheadings based on popular science data"
(format "Did you know? %s" (second element Science Fiction data)))
(defun create optimized SVG chart (theme life stage science data background style timeline stage emoji decoration emoji subtitle))
"Create optimized lifecycle SVG chart"
(let ((svg-template
"<svg xmlns=\"http:///2000/svg\" viewBox=\"0 0 800 500\">;
<! -- Gradient background -->
<defs>
<linearGradient id=\"bgGradient\" x1=\"0%\" y1=\"0%\" x2=\"0%\" y2=\"100%\">!
<stop offset=\"0%\" style=\"stop-color:#{background-color1};stop-opacity:1\" />
<stop offset=\"100%\" style=\"stop-color:#{background-color2};stop-opacity:1\" />
</linearGradient>
</defs>
<rect width=\"100%\" height=\"100%\" fill=\"url(#bgGradient)\" />
<! -- Theme-related background decorations -->!
{background decorations)
<! -- Headings and subheadings -->
<text x=\"400\" y=\"30\" text-anchor=\"middle\" class=\"title\" fill=\"#3333333\"> {Theme}of a lifetime </text>.
<text x=\"400\" y=\"60\" text-anchor=\"middle\" class=\"subtitle\" fill=\"#555555\">
<tspan x=\"400\" dy=\"0\"> {subtitle_first_line}</tspan>
<tspan x=\"400\" dy=\"20\">{subtitle_second_line}</tspan>
</text>.
<! -- timeline -->
<line x1=\"50\" y1=\"400\" x2=\"750\" y2=\"400\" stroke=\"#555555\" stroke-width=\"2\" />!
{Timestamp}
<! -- life stage -->
{life stage label}
<! -- Data Points and Koppel Information -->
{data points and sci-fi information}
<! -- Curve Connections -->
<path d=\"M50,350 Q140,360 230,370 T400,330 T580,290 T730,250\" fill=\"none\" stroke=\"#55555555\" stroke-width=\"2\"/>!
<! -- Legend -->
<rect x=\"50\" y=\"460\" width=\"700\" height=\"30\" fill=\"rgba(255,255,255,0.05)\"/>!
<text x=\"60\" y=\"480\" class=\"legend-text\" fill=\"#333333\"> Legend: </text>
<circle cx=\"150\" cy=\"475\" r=\"8\" fill=\"#FFD700\"/>
<text x=\"170\" y=\"480\" class=\"legend-text\" fill=\"#333333\"> life stage</text>
<line x1=\"270\" y1=\"470\" x2=\"270\" y2=\"480\" stroke=\"#555555\" stroke-width=\"2\"/>
<text x=\"290\" y=\"480\" class=\"legend-text\" fill=\"#333333\"> life course</text>
<text x=\"420\" y=\"480\" class=\"legend-text\" fill=\"#3333333\">{legend emoji}</text>
<! -- Bottom Decorative Emoji -->!
{Bottom Decoration Emoji}
</svg>"))
(fill optimized svg template svg-template theme life stage science data background style timeline stage emoji decoration emoji subtitle))))
(defun start ()
(print "Please enter the life theme you would like to learn about (e.g. Cicada, Whale, Giraffe, etc.):")
(let ((user input (read))))
(Optimize Lifecycle Builder user input))))
;; Run rules
Run the (start) function at startup.
;; 2. Generate SVG diagrams and descriptions of the lifecycle based on the topics entered by the user.
Output should include optimized SVG charts and related text descriptions, highlighting scientific data and interesting facts.
The function of this cue word isPopularize the life cycle of animals and share cold knowledge in one sentence, the unexpected other side of animalsγ
It is clear that this author's prompts mimic the style of Mr. Jigang Li's prompts, using Lisp pseudo-code.
Original cue word source:/s/BOMOQVGQ5hvd8dDaKwb18A
But it's not enough to just have a prompt, because only Claude Artifact is able to preview SVG images, other platforms can only output SVG code, there's no way to preview images directly.
Let me show you how to useFastGPT The workflow reproduces the above effect.
FastGPT Address:
Vertical ladder access is required!
1οΈβ£ First access the AI dialog node and choose Claude 3.5 for the model.
2οΈβ£ Next we get the code run node, the function of this code is to extract the contents of the svg code block so that it can be formatted for subsequent output.
The code reads as follows:
function main({svg_str}){
// Match the contents of the block with a regular expression
const match = svg_str.match(/```[\w]*\n([\s\S]*?) ```/);
if (!match) {
// If the block is not matched, return an error or null result
return {
result: null,
error: "A valid code block token was not found."
};
}
// Extract the SVG content of the code block
const extractedSvg = match[1].trim();
const base64 = strToBase64(extractedSvg,'data:image/svg+xml;base64,')
return {
result: base64
}
}
3οΈβ£ Eventually format the output by specifying the reply node.
Final effect:
Claude 3.5 is really good at understanding things, and although this workflow depicts the life of an animal, we can actually have it generate the life of anything, such as "cow and horse", or "hello", and just in case some of the newer terms are not well understood by Claude, you can explain them to it a little bit. Claude doesn't quite understand, you can explain it a little bit, and eventually it will generate a more satisfying lifetime for you.
For example, the life of a cow or a horse:
The life of a minion:
In this way, you can generate a "life map" of anything.
For AI's mockery, we might as well look at it from another angle, AI's "mockery" is actually an alternative interpretation of our lives.
It reminds us, in a humorous way, that there are always things that are not as good as we would like them to be, but it's those same things that make our lives richer.
So, the next time AI "flirts" with me, I'll accept it with a smile and use its "wisdom" to motivate myself to keep moving forward.
Life is not easy, but we can always find our own fun.
Complete workflow:/s/019132869eca