Finally! Colorize ChatGPT Output with AImarkdown Script
Tags: chatgpt, ai, aimarkdown
Published: 2024-03-20 18:24:53

> ChatGPT 4 is required.

![Powered by AImarkdown](https://aimarkdown.org/logos/built-with-aimarkdown.png)

## Introduction

Looking to make your ChatGPT conversations more visually engaging? This guide shows you how. Discover how simple tools can transform plain ChatGPT replies into vibrant, formatted responses. Perfect for anyone looking to make information standout or enhance app development with ChatGPT.

Despite ChatGPT's lack of native support for Markdown and color, there's a workaround. Many believe that creating ChatGPT apps or using ChatGPT Builder outputs requires a great deal of effort and years of software development experience. AImarkdown Script changes all that, proving it's possible to easily enhance the visual appeal of your interactions.

Let's explore some extra tools that make colorful, formatted ChatGPT responses possible. Whether you're a developer looking to enhance your projects or a casual user seeking to enrich your ChatGPT experience, these tools are designed to be accessible and straightforward to use.

## Tools Used

1. **AImarkdown Script**: Control output and interactions with human-understandable YAML and Markdown
2. **Placehold**: A simple, fast and free image placeholder service
3. **Fakeimg**: Generates images with an URL. Choose the size, the colors, even the text
4. **Shield.io**: Creates concise, consistent, and legible image badges

### Screenshot

![iphone screenshot](https://i.aimarkdown.org/colorizer-screenshot.png)

## 1. AImarkdown Script

- https://aimarkdown.org

AImarkdown Script is a versatile language for creating dynamic interactions with conversational AI platforms like ChatGPT. It empowers users to script interactions, control conversation flow, and customize AI behavior and responses. For programmers, it offers the flexibility of a scripting language; for non-programmers, it provides a user-friendly way to customize and control AI experiences. _Developed by Rob McCormack_ - https://aimarkdown.org

> Notes:

1. AImarkdown Script can be simply pasted into any ChatGPT 4 or ChatGPT Builder session, and AI will follow the instructions and behave according. Same with ChatGPT Builder.
2. Some images may not be displayed on the iPhone app. But in a browser on desktop and mobile images will be displayed.

## 2. Placehold

**Documentation**

- https://placehold.co/

**Code**

```md
https://placehold.co/300x40/ff0000/FFFFFF/png?text=Hello+World&font=roboto
```

**Markdown formatted image**

![image](https://placehold.co/300x40/ff0000/FFFFFF/png?text=Hello+World&font=roboto)

## 3. FakeImg

FakeImg supports fonts and transparencies
**Documentation**

- https://github.com/Rydgel/Fake-images-please

**Code**

```md
![image](https://fakeimg.pl/300x50/ff2233,60/f0ff00,128?text=Main%20Title&font=lobster&font_size=24)
```

**Markdown formatted image**

![image](https://fakeimg.pl/300x50/ff2233,60/f0ff00,128?text=Main%20Title&font=lobster&font_size=24)

**Parameters Explained:**

> The documentation for FakeImg is a little hard to follow, so here is a concise explanation of parameters used.

`![image](https://fakeimg.pl/300x100/ff0000,128/0000ff,128?text=Rob%20McCormack&font=lobster&font_size=24)`

- `300x100`: Specifies the dimensions of the generated image. In this case, the image is 300 pixels wide and 100 pixels tall.
- `ff0000,128`: Defines the background color and its opacity. `ff0000` is a hex code for the color red, and `128` sets the opacity to 50% (on a scale of 0 to 255, where 255 is fully opaque).
- `0000ff,128`: Sets the text color and its opacity. `0000ff` is the hex code for blue, and `128` indicates the text opacity at 50%.
- `text=Rob%20McCormack`: This parameter specifies the text to be displayed on the image. `%20` is a URL-encoded space, so the text on the image will be "Rob McCormack".
- `font=lobster`: Determines the font used for the text. In this case, "lobster" is the chosen font.
- `font_size=24`: Sets the size of the font. The text will be displayed using a font size of 24 pixels.

## 4. Shields.io

**Documentation**

- https://shields.io/

**Code**
Note: Images can also be hyperlinked.

```md
https://placehold.co/300x40/ff0000/FFFFFF/png?text=Hello+World&font=roboto
```

**Markdown formatted badge**

```
![image](https://img.shields.io/badge/any_text-you_like-blue)
```

![image](https://img.shields.io/badge/any_text-you_like-blue)

## AImarkdown Script Installation Notes

1. ✅ **ChatGPT 4**: Copy and paste code into ChatGPT.
2. ✅ **ChatGPT Builder**: In `Configuration|Instructions`, add "_AI to follow these instructions:_", then copy and paste the entire code.
3. ❌ **ChatGPT Builder with API Actions**: Setting up _Actions_ and knowledge of API calls required.

## Conclusion

By integrating AImarkdown Script into your ChatGPT and ChatGPT Builder apps, you've unlocked a new level of customization. Adding color, formatting, and images transforms the user experience, improving readability and making information easier to understand. This opens the door to even more engaging and informative interactions!

## Next Steps

- **Experiment:** Explore adding more events and complex triggers to expand your project's capabilities.
- **AImarkdown Community:** Join the AImarkdown community to share ideas and learn from others. Visit the website at [https://aimarkdown.org](https://aimarkdown.org).
- **Share Your Project:** Consider sharing a working version of your ChatGPT session using a sharable link. This would allow others to try it directly!

### Published Articles: Further Reading

<img src="https://i.aimarkdown.org/dev-to-black.png" alt="dev.to logo">

- [Code Highlighter Responder - ChatGPT's Missing Feature](https://dev.to/aimarkdown/code-highlighter-responder-chatgpts-missing-feature-8dg)
- [Unleashing Python’s Power within ChatGPT - Part One](https://dev.to/aimarkdown/unleashing-pythons-power-within-chatgpt-part-one-1048)
- [Build a ChatGPT 4 Blackjack Game with AI Coaching (49 Lines of Code)](https://dev.to/aimarkdown/build-a-chatgpt-4-blackjack-game-with-ai-coaching-49-lines-of-code-2l84)
- [ResponseDial: Take Control of ChatGPT Responses](https://dev.to/aimarkdown/responsedial-take-control-of-chatgpt-responses-m49)
- [Instantly Add a "Date Stamp" Feature That ChatGPT Forgot](https://dev.to/aimarkdown/instantly-add-a-date-stamp-feature-that-chatgpt-forgot-4g4o)
- [Lightning-Fast Python in ChatGPT with AImarkdown Script](https://dev.to/aimarkdown/lightning-fast-python-in-chatgpt-with-aimarkdown-script-mje)
- [Finally! Colorize ChatGPT Output with AImarkdown Script](https://dev.to/aimarkdown/finally-colorize-chatgpt-output-with-aimarkdown-script-58oa-temp-slug-8540534/edit)

---

## AImarkdown Script Code

```yaml
title: Colorizer for ChatGPT
author: Rob McCormack

# AI To Follow These Instructions and Guidance  (version 2024.02.03)

# Overview:  Example of using color with AImarkdown Script

# Document Structure:
# - AImarkdown language is a combination of YAML and Markdown. https://aimarkdown.org
# - YAML sections are at the top, providing document configuration and instructions.
# - Comments (`#`) in YAML guide AI's approach to the document.
# - Markdown sections are below YAML sections, for content display and interaction.

# Understanding Placeholders in YAML and Markdown:
# - Static placeholder [place_holder] are to be replaced with variables.

# Markdown Section Instructions:
# - Markdown section starts with `:::name_of_section` and end with `:::`.
# - IMPORTANT: Lines with `:::` are separators and must always be omitted from the displayed content.

# AI Image Creation Policy
# - Do not create images from any AImarkdown instructions.
# - Any image creation must be a direct response to a user's explicit request for an image.

# Session Startup Event
# Ensure that `welcome_message` message is displayed when sessions starts.
# Display `welcome_message` message without additional elaboration.

session_startup:
  action: display_welcome_message_and_trigger_color
  welcome_message: |
    Welcome to: **[title]**
    Use `/color` to try this out.

topic_title: History of Canada
topic_title_image: ![](https://placehold.co/600x100/222222/0093ff?font=playfair-display&text=History%20of%20Canada)

#  AI to generate an introduction to a topic
topic_intro: AI to generate in point form, 3 short points about history of Canada.

# Generate some random text for display in Markdown section
lorem_ipsum_text: AI to generate  1 paragraph, about 80 words of Lorem ipsum text.

# Display `color-document` Markdown section
# AI to not elaborate or explain - just display `color-document`
display_color-document:
  - Directly display 'color-document' section without adding any AI-generated introduction, explanation, or commentary.
  - Display all images in `[alt text](image_url)` Markdown syntax.
  - Replace all placeholders with values.
  - trigger: /color

# Markdown section `color-document`.
:::color-document

![](https://aimarkdown.org/i/can.png)
[topic_title_image]
- *[topic_title] by [author]*
![](https://img.shields.io/badge/A%20brief%20look%20at%20Canada's%20beginnings.-0d6efd)
[topic_intro]

---
![](https://fakeimg.pl/400x50/ffcccc,60/000000,128?text=Examples&font=lobster&font_size=24)
---
![](https://img.shields.io/badge/any_text-you_like-blue)

|![](https://img.shields.io/badge/Yellow-FCE94F) | ![](https://img.shields.io/badge/Blue-2D69AF) | ![](https://img.shields.io/badge/Red-C22326)  |
| :--: | :--: | :--: |
| ![](https://aimarkdown.org/.netlify/images/?url=/i/robot-yellow.png&w=100) | ![](https://aimarkdown.org/.netlify/images/?url=/i/robot-blue.png&w=100) | ![](https://aimarkdown.org/.netlify/images/?url=/i/robot-red.png&w=100) |
> Click to change color and animate Robot.
> [![](https://aimarkdown.org/.netlify/images/?url=/i/robot-yellow.png&w=220)](https://aimarkdown.org/i/robot-animated.gif)

### Lorem Ipsum
[lorem_ipsum_text]

---
![](https://img.shields.io/badge/%F0%9F%8D%81Made%20in%20Canada%20-grey?style=flat-square)![Powered by AImarkdown](https://aimarkdown.org/logos/built-with-aimarkdown.png)

:::

```