Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

feat(automations): content-style picker in the generate node config

Paulo Castellano5df03f775a5e
diff --git a/lang/en/automations.php b/lang/en/automations.php
index 308f748e8..195fabdc8 100644
--- a/lang/en/automations.php
+++ b/lang/en/automations.php
@@ -285,6 +285,7 @@ return [
'use_brand_voice_hint' => 'Apply your brand description and voice. Turn off for faithful curation of third-party sources (news, RSS).',
'use_brand_visuals' => 'Use brand visuals',
'use_brand_visuals_hint' => 'Steer AI images with your brand colors and identity. Turn off for neutral imagery driven only by the post topic.',
+ 'style' => 'Style',
'account_summary' => ':count account · :format|:count accounts · :format',
'formats' => [
'single' => 'single',
diff --git a/lang/es/automations.php b/lang/es/automations.php
index 0371e7768..9313bf822 100644
--- a/lang/es/automations.php
+++ b/lang/es/automations.php
@@ -285,6 +285,7 @@ return [
'use_brand_voice_hint' => 'Aplica la descripción y la voz de tu marca. Desactiva para curaduría fiel de fuentes de terceros (noticias, RSS).',
'use_brand_visuals' => 'Usar visual de marca',
'use_brand_visuals_hint' => 'Guía las imágenes de IA con los colores e identidad de tu marca. Desactiva para imágenes neutrales, guiadas solo por el tema del post.',
+ 'style' => 'Estilo',
'account_summary' => ':count cuenta · :format|:count cuentas · :format',
'formats' => [
'single' => 'único',
diff --git a/lang/pt-BR/automations.php b/lang/pt-BR/automations.php
index d937d8f07..1b971194d 100644
--- a/lang/pt-BR/automations.php
+++ b/lang/pt-BR/automations.php
@@ -285,6 +285,7 @@ return [
'use_brand_voice_hint' => 'Aplica a descrição e a voz da sua marca. Desligue para curadoria fiel de fontes de terceiros (notícias, RSS).',
'use_brand_visuals' => 'Usar visual da marca',
'use_brand_visuals_hint' => 'Guia as imagens de IA com as cores e identidade da sua marca. Desligue para imagens neutras, guiadas só pelo tema do post.',
+ 'style' => 'Estilo',
'account_summary' => ':count conta · :format|:count contas · :format',
'formats' => [
'single' => 'único',
diff --git a/resources/js/components/automations/config/GenerateNodeConfig.vue b/resources/js/components/automations/config/GenerateNodeConfig.vue
index c5452d259..291ca3989 100644
--- a/resources/js/components/automations/config/GenerateNodeConfig.vue
+++ b/resources/js/components/automations/config/GenerateNodeConfig.vue
@@ -48,8 +48,15 @@ interface GenerateConfig {
prompt_template: string;
use_brand_voice: boolean;
use_brand_visuals: boolean;
+ style: string;
}
+const contentStyles = [
+ { key: 'image_card', preview: '/images/ai-templates/image-card.png' },
+ { key: 'tweet_card', preview: '/images/ai-templates/tweet-card.png' },
+ { key: 'tweet_card_image', preview: '/images/ai-templates/tweet-card-image.png' },
+];
+
const props = defineProps<{
data: Record<string, unknown>;
errors?: Record<string, string>;
@@ -143,6 +150,7 @@ const local = ref<GenerateConfig>({
prompt_template: (props.data.prompt_template as string) ?? '',
use_brand_voice: (props.data.use_brand_voice as boolean | undefined) ?? true,
use_brand_visuals: (props.data.use_brand_visuals as boolean | undefined) ?? true,
+ style: (props.data.style as string) ?? 'image_card',
});
watch(local, (val) => emit('update', val), { deep: true });
@@ -282,6 +290,34 @@ const channels = computed<Channel[]>(() =>
/>
</div>
+ <div class="space-y-2">
+ <Label class="text-sm font-bold">{{ $t('automations.config.generate.style') }}</Label>
+ <div class="grid grid-cols-3 gap-2">
+ <button
+ v-for="s in contentStyles"
+ :key="s.key"
+ type="button"
+ class="flex flex-col items-center gap-1.5 rounded-lg border p-2 text-left transition-colors"
+ :class="local.style === s.key
+ ? 'border-violet-500 bg-violet-50 dark:bg-violet-950/30'
+ : 'border-border hover:border-violet-300 hover:bg-muted/50'"
+ @click="local.style = s.key"
+ >
+ <img
+ :src="s.preview"
+ :alt="$t('posts.ai.templates.' + s.key + '.name')"
+ class="w-full rounded object-cover"
+ />
+ <span
+ class="text-center text-[10px] font-medium leading-tight"
+ :class="local.style === s.key ? 'text-violet-700 dark:text-violet-300' : 'text-foreground/70'"
+ >
+ {{ $t('posts.ai.templates.' + s.key + '.name') }}
+ </span>
+ </button>
+ </div>
+ </div>
+
<div v-if="imageCountCap >= 1" class="space-y-2">
<Label class="text-sm font-bold">{{ $t('automations.config.generate.image_count') }}</Label>
<p class="text-xs text-foreground/60">{{ $t('automations.config.generate.image_count_hint') }}</p>