Example application how to implement SaaS connectors in Plain.
You need plain2code renderer set up. Please see plain2code_client repository for details how to set it up.
You need to set PLAIN2CODE_RENDERER_DIR
environmental variable to the directory containing the plain2code.py script.
To render a SaaS connector to executable software code run
sh render.sh {{ saas_label }} -v
where {{ saas_label }}
is the label of the SaaS connector you want to render (e.g. intercom
).
The resulting software code will be stored to clients/{{ saas_label }}/build
folder. To run it execute
sh run.sh {{ saas_label }}
Plain source of the Saas Connectors example application is in the folder
clients
To add a new SaaS connector all you need to do is:
- Add OpenAPI specification of the SaaS connector to the
openapi-specs
folder. - Add test credentials of the SaaS connector to the
credentials
folder. - Duplicate one of the existing
{{ saas_label }}-client.plain
files, name it{{ saas_label }}-client.plain
and change it to specify the new SaaS connector.
Please see How to spec a SaaS connector for details how you can use your favorite LLM to help you define the specification.
You should have received test credentials when your Anthropic Claude API key was authorized to have access to plain2code rendered. Please contact Codeplain.ai support at [email protected] if that was not the case.