Once you learn the best way to push data from your data source into Dashbot, how do I automate it?
Sending data to Dashbot via the tracker is as easy as sending one POST request. However, executing this workflow in a modern tech stack and production environment requires some additional infrastructure to scale properly. Dashbot usually recommends ephemeral functions, known in Amazon Web Services (AWS) as Lambda Functions, in Google Cloud Platform as Cloud Functions, and by other names across various providers. For processing in a timely fashion, consider sending your data either in real-time as it is created due to interaction with your bot, or rolled up to every 15 minutes.
Code for this will need to be written separately, though we have some generalized examples of how this might be achieved. Your final solution will likely be different and specific to your business needs!
As a further example, here is how you might set up a Lambda Function in AWS that sends these requests to Dashbot.
AWS Lambda Example
First, open AWS and go to the Lambda Service.
![](https://files.readme.io/4129fb5-Screenshot_2024-06-13_at_10.34.23_AM.png)
Create a new function by clicking the Create Function button.
![](https://files.readme.io/f4c5369-Screenshot_2024-06-13_at_10.34.50_AM.png)
Name it something memorable then click Create Function to confirm.
![](https://files.readme.io/be5bc00-Screenshot_2024-06-13_at_10.35.16_AM.png)
Next, we want to trigger this function every 15 minutes. This is accomplished in AWS with the EventBridge service. First navigate to EventBridge from the AWS Console.
![](https://files.readme.io/0c8b070-Screenshot_2024-06-13_at_10.35.47_AM.png)
Navigate to the Rules page on the left hand side of the screen and then click “Create Rule.”
![](https://files.readme.io/e25589d-Screenshot_2024-06-13_at_10.36.19_AM.png)
On the next page, switch to a Schedule rule type and then click the “Continue to EventBridge Scheduler” button.
![](https://files.readme.io/bb13ca6-Screenshot_2024-06-13_at_10.36.46_AM.png)
On the next page, navigate to the “Schedule pattern” modal, choose “Recurring schedule” and “Rate-based schedule” for their particular types and enter “15 minutes” for the rate, as shown below.
![](https://files.readme.io/ed76e4d-Screenshot_2024-06-13_at_10.37.23_AM.png)
Click the Next button. On the next screen, click AWS Lambda as the target.
![](https://files.readme.io/3cda813-Screenshot_2024-06-13_at_10.37.51_AM.png)
Finally, choose the Lambda function created above. Click the Next button twice, and then “Create Schedule”. You should now be able to see the Lambda triggered every 15 minutes sending data to Dashbot!
![](https://files.readme.io/8d7f693-Screenshot_2024-06-13_at_10.38.06_AM.png)