How to create your own AI wrapper