openi_type can now be either full url or id