---
title: "Generate AI-based social post content"
method: POST
path: "/social-ai/generate-content"
tags: ["Social AI"]
---

# Generate AI-based social post content

`POST /social-ai/generate-content`

It looks for previous social posts which match the context in the request 
            and use them to send to the AI to generate similar social post content that mimics tone and style

## Request body

- object — Request body containing content generation details
  - `prompt` string, required — Prompt for the AI to generate content
  - `campaignId` integer — Campaign ID to which the content will be generated
  - `businessIds` integer[], required — List of business IDs to filter the previous social post content
  - `locationIds` integer[], required — List of location IDs to filter the previous social post content
  - `listingPageIds` integer[], required — List of listing page IDs to filter the previous social post content
  - `businessPageIds` integer[], required — List of business page IDs to filter the previous social post content
  - `labels` string[], required — List of labels to filter the previous social post content
  - `locationGroupIds` integer[], required — List of location group IDs to filter the previous social post content
  - `directories` string[], required — List of directories to filter the previous social post content
  - `type` string — Type of Social Post to filter the previous social post content
  - `descriptionMaxLength` integer — Description max length
  - `titleMaxLength` integer — Title max length

## Response `200`

OK

---

[API](https://skmtc.net/uberall/apis/uberall-api.md) · [All operations](https://skmtc.net/uberall/apis/uberall-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uberall/uberall-api/versions/ddc577c548ee/schema)
