Turn your NFT into a BOT!

CryptoBabies “The Awakening”

Embedded NFT chat window where you can talk to the CryptoBabies

Prerequisites

1. Create a bot.

Running the bot in the left console, testing it in the right Emulator

2. Host your bot in the cloud (with Docker)

FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env

WORKDIR /app

COPY EchoBot.csproj ./

RUN dotnet restore

COPY . .

RUN dotnet publish -c Release -o out

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1

WORKDIR /app

COPY — from=build-env /app/out .

CMD ASPNETCORE_URLS=http://*:$PORT dotnet EchoBot.dll

docker build . -t latest

Start the docker image locally.

3. Upload to Heroku

Heroku is free hosting service and easiest way to deploy your bot project , In this step we will create heroku instance and push git code to run on heroku server

Be aware of the limitations of FREE services. Some free services only allow a certain amount of usage. This might break your NFT if you get a sufficient amount of traffic. You can upgrade to better hardware later if you need to.

Here we created a new nft-demo-bot project.
Follow the steps from the Deploy Tab on Heroku website
Bot Framework Emulator Settings dialog

4. Surface the bot on a private website.

Attribution

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store