Link your users’ identities to Vern tasks for authenticated automation.
Profiles in Vern allow you to link your users’ identities to automated tasks, enabling you to run tasks on behalf of authenticated users. This is particularly useful when your tasks require user-specific authentication or personalized data.
Once a profile is linked, you can use it in your task runs by including the profileId parameter:
Copy
const run = await vern.runs.create({ taskId: "sendMessage", profileId: "example-user-123", // Your user's unique UID inputs: { recipient: "Bill Gates", body: "This email was sent using a linked profile." }});
Task Configuration: Make sure to link the required integrations to your task in the Vern dashboard before attempting to run it with a profile.
Profile Status: A profile must be successfully linked before it can be used in task runs. You can check the profile status through the dashboard or by handling the profile.linked webhook.
Security: Profile IDs are sensitive information. Store them securely and never expose them in client-side code.
User Association: When creating a profile, use your existing user IDs to maintain a clear mapping between your users and their Vern profiles.