Skip to content

Social AI

Products - Social AI

Generate AI-based social post content

Request

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

Bodyapplication/jsonrequired
promptstringrequired

Prompt for the AI to generate content

campaignIdinteger, (int64)

Campaign ID to which the content will be generated

businessIdsArray of integersrequired

List of business IDs to filter the previous social post content

locationIdsArray of integersrequired

List of location IDs to filter the previous social post content

listingPageIdsArray of integersrequired

List of listing page IDs to filter the previous social post content

businessPageIdsArray of integersrequired

List of business page IDs to filter the previous social post content

labelsArray of stringsrequired

List of labels to filter the previous social post content

locationGroupIdsArray of integersrequired

List of location group IDs to filter the previous social post content

directoriesArray of stringsrequired

List of directories to filter the previous social post content

typestring

Type of Social Post to filter the previous social post content

descriptionMaxLengthinteger, (int32)

Description max length

titleMaxLengthinteger, (int32)

Title max length

curl -i -X POST \
  https://uberall.com/api/social-ai/generate-content \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": "string",
    "campaignId": 0,
    "businessIds": [
      0
    ],
    "locationIds": [
      0
    ],
    "listingPageIds": [
      0
    ],
    "businessPageIds": [
      0
    ],
    "labels": [
      "string"
    ],
    "locationGroupIds": [
      0
    ],
    "directories": [
      "string"
    ],
    "type": "string",
    "descriptionMaxLength": 0,
    "titleMaxLength": 0
  }'

Responses

OK

Body*/*
promptstringrequired

Prompt used in the requests

descriptionstringrequired

Social Post description generated by the AI

titlestringrequired

Social Post title generated by the AI

languagestringrequired

Language detected in the generated content

Response
{
  "prompt": "string",
  "description": "string",
  "title": "string",
  "language": "string"
}