Skip to main content
These examples show the tool calls an AI agent makes behind the scenes. You don’t need to write these yourself, just describe what you want in natural language and your AI agent handles the rest.

Schedule a Post to X

A typical flow to schedule a post to X (Twitter):
1

List integrations

The agent calls integrationList and finds your X account:
2

Get platform schema

The agent calls integrationSchema with platform: "x" to learn the rules:
3

Schedule the post

The agent calls schedulePostTool:

Post to Discord with Channel Selection

Platforms like Discord require selecting a channel first:
1

Get the schema

The agent calls integrationSchema with platform: "discord" and discovers a tool to list channels.
2

List channels

The agent calls triggerTool:
Returns available channels with their IDs.
3

Schedule the post

The agent includes the channel ID in settings:
Instagram (Facebook Business-linked) exposes an audioSearch tool for finding music or original sounds to attach to a Reel:
1

Search for audio

The agent calls triggerTool (an empty q returns trending audio):
Returns audio assets with their IDs:
2

Schedule the Reel

The agent includes the chosen audio in settings. The post must be a single video with post_type: "post":
Audio is not available on instagram-standalone channels. The Instagram Audio API requires Facebook Login.

Post with an AI-Generated Image

1

Generate the image

The agent calls generateImageTool:
Returns:
2

Schedule with the image

The agent includes the image URL in attachments:

Generate a Video and Post

1

Check video options

The agent calls generateVideoOptions to see available generators.
2

Get voice options

For Image Text Slides, the agent calls videoFunctionTool:
Returns a list of available voices with their IDs.
3

Generate the video

The agent calls generateVideoTool:
Returns the video URL.
4

Schedule with the video

The agent uses the video URL as an attachment when calling schedulePostTool.

Clip a YouTube Video into Draft Posts

Video clipping runs for several minutes, so it is a start call followed by status calls:
1

List integrations

The agent calls integrationList to get the IDs of the channels the drafts are for.
2

Start the clipping

The agent calls clippingTool:
Returns right away:
3

Check the status

The agent calls clippingStatusTool with the clippingId. Each call waits up to 25 seconds for a change, and the agent repeats it while the status is pending:
4

Read the clips

When the status is completed, every finished clip has a hosted url:
The clips are already in the media library, and a draft per clip was created on each of the two channels. To publish one somewhere else, the agent passes its url in attachments when calling schedulePostTool.

Create an X Thread

To create a thread on X, add multiple items to postsAndComments:

Post to LinkedIn with a Comment

For LinkedIn, the first item in postsAndComments is the post and the rest are comments:

Bulk Schedule

Schedule 5 posts across different days:
Each item in the socialPost array is an independent post with its own date, content, and settings.