This is the source code for the Splunk Phantom app that can be used to entities and annotations on Polarity in an automated fashion. Released in conjunction with joint webinar between Splunk and Polarity on Oct 13, 2020.
You can either modify the source to your liking or just take the compiled app in the "compiled_app" folder and install on your Phantom instance.