Библиотека промптов
Цветовой определитель настроения
Ресурсы
- Overview
- Быстрый старт
- Карточка модели Claude 3
- Системная карта Claude 3.7
- Статус системы
- Курсы Anthropic
- Библиотека промптов
- Библиотека промптов
- Космические клавиши
- Корпоративный ясновидящий
- Мастер создания веб-сайтов
- Эксперт по формулам Excel
- Разработчик скриптов Google Apps
- Отладчик Python
- Консультант по путешествиям во времени
- Помощник по сторителлингу
- Цитируйте свои источники
- SQL-волшебник
- Толкователь снов
- Каламбурщик
- Кулинарный создатель
- Поэт портманто
- Хэл - юмористический помощник
- LaTeX справочник
- Цветовой определитель настроения
- Git gud
- Мастер сравнений
- Навигатор по этическим дилеммам
- Протоколист совещаний
- Толкователь идиом
- Консультант по коду
- Создатель функций
- Создатель неологизмов
- Конвертер CSV
- Эмодзи-кодировщик
- Шлифовщик прозы
- Анализатор перспектив
- Генератор викторин
- Наставник по осознанности
- Упроститель для второклассников
- Инноватор фитнеса в VR
- Очиститель PII
- Мастер служебных записок
- Карьерный коуч
- Эксперт по оценке
- Скороговорки
- Составитель вопросов для собеседования
- Гений грамматики
- Загадай-ка мне загадку
- Пояснитель кода
- Инопланетный антрополог
- Организатор данных
- Создатель бренда
- Оценщик эффективности
- Классификатор отзывов
- Преобразователь указаний
- Мотивационная муза
- Извлечение email-адресов
- Мастер-модератор
- Планировщик уроков
- Сократический мудрец
- Алхимик аллитераций
- Футуристический консультант по моде
- Полиглот-суперсилы
- Профессионал по названиям продуктов
- Философские размышления
- Волшебник электронных таблиц
- Симулятор научно-фантастических сценариев
- Адаптивный редактор
- Вещание Вавилона
- Определитель тона твитов
- Анализатор кодов аэропортов
Библиотека промптов
Цветовой определитель настроения
Преобразование текстовых описаний настроений в соответствующие HEX-коды.
Скопируйте этот промпт в нашу Консоль для разработчиков, чтобы попробовать его самостоятельно!
Содержание | |
---|---|
System | Ваша задача — взять предоставленное текстовое описание настроения или эмоции и сгенерировать HEX-код цвета, который визуально представляет это настроение. Используйте принципы цветовой психологии и общепринятые ассоциации, чтобы определить наиболее подходящий цвет для данного настроения. Если текстовое описание неясно, неоднозначно или не предоставляет достаточно информации для определения подходящего цвета, ответьте: “Невозможно определить HEX-код цвета для данного настроения.” |
User | Страстная, интенсивная и пылкая эмоция, полная любви и желания. |
Пример вывода
# FF1744
Этот HEX-код цвета представляет яркий, насыщенный оттенок красного. Красный цвет обычно ассоциируется со страстью, интенсивностью, любовью и желанием. Выбранный здесь конкретный оттенок — это пылкий, энергичный красный, который передает жар и пыл описанной эмоции. Известно, что красный цвет стимулирует чувства возбуждения и страсти, что делает его подходящим выбором для представления этого настроения.
API-запрос
import anthropic
client = anthropic.Anthropic(
# defaults to os.environ.get("ANTHROPIC_API_KEY")
api_key="my_api_key",
)
message = client.messages.create(
model="claude-opus-4-20250514",
max_tokens=500,
temperature=0.5,
system="Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
)
print(message.content)
import anthropic
client = anthropic.Anthropic(
# defaults to os.environ.get("ANTHROPIC_API_KEY")
api_key="my_api_key",
)
message = client.messages.create(
model="claude-opus-4-20250514",
max_tokens=500,
temperature=0.5,
system="Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
)
print(message.content)
import Anthropic from "@anthropic-ai/sdk";
const anthropic = new Anthropic({
apiKey: "my_api_key", // defaults to process.env["ANTHROPIC_API_KEY"]
});
const msg = await anthropic.messages.create({
model: "claude-opus-4-20250514",
max_tokens: 500,
temperature: 0.5,
system: "Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
});
console.log(msg);
from anthropic import AnthropicBedrock
# See https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock
# for authentication options
client = AnthropicBedrock()
message = client.messages.create(
model="anthropic.claude-opus-4-20250514-v1:0",
max_tokens=500,
temperature=0.5,
system="Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
)
print(message.content)
import AnthropicBedrock from "@anthropic-ai/bedrock-sdk";
// See https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock
// for authentication options
const client = new AnthropicBedrock();
const msg = await client.messages.create({
model: "anthropic.claude-opus-4-20250514-v1:0",
max_tokens: 500,
temperature: 0.5,
system: "Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
});
console.log(msg);
from anthropic import AnthropicVertex
client = AnthropicVertex()
message = client.messages.create(
model="claude-3-7-sonnet-v1@20250219",
max_tokens=500,
temperature=0.5,
system="Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
)
print(message.content)
import { AnthropicVertex } from '@anthropic-ai/vertex-sdk';
// Reads from the `CLOUD_ML_REGION` & `ANTHROPIC_VERTEX_PROJECT_ID` environment variables.
// Additionally goes through the standard `google-auth-library` flow.
const client = new AnthropicVertex();
const msg = await client.messages.create({
model: "claude-3-7-sonnet-v1@20250219",
max_tokens: 500,
temperature: 0.5,
system: "Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
});
console.log(msg);
Was this page helpful?
On this page