> For the complete documentation index, see [llms.txt](https://learn.cozmos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.cozmos.com/guides/social-media/x-twitter.md).

# X (Twitter)

### Setting up X for Cozmos

In your Cozmos Space go to: <mark style="color:yellow;">Settings / Social Media Integrations / X</mark>

<figure><img src="/files/zfegNPpaxAZ53K0S20rs" alt="X (Twitter)"><figcaption></figcaption></figure>

{% hint style="info" %}
The 'Title' field allows you to name the content you are linking, this makes it easier to find when browsing what content to add in Curator through the Social Content Link Action
{% endhint %}

To add a tweet or timeline to a Sphere you need to visit official website [![](https://abs.twimg.com/favicons/twitter.3.ico)X](https://twitter.com/home?lang=en)  Find the tweet you would like to embed and use the 3 dot 'more' button in the top right of the selected tweet.

Open the menu and select <mark style="color:yellow;">“Embed post”</mark> to generate markup to include on your webpage.

<figure><img src="/files/i5UhIGxVmxu6RM9dsInk" alt=""><figcaption></figcaption></figure>

This will open [![](https://abs.twimg.com/favicons/favicon.ico)Twitter Publish](https://publish.x.com/) where you can customize the look of the embedded post by clicking **set customization options**. After customization copy the provided code simply by clicking <mark style="color:yellow;">Copy Code button.</mark>

<figure><img src="/files/w7GPG0VmxUEHcwNp8uC1" alt=""><figcaption></figcaption></figure>

Paste the code in the <mark style="color:yellow;">Add Content</mark> section of the Social Media Integration settings

<figure><img src="/files/3ZL0VeofPkOQo0YKYT5W" alt=""><figcaption></figcaption></figure>

To embed a timeline, follow the same process. Go to  [![](https://abs.twimg.com/favicons/favicon.ico)Twitter Publish](https://publish.x.com/) and add the profile url.

<figure><img src="/files/17uqBBEunWMsCrl1Ezle" alt=""><figcaption></figcaption></figure>

Set your options and then use the <mark style="color:yellow;">Copy Code button.</mark>

<figure><img src="/files/L1htSqr7mpyzVhKBLkbS" alt=""><figcaption></figcaption></figure>

Paste the code in the <mark style="color:yellow;">Add Content</mark> section of the Social Media Integration settings

<figure><img src="/files/1Wf4yeMuHHiFrT58M1hd" alt=""><figcaption></figcaption></figure>

There is no limit to how many content links you can add, but we recommend naming them clearly so you can easily find them in Curator when applying the Social Content Link action.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://learn.cozmos.com/guides/social-media/x-twitter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
