Sharing Bots between Projects
# support
p
Hi, We have common bots which we want to deploy and share between projects, what is the best way to achieve the same?
r
Hi @pravinu , we have no facilities for sharing Bots between Projects at this time.
Would you mind sharing your use case? Maybe we can suggest an alternative approach
p
Here is the case, we have some Bots which sync data from different sources like wearables, EHRs etc, as we might have different customers we have one project per customer, so in this case we need to deploy same bots under different projects and execute, so was thinking better way to handle
r
While it's not possible to share the Bot resource between projects, it is definitely possible to share the bot code between projects
p
how?
You mean without deploying under each project? We want to execute the Bot endpoint from FE
r
Ah sorry no, you would have to deploy to each project. However, you can execute them all with a common endpoint by assigning them all a common identifier. Then you can use the "Execute by Identifier" functionality: https://www.medplum.com/docs/api/fhir/operations/bot-execute#invoke-a-bot-by-identifier
p
I see, this is helpful
else we were thinking to use Bot endpoint to fetch all bots and then use its endpoint