Composio - Skills that evolve with your Agents

# ---- GitHub ----

def create_github_issue(repo, title, body, token):

url = f"https://api.github.com/repos/{repo}/issues"

headers = {"Authorization": f"token {token}"}

data = {"title": title, "body": body}

return requests.post(url, json=data, headers=headers)

# ---- Notion ----

def log_to_notion(database_id, title, github_url, notion_token):

url = "https://api.notion.com/v1/pages"

headers = {

"Authorization": f"Bearer {notion_token}",

"Content-Type": "application/json",

"Notion-Version": "2022-06-28"

# ---- Slack ----

def reply_in_slack(channel, thread_ts, text, slack_token):

url = "https://slack.com/api/chat.postMessage"

headers = {"Authorization": f"Bearer {slack_token}"}

data = {

"channel": channel,

"thread_ts": thread_ts,

"text": text

}

return requests.post(url, json=data, headers=headers)