# Creating a Post

{% hint style="info" %}
A **Social Post** contains all of the details about the AI request, AI response, and social platform destination for a particular post.
{% endhint %}

The Social Post form is organized into sections to simplify configuration:

* **Main Form**: Core information about post content, approval, and state
* **AI Details**: Details about the AI request & configuration
* **Social Details**: Details about the social platform configuration
* **Log**: Activity occurring on the Social Post record throughout its lifecycle

<div><figure><img src="https://2177291414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8GlWoCys6S6ejfs1kI4%2Fuploads%2FySo1gNsJXraLePwOedii%2F116.jpg?alt=media&#x26;token=02b6178f-1bc2-4d28-898c-143a6e2d935a" alt=""><figcaption><p>Main Form &#x26; AI Details</p></figcaption></figure> <figure><img src="https://2177291414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8GlWoCys6S6ejfs1kI4%2Fuploads%2FHxOdL39WhGBe0yLTyrkC%2F117.jpg?alt=media&#x26;token=7fbd8f84-2204-403d-8dc6-85e5bd6c7258" alt=""><figcaption><p>Social Details</p></figcaption></figure> <figure><img src="https://2177291414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8GlWoCys6S6ejfs1kI4%2Fuploads%2FNvbIEJXyRBNnv69lgxji%2F118.jpg?alt=media&#x26;token=35d7ec3e-e961-4058-b5b8-6abc63cbe1e5" alt=""><figcaption><p>Log</p></figcaption></figure></div>

{% hint style="info" %}
A Social Post can be progressed through its stages via buttons in the form header. Here you can select to **Request Approval** for a post, **Generate Content** from your AI Provider, and **Post Now** to your Social Platform.
{% endhint %}

### Main Form

* **Approval group**: Group responsible for approving the Social Post & triggering a send to the appropriate Social Platform.
* **State/Approval**: The state & approval status of the Social Post, respectively.
* **Post content**: Content to be posted to the Social Platform. This is generally AI-generated, but can be edited prior to posting. Any images attached to the Social Post record will also be included with the post.

### AI Details

{% hint style="info" %}
You can always trigger a re-generation of Social Post content by clicking the **Generate Content** button in the form header.
{% endhint %}

#### Content Settings

* **Prompt**: [**AI Prompt**](https://docs.yansalabs.com/tracy-social-ai/technical-docs/components-of-a-post/ai-prompts) used to generate the Social Post
* **Persona**: [**AI Persona**](https://docs.yansalabs.com/tracy-social-ai/technical-docs/components-of-a-post/ai-personas) used to generate the Social Post
* **Context statements**: One or more [**Context Statements**](https://docs.yansalabs.com/tracy-social-ai/technical-docs/components-of-a-post/context-statements) used to generate the Social Post
* **Instruction statements**: One or more [**Instruction Statements**](https://docs.yansalabs.com/tracy-social-ai/technical-docs/components-of-a-post/instruction-statements) used to generate the Social Post

#### Provider Settings

* **AI connector**: [**AI Connector**](https://docs.yansalabs.com/tracy-social-ai/technical-docs/getting-started/setting-up-an-ai-connector) through which the AI request is being made
* **AI model**: [**AI Model**](https://docs.yansalabs.com/tracy-social-ai/technical-docs/getting-started/setting-up-an-ai-connector/ai-models) against which the AI request is being made
* **Temperature**: Temperature setting for AI request. Defaults to what is specified in [General Settings](https://docs.yansalabs.com/tracy-social-ai/technical-docs/general-settings)
* **Max tokens**: Max tokens allowed for AI request. Defaults to what is specified in [General Settings](https://docs.yansalabs.com/tracy-social-ai/technical-docs/general-settings)

#### Communication

All data within the Communication section comes from the related **AI Request** record. All AI Request records can be viewed at **Tracy Social AI -> AI Connectors -> AI Requests** in the left nav.

* **AI request**: The related AI Request in the **AI Request** table
* **Status code**: Status code of the AI Request, such as 200/404/etc
* **Created by**: If the Social Post was created by a [Scheduler](https://docs.yansalabs.com/tracy-social-ai/technical-docs/scheduling-posts), this indicates the Schedule that triggered the post
* **Request**: The JSON payload of the request made to the [AI Provider](https://docs.yansalabs.com/tracy-social-ai/technical-docs/getting-started/setting-up-an-ai-connector/ai-providers)
* **Response**: The JSON payload of the response received by the [AI Provider](https://docs.yansalabs.com/tracy-social-ai/technical-docs/getting-started/setting-up-an-ai-connector/ai-providers)

### Social Details

{% hint style="info" %}
You can test any 'Pre-Publish' [**Content Transformers**](https://docs.yansalabs.com/tracy-social-ai/technical-docs/getting-started/setting-up-a-social-platform/content-transformers) prior to publishing by clicking the **Test "Pre-Publish" Content Transformers** link at the bottom of the form. Results will be shown in the Activity Log.
{% endhint %}

#### Post Settings

* **Social platforms**: The [Social Platforms](https://docs.yansalabs.com/tracy-social-ai/technical-docs/getting-started/setting-up-a-social-platform) to which the post will be sent
* **Post schedule**: Details of when the post will be sent to the Social Platforms
  * **Immediately (Upon Approval)**: Send immediately upon approval of the Social Post. If no Approval Group is specified, the Social Post will be submitted immediately with no approval step.
  * **At Specific Time**: Send at the time specified
  * **Within Schedule**: Post at a random time within the provided Schedule
  * **On Demand**: Post only when the **Post Now** button in the form header is clicked

#### Post Options

* **Social options**: Optionally, a JSON object defining additional options to be added to the request payload sent to the [Social Platform](https://docs.yansalabs.com/tracy-social-ai/technical-docs/getting-started/setting-up-a-social-platform)

### Log

The Activity Log contains a running list of all activity on the Social Post, including all AI communication, Social Platform, Approvals, etc.
