Step 4: Maintain your Taxonomy Using a Plugin (Optional)

Now that your doctors have their specialties assigned, you may be disinclined to maintain both a Listings category and a taxonomy specialty for each healthcare professional. To lighten this burden, you have the option to download a plugin that will automatically maintain parity between your doctors’ categories and taxonomy specialties. Every time you create a new entity (via connector, file upload, etc.) or edit an existing entity, this plugin will check the categories and/or Related Specialties field and ensure parity between these two fields. This plugin contains three functions which you can choose between based on your desired behavior:

  • Category to Specialty Function: every time you update a Listings category on a doctor profile, the corresponding specialty linked to that doctor will change accordingly.
  • Specialty to Category Function: every time you update a taxonomy specialty on a doctor profile, the corresponding category linked to that doctor will change accordingly.
  • Bidirectional Function: every time you update either a taxonomy specialty or a Listings category on a doctor profile, the corresponding category or specialty will update accordingly.
light bulb
Prerequisites
You will need to push resources to your Yext account via CLI in order to complete the following steps. If you have not already set up the CLI on your computer, you can do so by following this guide – only completing Step 1 of the five-step flow is necessary.
  1. Navigate to Developer > Developer Console
  2. In the top right corner, click + Add an App
  3. Name your app (something like “Maintaining Taxonomy Specialties” is fine). Click Create App.
  4. Under the API Credentials tab, add an API Permission for the Management API > Entities endpoint. Under Permissions, select Read/Write. Click Save, and then confirm by clicking Change Permissions.
  5. On the same page, click the eye symbol to view the API Key related to your new app. Copy this API Key down, as you will use it again soon.
  6. Navigate to the following GitHub repository .
  7. Click the green <> Code button and then select Download ZIP.
  8. On your computer, unzip the file and save the folder anywhere on your computer.
  9. Open up your command line interface (Command Prompt for Windows, Terminal for Mac.)
  10. Type in the following command: yext init
  11. If you have connected to your taxonomy account before, select Use existing credential and select the account that hosts taxonomy data. Otherwise, select Create new credentials and input the business ID for the account where you downloaded the taxonomy solution.
  12. You will need to authorize your account if you haven’t used the CLI recently. A window will pop up in your browser. Click Authorize in this window.
  13. Return to the command line interface, and select Yes.
  14. Type in the following command: yext resources apply/filepath, replacing “filepath” with the file path where you saved your GitHub files in Step 8. For example, if you saved the resources in your Documents folder, type in yext resources apply /Documents/maintainingTaxonomySpecialties-main
  15. When asked to confirm whether you’d like to add these resources to your account, select Yes.
  16. You will then be prompted to input the API Key you generated in Step 5 above. Paste it in the CLI and click return.
  17. Close the CLI and open your Yext account once again.
  18. Navigate back to the app you created in Step 3, and select the Webhooks tab. Click + Add a Webhook.
  19. Under Select Webhook Type, choose Entities. Click Next.
  20. Give your webhook a name (something like “Taxonomy Updates” is fine). Optionally, provide a description as well.
  21. Beneath URL, click … or invoke a function. From the dropdown, select maintainingTaxonomy, and then choose the function you’d like to implement based on the options detailed at the top of this page.
  22. In the bottom right corner, select Finish and Add.

You can now test your newly installed plugin by changing a specialty or Listings category on one of your doctor entities! Once you’ve changed the field, refresh the page and make sure that the corresponding category or specialty has been updated.

Feedback