Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

306 B
Raw Blame
import { cognitionApiServiceClient } from '@service-cognition/client';

export async function createInputChat() {
  const response = await cognitionApiServiceClient.createChat({});
  if (response.isErr())
    throw new Error('Could not start the chat. Your draft is saved.');
  return response.value.id;
}