Update System Prompt
# support
d
I am trying to create an automation that when i update a table in airtable, my system prompt for my assistant is updated to include new information. How would i go about doing this? would i be using dynamic variables?
v
@Dennis To create an automation that updates your system prompt for your assistant when a table in Airtable is updated, you would typically use a combination of Airtable's API, webhooks, and a server-side script or automation platform that supports dynamic variables. Here's a high-level overview of the steps you might take: 1. **Airtable API**: Use Airtable's API to monitor changes in your table. You can either poll the API at regular intervals to check for updates or use Airtable's built-in automation to trigger a webhook on updates. 2. **Webhooks**: If you're using Airtable automation, set up a webhook that sends a notification to your server or an automation platform like Zapier or Integromat when a record is updated. 3. **Server-Side Script/Automation Platform**: Create a script or use an automation platform that receives the webhook notification and extracts the new information. 4. **Dynamic Variables**: Use dynamic variables in your script or automation platform to construct the updated system prompt text based on the new information from Airtable. 5. **Update System Prompt**: Finally, your script or automation platform should update the system prompt for your assistant with the new dynamic variables included. 6. **Testing**: Test the entire flow to ensure that updates in Airtable lead to the correct changes in your system prompt. If you're not familiar with writing server-side scripts or setting up webhooks, an automation platform like Zapier or Integromat can simplify the process by providing a user-friendly interface to create the automation flow. Please note that the specific implementation details will depend on the tools and platforms you're using, and you may need to consult their respective documentation or support for more detailed guidance. If you need further assistance with this, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
@Dennis Sweet. Have a great day!
@Vapi Sweet. Have a great day!
3 Views