Siro-ai / SiroSDK

SDKs for interacting with Siro.ai from other applications.
1 stars 0 forks source link

SiroSDK Schema #3

Closed christophliftoff closed 1 year ago

christophliftoff commented 1 year ago

Metadata Schema:

interface Interaction/History {
  note: string;
  stageId: string;
  createdAt: number;
}

interface Contact {
  firstName: string;
  lastName: string;
  email: string;
  phoneNumber: string; 
}

Lead Metadata Schema:
{ 
// Core Fields

    id: string;
    createdAt: number;
    externalId: string;
    address: {
       street: string;
       street2: string;
       city: string;
       state: string;
       postalCode: string;
       country: USA;
    } 
    coordinates: {
    lat: string;
    long: string;
    }
    contacts: Contact[];
    stageId: string // This denotes location in the funnel
    note: string;
    metadata: {}

// Potentially useful fields
    externalDateCreated: string|number;
    history: History[]
}
christophliftoff commented 1 year ago

@jakecronin @dekedor I actually noticed that both spotio AND sales rabbit have an owner attached to the logs. Perhaps we can add this, and if the field is not passed to the SDK we can assume its the person recording?