Tchop: Create Social
AI-generatedSummary
Create a social post within a specified story in tchop by providing details such as the story ID, post URL, publication status, optional headline and quote information, and associated images.
Inputs
- Story ID (required) — The numeric ID of the story to create the post in (must be a number).
- URL (required) — The URL of the social post to attach.
- Headline — Optional headline or comment to show above the quote text.
- Published (required) — Boolean indicating whether the post is published (true) or draft (false).
- Text — Quote text content of the social post.
- Quote Person — Name of the person being quoted.
- Quote Person Handle — Social handle of the quoted person.
- Quote Person Image — Image URL of the quoted person, which will be uploaded to tchop.
- Quote Created — Date and time when the social post was created.
- Image URLs — Image URLs to attach to the post, provided either as a single URL string or a JSON array of URL strings; each image will be uploaded.
- Metadata — Optional key-value metadata assignments to add to the output.
Output shape
a single JSON object containing the newly created social post's ID or error information if creation fails
Returns the GraphQL mutation response with the new social post ID in 'payload.id'. If images are provided, their URLs are uploaded prior to the post creation. The Story ID must be numeric or an error is thrown. Errors during execution are returned in the output if 'Continue On Fail' is enabled.
Examples
Example 1: Create a published social post in a specific story with URL, headline, quote details, and attached images.
Provide a numerical Story ID, the post's URL, set 'Published' to true, and optionally include headline, quote person details, quote creation date, and image URLs either as a string or JSON array.