๐Create a Briefing Document from Text
import os
import requests
token = os.getenv("AUTOCONTENT_TOKEN", "YOUR_API_TOKEN")
endpoint = "https://api.autocontentapi.com/content/Create"
payload = {
"outputType": "briefing_doc",
"format": "text",
"resources": [
{
"type": "text",
"content": "Q1 board memo: revenue growth slowed to 11%, enterprise expansion remains strongest, sales cycles increased by 18 days, and churn improved by 0.7 points.",
}
],
"text": "Create an executive briefing with summary, risks, and action items.",
"language": "en",
}
response = requests.post(
endpoint,
headers={"Authorization": f"Bearer {token}", "Content-Type": "application/json"},
json=payload,
timeout=30,
)
if response.status_code >= 400:
raise SystemExit(f"Request failed: {response.status_code} {response.text}")
print("Document request accepted:")
print(response.json())Last updated