US 12,292,927 B1
Storing contextual data with context schemas
Ishita Das, Bangalore (IN); and Sundaram Ravisundaram, Bangalore (IN)
Assigned to Twilio Inc., San Fancisco, CA (US)
Filed by Twilio Inc., San Francisco, CA (US)
Filed on Dec. 29, 2023, as Appl. No. 18/401,162.
Int. Cl. G06F 16/90 (2019.01); G06F 16/901 (2019.01); G06F 16/903 (2019.01)
CPC G06F 16/901 (2019.01) [G06F 16/90335 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method comprising:
receiving, by a host application, a context schema of a first client application of a plurality of client applications, the context schema characterizing a context associated with the first client application, the context schema of the first client application being received from the first client application via an application programming interface (API), the context schema of the first client application specifying one or more context attributes, each context attribute identifying a respective context element of the context associated with the first client application;
storing, by the host application, the context schema of the first client application in a schema store, wherein the schema store also stores contexts of other client applications of the plurality of client applications;
receiving, by the host application from the first client application, a first context item of the context associated with the first client application, the first context item comprising one or more values, each value corresponding to a respective context attribute of the one or more context attributes;
validating, by the host application, the first context item against the context schema of the first client application; and
responsive to determining that the first context item conforms to the context schema of the first client application, storing, by the host application, the first context item in a context store, wherein the context store also stores context items of contexts associated with the other client applications.