Write an issue
Writes a draft issue in Markdown, to test and then send.
Free
This tool costs nothing to call.
An example
Draft the October newsletter: the new winter tires, the tune-up special from the 24th, and a photo of the Willamette 8 in green.
Your agent callsnewsletters_write_issueFree
The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.
{
"newsletter": "halverson-ride-notes",
"subject": "Winter tires are in, and our tune-up special",
"preheader": "All-weather and studded tires, and 15% off tune-ups from October 24.",
"body": "# Winter tires are in\n\nOur winter tires arrived this week, from all-weather commuter tires to studded ones for icy mornings. We fit them while you wait.\n\n\n\n## Tune-up special\n\nFrom October 24 to 31, every tune-up is 15% off.\n\n[See the tires](https://halversoncycle.example/tires)"
}Use it when
A new issue is due.
What it does
A draft issue in Markdown. Look at it with newsletters_send_test, then send it with newsletters_send_issue.
What comes back
The issue with its issue_id, status draft, subject, preheader and body. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
newsletterRequired | string | The newsletter's slug (from newsletters_list) or its exact name. 1 to 120 characters. |
subjectRequired | string | 1 to 200 characters. |
bodyRequired | string | Markdown: headings, lists, links, bold, quotes, tables and https images. 1 to 100,000 characters. |
preheader | string | The line mail apps show after the subject. Up to 200 characters. |
The call
Over MCP, call newsletters_write_issue on https://api.conecto.chat/mcp/newsletters. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/newsletters_write_issue \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"newsletter":"halverson-ride-notes","subject":"Winter tires are in, and our tune-up special","preheader":"All-weather and studded tires, and 15% off tune-ups from October 24.","body":"# Winter tires are in\n\nOur winter tires arrived this week, from all-weather commuter tires to studded ones for icy mornings. We fit them while you wait.\n\n\n\n## Tune-up special\n\nFrom October 24 to 31, every tune-up is 15% off.\n\n[See the tires](https://halversoncycle.example/tires)"}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | No newsletter of the business has that slug or name. | Call newsletters_list and use a slug from it. |
More Newsletters tools
All 15 tools- Connect the business's email service
newsletters_connect_serviceConnects the business's own email service (Brevo, Amazon SES, Mailgun or any SMTP server), which every newsletter email goes out through.Free - Disconnect the email service
newsletters_remove_serviceDisconnects the business's email service and forgets its password; newsletters wait until one is connected again.Free - Create a newsletter
newsletters_createCreates a newsletter people join on its own page by confirming their address, sent through the business's own email service.Free - Change a newsletter
newsletters_updateRenames a newsletter or changes its description, postal address or archive.Free - List newsletters
newsletters_listThe business's newsletters with their pages and subscriber counts, and the email service they go out through.Free* - Invite people to a newsletter
newsletters_inviteEmails each person a request to confirm a subscription; only those who confirm ever get an issue.Free - List subscribers
newsletters_subscribersWho is on a newsletter, newest first: confirmed, waiting to confirm, unsubscribed, bounced or complained.Free* - Remove a subscriber
newsletters_remove_subscriberDeletes someone from a newsletter for good, with their history.Free
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md