Modalities
Implement custom modalities
Modalities allow richer interactions to be embedded inside chat or voice applications with task specific UI being presented at the appropriate moment in a conversation. The exact workflow depends on your setup:
Create a new file in your project (conventionally we call it modalities-types.d.ts). Then find the modality you are trying to implement and copy the typescript definition:

This will ensure that the custom modality you are working with will match the schema builders are working with.
We are working on tooling that will automate this step in the future.
Then make a file for the modality you are trying to implement:
These are standard React components, so can be unit tested, type-checked and so on. Also if you prefer JSX syntax, then react can be imported instead of html.
Finally in your Touchpoint configuration you can register these components:
Last updated

